Skip to contentSkip to conversation

Is there a way to get total time passed since boot in U-Boot?

U-Boot-Users vinay hegde 2 participants 2 messages Apr 3, 2007

lore
Share & tools
lore
#0 lore raw

Hi All,

I am working on MPC8548 U-Boot. Here, I have a requirement where I need to get the total number of millisecs/secs elapsed since the boot (similar to what jiffies do in linux). Please let me know if there is a way to get this in U-Boot code?

Thanks muchly,
Vinay

____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

#1 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

I am working on MPC8548 U-Boot. Here, I have a requirement where I need to get the total number of millisecs/secs elapsed since the boot (similar to what

How do you define "since the boot"?

Since power-on? Sinde the HRESET condition ended? Since the CPU was executing the first instruction?

Quoted 2 lines

jiffies do in linux). Please let me know if there is a way to get this in U-Boot code?

Read the timebase - I'm not sure if this is what you want, but this is what you can get easily :-)

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"The two most common things in the universe are hydrogen  and  stupi-
dity."