summaryrefslogtreecommitdiff
path: root/meta-aspeed/conf
AgeCommit message (Collapse)AuthorFilesLines
2026-03-28treewide: update release compatibilityPatrick Williams1-1/+1
Latest yocto release will be wrynose; update layer compatibilities accordingly. Squash numerous commits from each upstream-layers subtree: (cherry picked from commit cd1179544d74026c99a4938824146cec4f5acfca) (cherry picked from commit 930a65579d2c159ce0b05cf81916d20a04f5835f) (cherry picked from commit 8028c573db6923525c2918724f2bd36d4a420e0b) (cherry picked from commit 1e4a9929a90a6f9608e8df7ec073d3467b6ee217) (cherry picked from commit a75c2f0b6f9d10c116b3da7106234bce6c8c1a4f) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ia5b19ed374bbc3f7a5aced7ef8bb4ec1f0da9444
2026-03-20aspeed: ufs supportVince Chang1-0/+7
1. Add ufs.inc It adds the mf-ufs MACHINE_FEATURES and defines WIC_SECTOR_SIZE=4096 and WIC_BLOCK_SIZE=4096 for UFS storage. 2. Add WIC file for UFS. 3. Update mmc-init script for UFS. Device mappings for UFS storage: /dev/mmcblkX => /dev/sdX Tested on AST2700EVB: ``` => tftp 403000000 obmc-phosphor-image-evb-ast2700-ufs.wic.gz => scsi scan => scsi dev 0; gzwrite scsi 0 403000000 ${filesize} : => ext4ls scsi 0:2 <DIR> 4096 . <DIR> 4096 .. <DIR> 16384 lost+found 11383904 fitImage => ext4load scsi 0:2 403000000 fitImage 11383904 bytes read in 250 ms (43.4 MiB/s) => dcache on => bootm 403000000 Using 'conf-ast2700-evb.dtb' configuration Verifying Hash Integrity ... OK Trying 'kernel-1' kernel subimage : ``` Change-Id: Iac6051f8cf67b3431808f5608792297d6f8e1476 Signed-off-by: Vince Chang <vince_chang@aspeedtech.com>
2026-03-10meta-aspeed: Default KERNEL_IMAGETYPE to Image for AST2700Vince Chang1-1/+3
Commit a5dd01c ("meta-aspeed: switch to linux-yocto-fitimage recipe") defaults KERNEL_IMAGETYPE to "zImage". Commit 65d7d51 ("meta-phosphor: obmc-bsp-common: Default KERNEL_IMAGETYPES? to zImage") defaults KERNEL_IMAGETYPES to "zImage". For arm64 builds, the zImage target is not spported, which results in a build error. Set KERNEL_IMAGETYPES and KERNEL_IMAGETYPES to "Image" to match the arm64 kernel build output. Change-Id: I71a839cf1f3d8c4c9d817ae6899f3998846be7ea Signed-off-by: Vince Chang <vince_chang@aspeedtech.com>
2026-02-26meta-aspeed: switch to linux-yocto-fitimage recipeAndrew Geissler1-2/+5
Change-Id: I0cad1c1b72db4e9f3e6fee3c1155da20f5a75d76 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2025-09-05meta-aspeed: Add ast2700 A1 supportVinceChang66378-3/+85
1. Add AST2700 support. 2. Using multiconfig for bootmcu RISCV. Tested: . setup evb-ast2700 bitbake obmc-phosphor-image QEMU: You can `runqemu` when QEMU support vbootrom. ``` build/evb-ast2700$ runqemu slirp serialstdio ``` If your QEMU doesn't support vbootrom, please run the following steps: Copy u-boot-nodtb.bin and u-boot.dtb from U-Boot build folder into the tmp/deploy/images/evb-ast2700 folder. ``` ./qemu-system-aarch64 -M ast2700a1-evb -nographic\ -device loader,addr=0x400000000,file=${IMGDIR}/u-boot-nodtb.bin,force-raw=on \ -device loader,addr=$((0x400000000 + ${UBOOT_SIZE})),file=${IMGDIR}/u-boot.dtb,force-raw=on \ -device loader,addr=0x430000000,file=${IMGDIR}/bl31.bin,force-raw=on \ -device loader,addr=0x430080000,file=${IMGDIR}/optee/tee-raw.bin,force-raw=on \ -device loader,addr=0x430000000,cpu-num=0 \ -device loader,addr=0x430000000,cpu-num=1 \ -device loader,addr=0x430000000,cpu-num=2 \ -device loader,addr=0x430000000,cpu-num=3 \ -smp 4 \ -drive file=${IMGDIR}/image-bmc,format=raw,if=mtd \ -net nic,macaddr="32:27:a0:12:00:01" \ -net user,hostfwd=:127.0.0.1:2222-:22,hostfwd=:127.0.0.1:2443-:443,hostfwd=udp:127.0.0.1:2623-:623,hostname=qemu \ -serial mon:stdio \ -snapshot \ ``` Change-Id: Id2d7cd2f49a66c292424b17e1805f4a35558746c Signed-off-by: Vince Chang <vince_chang@aspeedtech.com>
2025-07-23treewide: add whinlatter LAYERSERIES_COMPATPatrick Williams1-1/+1
Change-Id: I1d53510329749ff122c8a65157a72c8ff88bd306 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2025-07-02meta-evb: move meta-aspeed EVB machine into meta-evbVince Chang4-49/+0
Move evb-ast2500.conf and evb-ast2600.conf into meta-evb. Change-Id: I64bd938eb63dfe77ffe74e1de25f177291fe65c2 Signed-off-by: Vince Chang <vince_chang@aspeedtech.com>
2025-06-11meta-aspeed: Move QB_SYSTEM_NAME to machine-specific configs for AST2700 supportJamin Lin4-1/+3
Currently, AST2400, AST2500, and AST2600 use "qemu-system-arm" as their QEMU system binary. However, AST2700 will require "qemu-system-aarch64" due to its AArch64 architecture. To accommodate this architectural difference and prepare for future AST2700 support, move the "QB_SYSTEM_NAME" setting out of the common "aspeed.inc" and into each SoC-specific configuration file. Change-Id: I2e7dda1613ff27879676c12cf0b2900b201e47cd Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
2025-06-11meta-aspeed: Enable MCTP on supported EVBsAndrew Jeffery2-0/+4
Enables exercising parts of the MCTP stack. Change-Id: Ib8e768daa29cd20858a88554a6bb5f80c24d5be6 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
2025-05-24treewide: add walnascar LAYERSERIES_COMPATPatrick Williams1-1/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I6291eeaf0ca7d4bd674bf0717f1234bfd757f6fe
2024-12-20treewide: switch debug-tweaks to allow-root-loginPatrick Williams1-1/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I2665e9e7e37242d546eafdb4d1c65dd0369ca635
2024-12-20treewide: add styhead to LAYERSERIES_COMPATPatrick Williams1-1/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8f74fcbb7bf66bb24fde1571ef09fac1095c7e59
2024-11-26meta-aspeed: Move machine specific settings to its machine configJamin Lin4-20/+25
Currently, it placed machine specific settings for AST2400, AST2500 and AST2600 in common config, aspeed.conf, with MACHINEOVERRIDE for different machine settings. However, ASPEED will upstream to support AST2700 and it should add "aspeed-g7" for AST2700 support. To make aspeed.inc more readable and simple, move all specific machine settings to individual machine config. Change-Id: I3cc1a5b57df3f24e75accdf689e8d1dbb0351238 Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
2024-02-27meta-aspeed: Specify netdev=net0 in QB_NETWORK_DEVICEAndrew Jeffery1-1/+2
Align with the default inclusion of `-netdev id=net0` in QB_SLIRP_OPT. Change-Id: I1afe24c7424cf43faa6e7f8b00d191d00b32b16a Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
2024-02-15meta-aspeed: remove meta-phosphor dependencyBrad Bishop1-1/+1
meta-aspeed does not have a hard dependency on meta-phosphor, so global configuration from meta-phosphor should be "include" and not "require". Change-Id: I6bc9e579a89665924713bc3094119a2b8cc5b925 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2024-02-08meta-aspeed: ast2600: require rather than include the archPatrick Williams1-1/+1
We should `require` the include file for the architecture settings rather than `include` them so that bitbake errors out if they are not found. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I3c74909251846afce240dfe88dc777493b596c30
2023-11-25treewide: add scarthgap to LAYERSERIES_COMPAT2.16.0-devPatrick Williams1-1/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I28ee50fa55ae47dd7fd8c99f8f6db8f5f6dfa53d
2023-11-24treewide: add nanbield to LAYERSERIES_COMPATPatrick Williams1-1/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I85272779478b66452acd11be93f5fea99e4c3a34
2023-09-26linux-aspeed: Move to Linux v6.5Joel Stanley2-2/+2
This moves the OpenBMC kernel to a v6.5 base for ASPEED. The 6.5 kernel moved all 32-bit ARM device trees, so our BMC device tress are now under an 'aspeed' subdirectory. This change means systems must describe the KERNEL_DEVICETREE with the aspeed directory prefix. There are 78 patches in the tree, with 40 of those patches not yet queued for merging in v6.6. The remaining out of tree patches include: Andrew Jeffery (6): dt-bindings: hwmon: pmbus: Add Maxim MAX31785 documentation pmbus (max31785): Add support for devicetree configuration pmbus (core): One-shot retries for failure to set page pmbus (max31785): Wrap all I2C accessors in one-shot failure handlers ARM: dts: aspeed: witherspoon: Update max31785 node ipmi: kcs_bmc: Add a "raw" character device interface Cédric Le Goater (1): /dev/mem: add a devmem kernel parameter to activate the device Eddie James (16): ARM: dts: aspeed: bonnell: Add reserved memory for TPM event log dt-bindings: soc: Add Aspeed XDMA Engine soc: aspeed: Add XDMA Engine Driver soc: aspeed: xdma: Add user interface soc: aspeed: xdma: Add reset ioctl soc: aspeed: xdma: Add trace events i2c: core: Add mux root adapter operations iio: si7020: Lock root adapter to wait for reset eeprom: ee1004: Enable devices on multiple busses dt-bindings: trivial-devices: Add Atmel AT30TSE004A serial eeprom eeprom: ee1004: Add OF matching support leds: pca955x: Refactor with helper functions and renaming leds: pca955x: Use pointers to driver data rather than I2C client leds: pca955x: Optimize probe led selection leds: pca955x: Add HW blink support leds: Ensure hardware blinking turns off when requested Jae Hyun Yoo (1): clk: ast2600: enable BCLK for PCI/PCIe bus always Joel Stanley (14): net: ftgmac100: Ensure tx descriptor updates are visible ARM: aspeed: Add debugfs directory ARM: soc: aspeed: Add secure boot controller support dt-bindings: trivial-devices: Remove Infineon SLB9673 TPM ARM: dts: nuvoton: npmc750-evb: Add default console tpm: tis-i2c: Add more compatible strings leds: pca955x: Revert "Remove the unused function pca95xx_num_led_regs()" arm64: configs: Add Nuvoton NPCM defconfig ARM: configs: aspeed: Add new FSI drivers ARM: config: aspeed_g5: Enable SSIF BMC driver ARM: config: aspeed: Remove FIRMWARE_MEMMAP ARM: config: aspeed: Add Ampere SMPro drivers ARM: config: Add openbmc defconfig ARM: config: openbmc: Add HPE GPX and Nuvoton 7xx Johannes Holland (1): dt-bindings: tpm: Add schema for TIS I2C devices Potin Lai (1): mtd: spi-nor: winbond: Add support for w25q01jvq Change-Id: Ib97af192391af6e71c96fe14e12cfc88c23d7a7d Signed-off-by: Joel Stanley <joel@jms.id.au>
2023-01-13yocto:mickledore: add support for new yocto layerAndrew Geissler1-1/+1
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I8e54833ac78e540e9dd5011533d53ff9a3af6763
2022-10-18aspeed: Support runqemuJoel Stanley1-0/+20
$ runqemu nographic slirp We require nographic instead of setting -nographic through QB_OPT_APPEND in order to avoid the serial port being sent to a character device: self.qemu_opt += " -serial mon:vc" We require slirp instead of setting QB_SLIRP_OPT as we are happy with the default spirp options, we just want to enable slirp instead of the other networking options that require root access. Change-Id: I2ad8a8237ad1a0f5fa888991f7f58a6266a58caf Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-09-30add langdale to compatible layerAndrew Geissler1-1/+1
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I65febeeec11e6e5b40ee728f42cfbe77023dae1e
2022-09-09treewide: handle upstream TEMPLATECONF movePatrick Williams2-0/+0
The latest poky commit is requiring us to have all of our template configs in a subdirectory instead of directly in the `conf` directory. Without this we end up with errors during setup like: ``` Error: TEMPLATECONF value (which is .../openbmc/meta-facebook/meta-bletchley/conf) must point to meta-some-layer/conf/templates/template-name ``` Fix this by moving all of our template files into the 'default' template subdirectory (following the pattern of poky) and modifying `setup` as necessary to follow. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iecefde73d55acbb6bc63ae3d68c4311adaf327ae
2022-05-02meta-aspeed: Correct the offset to load kernelHoward Chiu1-0/+2
OpenBMC places kernel at offset 512 if the flash size is 32MB, but it was defined as 1024 in the present defconfig. This patch corrects the offset if the flash size is set to 32MB. Signed-off-by: Howard Chiu <howard_chiu@aspeedtech.com> Change-Id: I05749eda519cc1660921e111a36be74cb121fa68
2022-02-26treewide: support yocto kirkstone releasePatrick Williams1-1/+1
* Deprecate N-1 release (hardknott). * Enable N+1 release (kirkstone). Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I39e027e02dab64b4390b46ffbd9c299c858f403e
2022-02-24meta-aspeed: evb-ast2600 Disable socsec signingJamin Lin1-0/+9
Disable the hardware root-of-trust on AST2600 EVB. Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Change-Id: Iabf3bafb5db633de34731e041064318f8f56da5a
2022-02-17aspeed: evb-ast2600: Use unversioned device treeJoel Stanley1-1/+2
The EVB build is currently using the A1 device tree. Use the plain ast2600-evb.dts, as this represents the production silicon. Signed-off-by: Joel Stanley <joel@jms.id.au> Change-Id: Icef427718958bf19ee75fec906cf0476f5d37138
2022-02-17aspeed: evb-ast2500: Use 2019.04-openbmc-aspeed u-boot branchJoel Stanley1-5/+2
The old 2016.09 branch is unmaintained. ASPEED have support for the 2500 in the SDK, so use that instead. Change-Id: Iece96616d24ac21028e91695e0c8ab86d9ade1a9 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-01-20u-boot: Make u-boot-aspeed-sdk the defaultJoel Stanley1-6/+3
This makes the v2019.04-aspeed-openbmc branch the default for all aspeed machines. Existing machines have all modified their u-boot package to use the older branch, so this patch should result in no change. Change-Id: Ic4dd0bb973a16d3d658c340e7caf6a05128327bc Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-01-18u-boot: Specify u-boot package for AST2500 machinesJoel Stanley1-0/+5
This sets u-boot to the package containing the v2016.07-aspeed-openbmc branch. This ensures there will be no change if the default changes in the future. Change-Id: Iea12e1691dbdda34a3f95d6d0862add0b15bcf37 Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-12-30Fix the config error of u-boot-envzhanghaicheng1-0/+1
When using 64M flash, the config of u-boot CONFIG_ENV_SIZE and CONFIG_ENV_OFFSET is wrong. The config file fw_env.config is wrong, too. Modify them according to the 64M flash dts file. Before correcting these errors, when we used setenv to set environment variables in u-boot, we could not use fw_printenv to get them. The reverse is also the same. Because they set different offset and size. Tested: 1. Use commands in u-boot: setenv test value saveenv After BMC starts, use fw_printenv can get "test=value" 2. Use the command to change the value of "test" fw_setenv test v We can get "test=v" in u-boot by printenv. Signed-off-by: zhanghaicheng <zhanghch05@inspur.com> Change-Id: I9eccf6abe743253b6f8c344a8b8648e68ab52019
2021-11-04Partially revert "treewide: remove obmc-system-mgmt feature"Patrick Williams2-0/+2
The obmc-system-mgmt feature is currently used in the image to trigger inclusion of a virtual-provider which provides a number of packages many systems need. Partially revert the removal of this feature so that the outcome is: 1. The empty obmc-phosphor-sysd package is still removed. 2. By default the 'obmc-system-mgmt' feature is included, unless specifically exempted. 3. All EVB platforms remove the 'obmc-system-mgmt' feature since they have no system they are managing. This partially reverts commit 060ad3ff7fcc30aff78a9e504efee9d8fa0d4526. Tested: * Built `bletchley` and confirmed `packagegroup-fb-apps-system` and `entity-manager` are present. ``` entity-manager armv7ahf-vfpv4d16 0.1+git0+6bf41588ab-r0 packagegroup-fb-apps-system all 1.0-r1 ``` * Built `witherspoon` and confirmed `packagegroup-op-apps-system` and `pdbg` are present. ``` packagegroup-op-apps-system noarch 1.0 pdbg arm1176jzs 3.3 ``` * Ran `bitbake -p` on `evb-ast2600` to confirm the undefined `virtual-obmc-system-mgmt` is not being included in the image. Change-Id: I8b7804d5101cc84a2c57473b3f85672bf7767c67 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2021-09-04meta-aspeed:conf/machine: tunes files moved to arch dirsAndrew Geissler2-2/+2
Upstream yocto moved the tune files under architecture subdirectories so need to adjust our includes of them. Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I442f1403a869a117244461c8f94f940cfe7c08cd
2021-08-24treewide: remove gategarth from layer-supportPatrick Williams1-1/+1
We've typically kept these LAYERSERIES_COMPAT to 2 releases: the current and the upcoming. Remove 'gatesgarth' is it is now 2 releases back. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I5e812a94fed1738898af75c0fdee81996a5bbf20
2021-08-17meta-aspeed: ast2600: Sign the SPL with socsec by defaultAndrew Jeffery1-0/+5
Signing the SPL when secure-boot is disabled has no impact, the SoC will continue to bootstrap as normal. Change-Id: I05c1db80cb4bec44ca315190f5b3c1d97168d1d5 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
2021-08-11meta-{aspeed,phosphor}: layer.conf: Override syntax cleanupAdriana Kobylak1-1/+1
LAYERVERSION should keep underscore instead of colon. Change-Id: I53b0af2fd8c756d09a11ee2c970910cdf7331738 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
2021-08-11meta-aspeed: prep for new override syntaxPatrick Williams2-13/+13
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8135871ae0e3b360aff7d878f7cf04a2504f2dd0
2021-06-17evb-ast2600: enabling u-boot-spl featureTroy Lee1-1/+2
Currently, machine evb-ast2600 frozed during u-boot booting. This patchset has been tested with AST2600-A1 and AST2600-A3 EVB: AST2600-A1: ``` U-Boot SPL 2019.04 (Jun 16 2021 - 05:59:38 +0000) already initialized, Trying to boot from RAM U-Boot 2019.04 (Jun 16 2021 - 05:59:38 +0000) SOC: AST2600-A1 RST: WDT1 SOC PCI RST: #2 LPC Mode: SIO:Enable : SuperIO-2e Eth: MAC0: RGMII, MAC1: RGMII, MAC2: RGMII, MAC3: RGMII Model: AST2600 EVB DRAM: already initialized, 1008 MiB (capacity:1024 MiB, VGA:16 MiB), ECC off MMC: sdhci_slot0@100: 1, sdhci_slot1@200: 2, emmc_slot0@100: 0 Loading Environment from SPI Flash... SF: Detected w25q512jv with page size 256 Bytes, erase size 4 KiB, total 64 MiB OK In: serial@1e784000 ``` AST2600-A3: ``` BP0c00 U-Boot SPL 2019.04 (Jun 16 2021 - 05:59:38 +0000) already initialized, Trying to boot from RAM U-Boot 2019.04 (Jun 16 2021 - 05:59:38 +0000) SOC: AST2600-A3 RST: WDT1 SOC PCI RST: #2 eSPI Mode: SIO:Enable : SuperIO-2e Eth: MAC0: RGMII, MAC1: RGMII, MAC2: RGMII, MAC3: RGMII Model: AST2600 EVB DRAM: already initialized, 960 MiB (capacity:1024 MiB, VGA:64 MiB), ECC off MMC: sdhci_slot0@100: 1, sdhci_slot1@200: 2, emmc_slot0@100: 0 Loading Environment from SPI Flash... SF: Detected w25q512jv with page size 256 Bytes, erase size 4 KiB, total 64 MiB OK In: serial@1e784000 ``` Signed-off-by: Troy Lee <troy_lee@aspeedtech.com> Change-Id: I77ec3c2928ca96ee3f51290fd3435fca08bb058a
2021-04-06hardknott: yocto releaseAndrew Geissler1-1/+1
Latest upstream yocto has moved on to the 3.3 hardknott release Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ieae36798d66d21c2c642931f06407d3bb2acf163
2021-03-02aspeed: Set ast2600 evb spi flash size to 64 MiBTroy Lee1-0/+3
AST2600 evb has 64 MiB flash by default, so machine config could provide a default value for FLASH_SIZE. Signed-off-by: Troy Lee <troy_lee@aspeedtech.com> Change-Id: Idca8734f950a16966a5a7322c0c50d6e63d9106e
2020-11-06meta-aspeed: update Yocto compat for gatesgarthPatrick Williams1-1/+1
The next release of Yocto is soon and most of the upstream layers have switched support strings for it. Support layer compat for gatesgarth (current) and dunsfell (previous). (From meta-aspeed rev: 3cc1749d59f84cb441fdcf5490cbbecac7227caf) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I732a58adeef210b4975560c0d9607da79524dfa1 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-13aspeed: enable 'hw-rng' MACHINE_FEATUREPatrick Williams1-0/+1
Change Iee340ffd294c4f40ba3360acd3f750d886865608 introduced a machine feature which communicates to recipes if a hw random number generator is present. Since the Aspeed chips have a supported RNG, enable this MACHINE_FEATURE. (From meta-aspeed rev: 57caacd62ae6037119be32c608be6ae4e548e639) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I275ca0fc1445c782ea6b10e3807e3b339fead53b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-04wic: Populate hostfw partitionAdriana Kobylak1-0/+1
Populate the hostfw partition by specifying the directory to be used as source for the filesystem. This directory is populated by a bbappend to the hostfw recipe. (From meta-aspeed rev: 37f30af4e377a6bc2d3c47ca435798969321f566) Change-Id: Id64e0ac6a5082be2b3ad689a6b323da8eb094e69 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-17u-boot-aspeed: Generate default env for eMMCAdriana Kobylak1-1/+4
Generate a default environment to boot an eMMC based on a txt file. Populate the generated environment image into the eMMC. (From meta-aspeed rev: fdc603c73b2dc8851ce2d1684e9c71a5ce51a5b8) Change-Id: I93944b183b7907202b02854e931593d62603ae77 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-15aspeed: Build a wic image for the eMMC User Data AreaAdriana Kobylak1-0/+5
The U-Boot SPL and U-Boot proper would be programmed to the Boot Area Hardware Partitions of the eMMC. The kernel and user space would go into the User Data Area. This commit creates an image that can be programmed into that User Data Area. Layout: --- - ----- -------- -------- ----- ------- ------ -------- ------- |GPT| | env | boot-a | boot-b | fs-a | fs-b | rwfs | hostfw |GPT-sec| --- - ----- -------- -------- ------ ------ ------ -------- ------- ^ 1MB 64MB 64MB 1GB 1GB 7GB 5GB | 0x5000 Primary GPT size (Beginning of image): 512B (Protective MBR) + 512B (Primary Header) + 16KB (Primary Table) First partition (u-boot-env) is 4K-aligned, which puts it at offset 0x5000 Secondary GPT size (End of image): 16KB (Secondary Table) + 512B (Secondary Header) Since the secondary GPT is expected to be at the end of the device, the initramfs can issue a "sgdisk -e /dev/mmcblk0" on first boot to move it to the end. The first partition holds the U-Boot environment. The following two partitions hold a filesystem with the fitImage file. Code update would reflash the full filesystem with the fitImage during an update. U-Boot can then be programmed to look for the kernel in partitions boot-a or boot-b. The remaining is a set of ext4 filesystems for user space, read-write, and host firmware. The size for the host firmware partition is configurable to be able to build an image of different size. The reason is that the tacoma system is has a User Data area just 1GB smaller than rainier. Design doc: https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/28443 Tested: Adding "WKS_HOSTFW_SIZE = "4G"" to the tacoma.conf file created a 14GB wic file: $ ls -lh *wic -rw-r--r-- 1 anoo 532919 15G Jul 14 08:18 obmc-phosphor-image-rainier.wic -rw-r--r-- 1 anoo 532919 14G Jul 14 08:36 obmc-phosphor-image-witherspoon-tacoma.wi $ wic ls obmc-phosphor-image-rainier.wic Num Start End Size Fstype ... 7 9798963200 15167672319 5368709120 ext4 $ wic ls obmc-phosphor-image-witherspoon-tacoma.wic Num Start End Size Fstype ... 7 9798963200 14093930495 4294967296 ext4 (From meta-aspeed rev: b8a647297e3f9fe724f8ee1736bb9da3806d788e) Change-Id: I18b8a15ac8eddb6abfbc7b70429ef45ffc170d9a Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-14dunfell: add support for new layerAndrew Geissler1-1/+1
(From meta-aspeed rev: cc14885f5d983ff0e3f5ad65e17790e3359fa778) Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I9a507f1acaf3edad59ddf100f79fb3652788b3f5 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-03-17u-boot-sdk: Use OpenBMC forkJoel Stanley1-1/+2
This is a fork that is based on ASPEED's 2019.04 SDK fork. The goal is to move to a mainline based tree, but while that work is underway, this allows ast2600 support to move forward. This gains support for NC-SI, and uses kconfig for the default boot command allowing us to drop the patch to aspeed-common.h. Machines will need to indicate which device tree to use. If possible we should look to having a few common device trees, but for now they are machine specific. The AST2600 is configured to use the ast2600a1-evb device tree, which will also work on the a0 variant. (From meta-aspeed rev: 22ccf4648a776c458300c97a6d001a843b2b5c9b) Change-Id: Ib21dc9962761aac3f3148fe4908439b975545e1e Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2019-12-16Move ast2600 to use hard float call conventionVernon Mauery1-1/+1
Before this change, the ast2600 binaries were built with the soft float call convention, which allows them to run on systems that don't have hard float FPUs. Internally, this changes yocto to build like this: CXX="arm-openbmc-linux-gnueabi-g++ \ -march=armv7-a -mfpu=vfpv4-d16 -mfloat-abi=hard ... CPP="arm-openbmc-linux-gnueabi-gcc \ -march=armv7-a -mfpu=vfpv4-d16 -mfloat-abi=hard ... Tested: Builds and boots on ast2600-EVB (From meta-aspeed rev: 53e322518fe6f471663746934e38bf5d8143a501) Change-Id: If8037c66301ca4a3588d10270fe8d2fc610bb195 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-10-15aspeed: Add udev mtd rules to machine recommendsJoel Stanley1-1/+1
These udev rules are useful outside of fw_printenv, which is how we currently include them, so bring them in with the common machine type. (From meta-aspeed rev: 1a7cc4767eb0393bb615ae67e4b388163aa5dc48) Signed-off-by: Joel Stanley <joel@jms.id.au> Change-Id: I0779fc4c2efd0e18d7729cef4548238e56c39a47 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-09-26meta-aspeed: g5: drop redundant tune includeBrad Bishop1-11/+0
Anyone using OE-core after 95823b7eab is using the OE-core provided tune and not ours. Drop our redundant tune file. (From meta-aspeed rev: 5894fc514daad03f70ada285a6b37947e1fb116e) Change-Id: Ice99855d7655f926832943f6944279a0d21de5a7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>