[PATCH u-boot v2016.07-aspeed-openbmc] Aspeed: ast-g5 change configuration order to allow 2-nd boot
Mykola Kostenok
c_mykolak at mellanox.com
Tue Jun 27 00:13:23 AEST 2017
> -----Original Message-----
> From: joel.stan at gmail.com [mailto:joel.stan at gmail.com] On Behalf Of Joel
> Stanley
> Sent: Monday, June 26, 2017 4:49 PM
> To: Mykola Kostenok <c_mykolak at mellanox.com>
> Cc: OpenBMC Maillist <openbmc at lists.ozlabs.org>
> Subject: Re: [PATCH u-boot v2016.07-aspeed-openbmc] Aspeed: ast-g5
> change configuration order to allow 2-nd boot
>
> On Mon, Jun 26, 2017 at 11:16 PM, Mykola Kostenok
> <c_mykolak at mellanox.com> wrote:
> > Thanks for your attention.
> >
> > Best regards. Mykola Kostenok.
> >
> >> -----Original Message-----
> >> From: joel.stan at gmail.com [mailto:joel.stan at gmail.com] On Behalf Of
> >> Joel Stanley
> >> Sent: Monday, June 26, 2017 1:15 PM
> >> To: Mykola Kostenok <c_mykolak at mellanox.com>
> >> Cc: OpenBMC Maillist <openbmc at lists.ozlabs.org>
> >> Subject: Re: [PATCH u-boot v2016.07-aspeed-openbmc] Aspeed: ast-g5
> >> change configuration order to allow 2-nd boot
> >>
> >> On Fri, Jun 2, 2017 at 6:47 PM, Mykola Kostenok
> >> <c_mykolak at mellanox.com> wrote:
> >> > +config FIRMWARE_2ND_BOOT
> >> > + bool "Firmware second boot WD2 enable."
> >> > + default n
> >>
> >> Looking at the most recent platform.S for the G5:
> >>
> >>
> /**********************************************************
> >> ********************
> >> Disable WDT2 for 2nd boot function
> >>
> >>
> **********************************************************
> >> ********************/
> >> /*
> >> #ifndef CONFIG_FIRMWARE_2ND_BOOT
> >> ldr r0, =0x1e78502c
> >> mov r1, #0
> >> str r1, [r0]
> >> #endif
> >>
> >> By setting this option we disable this code, so we do not clear the
> >> WDT2 status register.
> >>
> >> The help text for your Kconfig option is confusing; I would think
> >> that it means we enable WDT2.
> >>
> >> Can you clarify?
> >>
> >
> > We can change help text to "Firmware second boot support enable".
> > By default after power up WDT2 enabled. This code disable WDT2 in u-
> boot.
> > So when CONFIG_FIRMWARE_2ND_BOOT defined - WDT2 not disabled in
> u-boot.
>
> Ok. The current version of platform.S has this entire chunk commented out,
> so the state of CONFIG_FIRMWARE_2ND_BOOT is irrelevant.
>
>
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit
> hub.com%2Fopenbmc%2Fu-
> boot%2Fblob%2Fed9e4abbf3f0aab348bc64d5439aadda03f42e4c%2Farch%2F
> arm%2Fmach-
> aspeed%2Fplatform_g5.S%23L612&data=02%7C01%7Cc_mykolak%40mellan
> ox.com%7C1d1b9acc0c6a4c6d19cc08d4bc9a3585%7Ca652971c7d2e4d9ba6a4d
> 149256f461b%7C0%7C0%7C636340817923910931&sdata=7hb5WicBSG06b1%2
> FNsLgBg1dN%2BGiwAyjuCrzsccgkN%2B8%3D&reserved=0
>
> Do you need WDT2 disabled in u-boot? With your other changes applied you
> should be able to drop to the prompt, etc, and the watchdog is serviced.
Sorry, I missed that this code was commented out.
No, we need WDT2 enabled. So its ok for us.
Thanks.
Best regards. Mykola Kostenok.
More information about the openbmc
mailing list