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

Hi Tiger,
On Mon, Sep 16, 2013 at 11:09 PM, TigerLiu@viatech.com.cn wrote:
Hi, Simon:
I have some questions about bootstage functions.(common/bootstage.c)
- 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().
- 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() .
This is used by functions which want to measure accumulated time.
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

Hi, Simon: Got it! Thanks! My codebase is 2013.04 release version. It seemed board_f.c / board_r.c had been moved to common directory. Arch/Arm/Lib/Board.c would be compiled conditionally.
Best wishes,

Hi Tiger,
On Tue, Sep 17, 2013 at 7:58 PM, TigerLiu@viatech.com.cn wrote:
Hi, Simon: Got it! Thanks! My codebase is 2013.04 release version. It seemed board_f.c / board_r.c had been moved to common directory. Arch/Arm/Lib/Board.c would be compiled conditionally.
Yes, trying to deprecate that!
Regards, Simon
participants (2)
-
Simon Glass
-
TigerLiu@viatech.com.cn