[U-Boot] [U-boot] Some questions about BootStage functions

Simon Glass sjg at chromium.org
Thu Sep 19 04:22:56 CEST 2013


Hi,

[resending on the right thread]

On Mon, Sep 16, 2013 at 1:14 AM, <TigerLiu at viatech.com.cn> wrote:

> Hi, experts:
>
> I have some questions about bootstage functions.(common/bootstage.c)
>
> 1. mark_bootsage record relocation question
>
> board_init_f() will call mark_bootstage() function to record the elapsed
> time when system
>
> From power on to board_init_f point.
>
> But after running board_init_f()  function, uboot will relocate u-boot
> code base.
>
> So, the boot stage record "board_init_f" would be abnormal ? !
>
> Because i did not find any code to do relocation operation for boot
> stage records.
>

Please see bootstage_relocate().


>
> 2. how to understand "start_us" fiedld in bootstage_record struct ?
>
> bootstage_start() function will init bootstage_record->start_us.
>
> But not find which file will call bootstage_start() .
>
>
bootstage_start() is called first, then bootstage_accum(). I have a
few patches to add this for SPI flash, but have not sent them yet.

Regards,
Simon


More information about the U-Boot mailing list