From 4254f1b647f4595cbc2ab7d043655edae541c5b8 Mon Sep 17 00:00:00 2001 From: Adriana Kobylak Date: Fri, 23 Jun 2023 10:06:05 -0500 Subject: meta-ibm: p10bmc: Move Bonnell dtb to be first on list The first dtb listed in the KERNEL_DEVICETREE list is the default used for the BMC's genesis boot. The Bonnell device tree specifies an eeprom that's larger in size than other p10bmc systems. Therefore the device driver currently truncates the data on this eeprom when doing a genesis boot on Bonnell since the default device tree is for Rainier. Move Bonnell to the top of the list to be the default since it has the larger eeprom size. Tested: Booted Rainier and Everest on simulation to test a genesis BMC boot. Verified they first booted with the Bonnell's device tree, then the BMC automatically rebooted after the machine type was identified and the device tree corresponding to the system was loaded. Change-Id: Icb9abe7d8b04d42befd9eb906d095f4fa046ab3c Signed-off-by: Adriana Kobylak --- meta-ibm/conf/machine/p10bmc.conf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'meta-ibm') diff --git a/meta-ibm/conf/machine/p10bmc.conf b/meta-ibm/conf/machine/p10bmc.conf index e42ec227f9..bf067c372d 100644 --- a/meta-ibm/conf/machine/p10bmc.conf +++ b/meta-ibm/conf/machine/p10bmc.conf @@ -1,10 +1,14 @@ DISTRO_NAME = "IBM eBMC (OpenBMC for IBM Enterprise Systems)" +# The first dtb listed is the one used by default on a BMC genesis boot. +# Need bonnell to be the first one because it contains an eeprom that's bigger +# than in the other systems. Otherwise the device driver would truncate the data +# on that eeprom on a bonnell system. KERNEL_DEVICETREE = \ - "aspeed-bmc-ibm-rainier.dtb \ + "aspeed-bmc-ibm-bonnell.dtb \ + aspeed-bmc-ibm-rainier.dtb \ aspeed-bmc-ibm-rainier-4u.dtb \ - aspeed-bmc-ibm-everest.dtb \ - aspeed-bmc-ibm-bonnell.dtb" + aspeed-bmc-ibm-everest.dtb" UBOOT_MACHINE = "ast2600_openbmc_spl_emmc_defconfig" UBOOT_DEVICETREE = "ast2600-p10bmc" SPL_BINARY = "spl/u-boot-spl.bin" -- cgit v1.2.3