* [U-Boot] [U-boot] Some questions about BootStage functions
@ 2013-09-16 7:14 TigerLiu at viatech.com.cn
2013-09-19 2:22 ` Simon Glass
0 siblings, 1 reply; 5+ messages in thread
From: TigerLiu at viatech.com.cn @ 2013-09-16 7:14 UTC (permalink / raw
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [U-boot] Some questions about BootStage functions
[not found] <FE7ADED5C2218B4786C09CD97DC4C49FA88E8D@exchbj02.viatech.com.bj>
@ 2013-09-17 17:10 ` Simon Glass
2013-09-18 1:58 ` TigerLiu at viatech.com.cn
0 siblings, 1 reply; 5+ messages in thread
From: Simon Glass @ 2013-09-17 17:10 UTC (permalink / raw
To: u-boot
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)
>
> 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() .
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [U-boot] Some questions about BootStage functions
2013-09-17 17:10 ` [U-Boot] [U-boot] Some questions about BootStage functions Simon Glass
@ 2013-09-18 1:58 ` TigerLiu at viatech.com.cn
2013-09-18 2:06 ` Simon Glass
0 siblings, 1 reply; 5+ messages in thread
From: TigerLiu at viatech.com.cn @ 2013-09-18 1:58 UTC (permalink / raw
To: u-boot
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,
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [U-boot] Some questions about BootStage functions
2013-09-18 1:58 ` TigerLiu at viatech.com.cn
@ 2013-09-18 2:06 ` Simon Glass
0 siblings, 0 replies; 5+ messages in thread
From: Simon Glass @ 2013-09-18 2:06 UTC (permalink / raw
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [U-boot] Some questions about BootStage functions
2013-09-16 7:14 TigerLiu at viatech.com.cn
@ 2013-09-19 2:22 ` Simon Glass
0 siblings, 0 replies; 5+ messages in thread
From: Simon Glass @ 2013-09-19 2:22 UTC (permalink / raw
To: u-boot
Hi,
[resending on the right thread]
On Mon, Sep 16, 2013 at 1:14 AM, <TigerLiu@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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-09-19 2:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <FE7ADED5C2218B4786C09CD97DC4C49FA88E8D@exchbj02.viatech.com.bj>
2013-09-17 17:10 ` [U-Boot] [U-boot] Some questions about BootStage functions Simon Glass
2013-09-18 1:58 ` TigerLiu at viatech.com.cn
2013-09-18 2:06 ` Simon Glass
2013-09-16 7:14 TigerLiu at viatech.com.cn
2013-09-19 2:22 ` Simon Glass
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.