Question about uboot initialisation

Simon Glass sjg at chromium.org
Sat Aug 27 02:21:08 CEST 2022


Hi Aubin,

On Fri, 26 Aug 2022 at 06:41, momo aubin <aubinno at gmail.com> wrote:
>
> Dear all,
>
>
> Is there any way that allows us to know that uboot has initialised all his
> peripherals before starting loading kernel ?
>
> The goal of this check is to reset the board in case of bad initialisation
> and choose a different uboot .
>
> Thanks for your answer in advance.
> Aubin

If there is a failure then it likely results in an error-return code
from board_init_f() or board_init_r(). These generally halt U-Boot /
cause a reboot. But this only covers the peripherals that U-Boot sets
up early, like serial, clocks, pinctrl, MMC, PCI, etc.

U-Boot typically does not init a peripheral unless it is needed for U-Boot.

While U-Boot is running (e.g. a script) it may start up other
peripherals (e.g. to read a kernel from USB) and in those cases errors
can be handled by the script.

You can use 'dm tree' to see what devices have been probed successfully.

Regards,
Simon


More information about the U-Boot mailing list