Design proposal for dual BMC flash with "golden image"

Lei Yu yulei.sh at bytedance.com
Wed Sep 16 22:13:18 AEST 2020


On Wed, Sep 16, 2020 at 8:02 PM Ivan Mikhaylov <i.mikhaylov at yadro.com> wrote:
> > The plan is:
> > 1. When the primary flash is broken and u-boot could not be started,
> > aspeed will switch to the golden side automatically.
> > 2. When the primary flash's u-boot is OK, but the kernel/rofs fails a
> > couple of times, the u-boot could detect this and switch to the golden
> > side by setting the related registers. See example in
> > https://github.com/openbmc/openbmc/blob/master/meta-phosphor/aspeed-layer/recipes-bsp/u-boot/files/0005-config-ast-common-Fall-back-to-secondary-flash-on-fa.patch
>
> That's the standard procedure, I'm saying that you may need the access to the
> golden side at any time for different purposes(support engineers, manufacturing
> department, some problems in field) and how you can achieve that? With u-boot
> env set or manual watchdog trigger?

In that case, we could manually trigger watchdog by:
1. Enable devmem by appending mem.devmem in bootargs in u-boot, and reboot
2. Now devmem could be used, manually trigger wdt2

Be noted that such case should be rare in the field.
In the lab, we could enable devmem by default and just use it.


More information about the openbmc mailing list