Unify the 64MiB flash layout
leetroy at gmail.com
Wed Jun 9 15:30:10 AEST 2021
On Thu, Jun 3, 2021 at 2:00 PM Joel Stanley <joel at jms.id.au> wrote:
> On Thu, 27 May 2021 at 07:14, Lei Yu <yulei.sh at bytedance.com> wrote:
> > This email is to share some information about the OpenBMC 64MiB flash layout.
> > In current Linux kernel, there is openbmc-flash-layout-64.dtsi that is
> > being used on meta-bytedance/meta-g220a system, there is on-going
> > change for aspeed-bmc-ampere-mtjade.dts to use the layout as well.
> > However, according to ast2600's change, the layout does not fit
> > ast2600's u-boot, so it updates the layout by changing the existing
> > one.
> > On g220a system, we have tested the new layout and verifies that it
> > works fine, with below changes
> > 1. Pick the ast2600's change in kernel;
> > 2. Pick the `image_types_phosphor.bbclass` change;
> > 3. Update the u-boot env to boot from the new location, or use the new
> > u-boot-aspeed-sdk_2019.04.bb
> > On g220a, we use the new u-boot.
> > With the above changes, g220a system works fine with the new u-boot
> > and the updated flash layout.
> > To make it consistent for both ast2500 and ast2600, it's better to use
> > the same flash layout (and u-boot).
> > So I would suggest merge the changes of  and , for now g220a and
> > meta-ampere/meta-jade could be impacted.
> Thanks for the summary Lei. I will merge  for v5.14 and backport it
> to dev-5.10.
> > : https://email@example.com/
> > : https://firstname.lastname@example.org/
> > : https://gerrit.openbmc-project.xyz/c/openbmc/meta-phosphor/+/39343
Thanks for Lei and Joel's help. For change , I have resubmitted it
against openbmc/openbmc repository.
Please refer to: https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/43876
And the patch has been verified with evb-ast2600 machine running with
AST2600-A3 EVB. However, to run on A3 EVB, the machine has to enable
SPL for u-boot by the following patch:
diff --git a/meta-aspeed/conf/machine/evb-ast2600.conf
index e011045d2..2915b599f 100644
@@ -1,6 +1,7 @@
KERNEL_DEVICETREE = "aspeed-ast2600-evb.dtb"
-UBOOT_MACHINE = "ast2600_openbmc_defconfig"
-UBOOT_DEVICETREE = "ast2600a1-evb"
+UBOOT_MACHINE = "ast2600_openbmc_spl_defconfig"
+UBOOT_DEVICETREE = "ast2600-evb"
+SPL_BINARY = "spl/u-boot-spl.bin"
> > : https://github.com/openbmc/openbmc/blob/master/meta-aspeed/recipes-bsp/u-boot/u-boot-aspeed-sdk_2019.04.bb
> > --
> > BRs,
> > Lei YU
More information about the openbmc