openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Troy Lee <leetroy@gmail.com>
To: Joel Stanley <joel@jms.id.au>
Cc: openbmc <openbmc@lists.ozlabs.org>,
	Lei Yu <yulei.sh@bytedance.com>,
	Quan Nguyen <quan@os.amperecomputing.com>
Subject: Re: Unify the 64MiB flash layout
Date: Wed, 9 Jun 2021 13:30:10 +0800	[thread overview]
Message-ID: <CAN9Jwz2aex+rXnK34ni=kzBCruqSsQvM_-hik79SJ_+4+mY9Lg@mail.gmail.com> (raw)
In-Reply-To: <CACPK8XdVNXSfzDBPryjQh_4S0yU4Tp6VOOtju+L_DcfgHumPJw@mail.gmail.com>

Hi Team,

On Thu, Jun 3, 2021 at 2:00 PM Joel Stanley <joel@jms.id.au> wrote:
>
> On Thu, 27 May 2021 at 07:14, Lei Yu <yulei.sh@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[1] for aspeed-bmc-ampere-mtjade.dts to use the layout as well.
> >
> > However, according to ast2600's change[2], 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[2] in kernel;
> > 2. Pick the `image_types_phosphor.bbclass` change[3];
> > 3. Update the u-boot env to boot from the new location, or use the new
> > u-boot-aspeed-sdk_2019.04.bb[4]
> >    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 [1] and [3], for now g220a and
> > meta-ampere/meta-jade could be impacted.
>
> Thanks for the summary Lei. I will merge [2] for v5.14 and backport it
> to dev-5.10.
>
> Cheers,
>
> Joel
>
> >
> > [1]: https://lore.kernel.org/openbmc/20210517040036.13667-4-quan@os.amperecomputing.com/
> > [2]: https://lore.kernel.org/linux-arm-kernel/20210316085932.2601-1-troy_lee@aspeedtech.com/
> > [3]: https://gerrit.openbmc-project.xyz/c/openbmc/meta-phosphor/+/39343
Thanks for Lei and Joel's help. For change [3], 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
b/meta-aspeed/conf/machine/evb-ast2600.conf
index e011045d2..2915b599f 100644
--- a/meta-aspeed/conf/machine/evb-ast2600.conf
+++ b/meta-aspeed/conf/machine/evb-ast2600.conf
@@ -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"

 require conf/machine/include/ast2600.inc
```

> > [4]: https://github.com/openbmc/openbmc/blob/master/meta-aspeed/recipes-bsp/u-boot/u-boot-aspeed-sdk_2019.04.bb
> >
> > --
> > BRs,
> > Lei YU

Thanks,
Troy Lee

  reply	other threads:[~2021-06-09  5:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-27  7:13 Unify the 64MiB flash layout Lei Yu
2021-05-27 12:33 ` Patrick Williams
2021-06-03  5:59 ` Joel Stanley
2021-06-09  5:30   ` Troy Lee [this message]
2021-06-09  6:43     ` Lei Yu
2021-06-09  8:32       ` Troy Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN9Jwz2aex+rXnK34ni=kzBCruqSsQvM_-hik79SJ_+4+mY9Lg@mail.gmail.com' \
    --to=leetroy@gmail.com \
    --cc=joel@jms.id.au \
    --cc=openbmc@lists.ozlabs.org \
    --cc=quan@os.amperecomputing.com \
    --cc=yulei.sh@bytedance.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).