summaryrefslogtreecommitdiff
path: root/meta-phosphor/aspeed-layer
AgeCommit message (Collapse)AuthorFilesLines
2021-10-15u-boot-aspeed: Add distro feature to enable SPI master modeChanh Nguyen2-1/+37
The ast2500 shares the RGMII1 pin and the hw strap pins for SPI interface mode selection ( pin[12:13] ). In some systems, the RGMII/NCSI interface will use the pin. It makes the SPI interface mode setting is not correct. This patch adds a distro feature to enable the SPI master mode by default. Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com> Change-Id: I93e5dd5e86870601169974aa1aab4b5480a45ef1
2021-08-17meta-phosphor: Add option to disable u-boot shellVivekanand Veeracholan1-0/+1
For security, u-boot shell needs to be disabled. Setting the CONFIG_BOOTDELAY to -2 will disable the prompt for entering into shell. -1 will skip executing the commands. >=0 will prompt to enter shell. -2 will skip the prompt. https://github.com/u-boot/u-boot/blob/51aef405550e603ff702c034f0e2cd0f15bdf2bb/common/autoboot.c#L479 Making it configurable through DISTRO_FEATURES. Add "disable-u-boot-shell" to DISTRO_FEATURES for this feature. Signed-off-by: Vivekanand Veeracholan <vveerach@google.com> Change-Id: I1b1e1a6c2552335b13fb3f1a9561d08f3a0e8f94
2021-08-11meta-phosphor: prep for new override syntaxPatrick Williams5-11/+11
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I588025b614416c43aa2d053765ab53bacf890cb5
2021-04-06phosphor: Remove phosphor-vlan machine featureJoel Stanley3-14/+0
This feature is used to turn on the CONFIG_VLAN_8021Q kernel option for all systems using the phosphor layer. However, the kernel option has been enabled in the defconfigs for aspeed g4, g5, g6, and nuvoton via gbs, and gxp. Drop the feature and subseqently remove KERNEL_DANGLING_FEATURES_WARN_ONLY. Change-Id: I544cb5ba8e74f1217f90cc1eaccf725beb32bd3b Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-03-01Remove phsophor-gpio-keys as a standalone featureJoel Stanley3-11/+0
The feature was implemented as an append to the kernel (BSP) layers in meta-phsophor. This created a three way dance between machine layers, BSP and meta-phosphor, when it should have been the kernel layer providing this feature and machines could then opt in. Fixing this means we could remove the KERNEL_DANGLING_FEATURES_WARN_ONLY workaround. As the feature is simply turning on a pair of kernel options without any other impact, we can implement it by adding the options to our defconfigs. In fact, aspeed and hpe kernel configurations enable the two kernel options: $ git grep CONFIG_KEYBOARD_GPIO=y meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g4/defconfig:CONFIG_KEYBOARD_GPIO=y meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g5/defconfig:CONFIG_KEYBOARD_GPIO=y meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g6/defconfig:CONFIG_KEYBOARD_GPIO=y meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc/defconfig:CONFIG_KEYBOARD_GPIO=y $ git grep CONFIG_INPUT_EVDEV meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g4/defconfig:CONFIG_INPUT_EVDEV=y meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g5/defconfig:CONFIG_INPUT_EVDEV=y meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g6/defconfig:CONFIG_INPUT_EVDEV=y meta-hpe/meta-gxp/recipes-kernel/linux/linux-obmc/defconfig:CONFIG_INPUT_EVDEV=y Other machines that wish to enable this feature should ensure it is added to their BSP's defconfig, or add it to their machine specific defconfig. Change-Id: I0726836319022f96c1d13d4a0cbd73708047302c Signed-off-by: Joel Stanley <joel@jms.id.au>
2020-10-22wdt-on-panic: remove overrides from meta-phosphorAndrew Geissler3-6/+0
If these are needed, they really should be done within the meta-aspeed layer. This was originally done to allow the BMC hardware watchdogs to control the reboot of the BMC in error scenarios vs. the kernel auto rebooting itself. This is causing issues on AST2600 hardware because the watchdogs are not setup correctly. Kernel panics result in the BMC becoming unusable and not rebooting, requiring a manual power cycle. The goal with letting the hardware watchdogs control the reboot was that fancy things like flash side switches could be performed for recovery scenarios. However the end to end software stack for this was never fully implemented so if a flash side switch did occur, there would be no notice to the user of the system, and in most cases the BMC was still inoperable because the network settings were missing. For now, we should just go back to the defaults built into the meta-aspeed layer which is to panic on oops and have the kernel immediately reboot the BMC when a panic occurs. Once we iron out the watchdog usage, we can look into changing these back in the meta-aspeed layer if needed. (From meta-phosphor rev: 7777a8eda2b4909f34605476813e1e364b0d5728) Change-Id: I18a15a7769b27d6dd577bcc4e35cc9f60c4d3240 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-09simplify setting of KERNEL_DANGLING_FEATURES_WARN_ONLYAndrew Geissler1-6/+3
Setting this within python is not required (From meta-phosphor rev: b737ffb23aff232b2ce212ad54171afe7b216a71) Change-Id: I3d799b5cd9e66c9bc1a4d145274bfa3c06bdf575 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-01kernel: enable KERNEL_DANGLING_FEATURES_WARN_ONLYAndrew Geissler1-0/+7
Uptream yocto recently added some new code which enforces kernel feature validation. The commit which did this is: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=095175595d9f28d5a0eb7ea520c9af0100bb8dfd This caused OpenBMC builds to start failing with the following: | ERROR: Feature 'phosphor-wdt-on-panic' not found, this will cause configuration failures. | ERROR: Check the SRC_URI for meta-data repositories or directories that may be missing | ERROR: Set KERNEL_DANGLING_FEATURES_WARN_ONLY to ignore this issue OpenBMC does not utilize this aspect of the kernel-yocto.bbclass so make it a warning only. Tested: Verified that the resultant build still had the expected CONFIG options set in the linux-aspeed defconfig. Resolves openbmc/openbmc#3690 (From meta-phosphor rev: d9a065db400bea4b026e240532dd369e588c967d) Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I7590e6304307599cbc77ef26ca9708a70d47d8a0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-25Add support for nbd1 device for dumpRavi Teja1-0/+3
For Dump offload use-case, we are using nbd1 device this commit is to add support for nbd1 device in state_hook (From meta-phosphor rev: 0d878479caa21c76606e041e18830d03c2d6fec2) Signed-off-by: Ravi Teja <raviteja28031990@gmail.com> Change-Id: I6710f97d1ba67e801fbfa7eae9c13aaf9b4963c8 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2019-09-30phosphor: Enable Aspeed SDK u-boot overrideBrad Bishop1-0/+2
The u-boot SDK recipe in the Aspeed layer has different u-boot config snippets for different sized flash images. This is done by way of overrides, e.g. MACHINEOVERRIDES .= ":flash-${ASPEED_IMAGE_SIZE_KB}" Make sure ASPEED_IMAGE_SIZE_KB is set to the correct size so the correct u-boot snippet is selected. (From meta-phosphor rev: 2ee231638d5cde0c041ad863a4d4636291ad39a5) Change-Id: I438fb896eceeafab2927925ffa1763d672456dd6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-07-14u-boot-aspeed: Add distro feature for mac2 supportJohn Wang2-0/+46
Add a distro feature to enable aspeed nic driver to enable MAC1 and MAC2. The aspeednic patch is copied from meta-ingrasys/meta-zaius, it is also required by fp5280g2. To avoid duplication, this distro feature has been added. Both meta-fp5280g2 and meta-zaius will be updated to use the distro feature. Tested: tested on fp5280g2, and both Ethernet ports worked (From meta-phosphor rev: 5a8e7c5a6efea492b82d710c465125fc9d0afdb9) Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: Ia754595c5e3762f69397c03021ffe29ea5b9afcc Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-20aspeed-layer: jsnbd: Add script for USB mass storage deviceAdriana Kobylak2-0/+77
This script is called by the nbd-proxy app to start/stop the USB mass storage device. (From meta-phosphor rev: c1b537d2366120c2460ed66c872b87ceab59b0d0) Change-Id: I414c52cb4a262199dc8b373e016cf09dae211a8a Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-08aspeed: Remove Witherspoon DTS patchJoel Stanley2-91/+0
An atomic cross-layer update is required to do this - as such this commit consists of these subtree commits, squashed: meta-aspeed linux-aspeed: Witherspoon flash layout, GFX DRM meta-phosphor aspeed: Remove Witherspoon DTS patch Change-Id: I57d466163fdc5dc188424e7cade688779f15def0 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-01-25meta-phosphor: u-boot: Refresh patch disabling unnecessary featuresAndrew Jeffery1-12/+28
(From meta-phosphor rev: 80d39ceccaca886168f65dc9bc708759cddd0940) Change-Id: Ieb2781db3825c924173ca58878682924ca07da98 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-01-09u-boot-aspeed: Disable unnecessary featuresAndrew Jeffery2-0/+266
Allow platforms to opt into the u-boot patch disabling unnecessary hardware features for ASPEED SoCs. As this change touches bits that were not initialised by previous u-boot revisions and the configuration applied prevents poweron of OpenPOWER hosts without corresponding host firmware changes, this change is nohwci. (From meta-phosphor rev: 82f2db28ad8f4f0b7fbf703e8942afcaf6e70a2b) Change-Id: I2f40a780afe539e9e4ff13983cd567e849bbed25 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-10-27meta-phosphor: aspeed-layer: cf-fsi-firmware: rename as gitPatrick Venture1-0/+3
Rename cf-fsi-firmware.bb as git per OE norms. (From meta-phosphor rev: 1387adce04d049311de7dbebc8d7ae9dc324f6c4) Change-Id: I3a73fa25d31c30be5425490e41fd8ef09355318a Signed-off-by: Patrick Venture <venture@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-05Spelling fixesGunnar Mills2-2/+2
Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. (From meta-phosphor rev: 38f27112a9bc38337d8f4c63c333d2a1f28945fa) Change-Id: I834b99d63a260f21c60b58c91ec328cf04b683fe Signed-off-by: Gunnar Mills <gmills@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-08-07cf-fsi-firmware: Update to v4Joel Stanley1-2/+2
The latest version uses a unified firmware binary, so we can use the one binary on all machines. Change-Id: I59525c9203a491ac786a5199e457c1847a4ae0e0 Signed-off-by: Joel Stanley <joel@jms.id.au>
2018-07-05kernel: FSI, ASPEED SPI NOR, ASPEED GFXJoel Stanley1-8/+9
Benjamin Herrenschmidt (11): drm: aspeed: Enable/disable vblank in pipe enable/disable devres: Add devm_of_iomap() fsi: Move code around to avoid forward declaration fsi: Add mechanism to set the tSendDelay and tEchoDelay values fsi: master-gpio: Rename and adjust send delay fsi: master-gpio: Add support for link_config fsi: master-gpio: Add more tracepoints fsi: master-gpio: Remove unused definitions fsi: master-gpio: Remove "GPIO" prefix on some definitions fsi: master-gpio: Add missing release function fsi: Move various master definitions to a common header Cédric Le Goater (2): ARM: dts: aspeed: Add "spi-max-frequency" property mtd: spi-nor: aspeed: limit the maximum SPI frequency Joel Stanley (2): ARM: config: aspeed: Enable SHA256 and HMAC ARM: config: aspeed: Re-enable DEVMEM Resolves: openbmc/openbmc#3164 Change-Id: I7f1970a8123b6d335e6dd2bda525c02cc393ede4 Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Eddie James <eajames@linux.vnet.ibm.com>
2018-06-27aspeed: Add cf-fsi firmwareJoel Stanley1-0/+25
This project installs the machine specific ColdFire firmware file into /lib/firmware for using the ColdFire FSI master kenrel driver. The repository contains source and corresponding assembled binaries. We do not assemble our own binaries as that would require building binutils for the 68k. Change-Id: Iac13f94532e0cdf92814f2521f170778505f30f7 Signed-off-by: Joel Stanley <joel@jms.id.au>
2018-06-15Rename and move kernel recipeBrad Bishop8-0/+117
Rename linux-obmc to linux-aspeed and move to the Aspeed layer. Like recipes for u-boot forks, recipes for kernel forks in support of different SOCs are typically provided in the BSP supporting the SOC. Moved a number of phosphor-isms out of the kernel recipe and put those in a bbappend in aspeed-layer/bbappend. Removed COMPATIBLE_MACHINE setting. We simply use PREFERRED_PROVIDER in machine configuration files to set the default kernel recipe. Tested: Booted spoon/palmetto images using QEMU Change-Id: I7dc73629cad4789dcd5aeb0f7b6214fe064c6adc Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-06-11aspeed: Rename u-boot recipesBrad Bishop2-0/+0
Append an -aspeed suffix to Aspeed u-boot and u-boot-fw-utils recipes to match convention of other upstream BSP layers like meta-fsl-arm. Tested: Built palmetto/spoon images and booted in QEMU Change-Id: I88ce2062876674ea9c104a97cc0bf2c83f2b1fcd Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-06-11Use BB collections for Aspeed tree patchesBrad Bishop8-0/+239
Move the Aspeed u-boot tree patches to a directory where they can be conditionally applied when the Aspeed layer is in the build configuration. This is a better way to achieve 273ec60e436 since it enables the Aspeed BSP layer to name its u-boot/kernel recipes whatever it wants. Remove stubbed do_configure from u-boot_%.bbappend. It is no longer required since the bbappend is only activated when the aspeed layer and associated u-boot recipes are in the layer configuration. Tested: Built u-boot recipe for witherspoon and palmetto targets Change-Id: I52dceb65598e0cf660ad035a8f14e9894325ca71 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>