u-boot - timestamp
I have a custom board which uses u-boot-1.3.3. I want to add timestamp information during booting. Do I have to use a patch for this? ?
abdullah
Hi Abdullah,
Quoted 1 line · Abdullah YILDIZ
I have a custom board which uses u-boot-1.3.3. I want to add timestamp information during booting. Do I have to use a patch for this?
Note sure what exactly you mean by "timestamp information", but AFAIR, each build of U-Boot includes the build date and time.
?
Quoted 1 line
abdullah
Amicalement,
Signature · 1 line
Albert.
Sorry for the missing detail. I want to measure how long a specific process takes. For example,
[3814526.197336] message-1
[3814527.234145] message-2
?
abdullah
On Monday, February 10, 2014 2:08 PM, Albert ARIBAUD <[email protected]> wrote:
Hi Abdullah,
Quoted 17 lines
Quoted 1 line · Abdullah YILDIZ
I have a custom board which uses u-boot-1.3.3. I want to add timestamp information during booting. Do I have to use a patch for this?
Note sure what exactly you mean by "timestamp information", but AFAIR, each build of U-Boot includes the build date and time.
?
Quoted 1 line
abdullah
Amicalement,
Signature · 1 line
Albert.
I have used information from the following to get a timestamped log of each message output by U-Boot. I imagine there is more discussion of this on the U-Boot wiki, http://www.denx.de/wiki/U-Boot/WebHome.
http://u-boot.10912.n7.nabble.com/U-Boot-Users-decrease-boot-time-td91840.html
Good luck and best regards,
Jim
Quoted 37 lines · Abdullah YILDIZ
Sorry for the missing detail. I want to measure how long a specific process takes. For example,
[3814526.197336] message-1[3814527.234145] message-2abdullah
On Monday, February 10, 2014 2:08 PM, Albert ARIBAUD <[email protected]> wrote:
Hi Abdullah,
Quoted 23 lines
Quoted 1 line · Abdullah YILDIZ
I have a custom board which uses u-boot-1.3.3. I want to add timestamp information during booting. Do I have to use a patch for this?
Note sure what exactly you mean by "timestamp information", but AFAIR, each build of U-Boot includes the build date and time.
Quoted 1 line
abdullah
Amicalement,
--
Albert._______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signature · 3 lines
Jim Chargin AJA Video Systems jimc at aja.com (530) 271-3334 http://www.aja.com
Dear Abdullah YILDIZ,
please stop top posting / full quoting.
Quoted 4 lines · In message <[email protected]> you…
Sorry for the missing detail. I want to measure how long a specific process takes. For example,
[3814526.197336] message-1 [3814527.234145] message-2
as already mentioned, you can always use esternal tools to add timestamps to the console log. Other boot log features were added in later (much later) versions of U-Boot. If you want to use these, you should update and use a current version of U-Boot. U-Boot v1.3.3 is about six years old and deserves to rest in peace.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de He'd been wrong, there _was_ a light at the end of the tunnel, and it was a flamethrower. - Terry Pratchett, _Mort_
A message that is not in the archive (sent off-list or not yet received): [email protected]
Dear Abdullah,
please keep the mailing list on Cc:
And please do not top post / full quote, and send only plain text, no HTML. Thanks.
Quoted 2 lines · In message <[email protected]> you…
How can I configure u-boot to add timestamp data to console log?
You can use for example time_log, see [1]
[1] ftp://ftp.denx.de/pub/tools/time_log
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de To know how another being, another creature feels - that is impos- sible. - Terry Pratchett, _The Dark Side of the Sun_
Hi, Denk:
Quoted 1 line
[1] ftp://ftp.denx.de/pub/tools/time_log
How to produce the below format's serial terminal log message? Which marco definition needed to be turn on when compiling u-boot code?
----------------------------
# 6.357 ## Booting image at 00200000 ... # 6.357 Image Name: Linux-2.4.4 # 6.367 Created: 2004-03-12 19:07:58 UTC # 6.367 Image Type: PowerPC Linux Kernel Image (gzip compressed) # 6.367 Data Size: 711745 Bytes = 695.1 kB # 6.377 Load Address: 00000000 # 6.377 Entry Point: 00000000 # 6.687 Verifying Checksum ... OK # 8.438 Uncompressing Kernel Image ... OK # 9.238 Linux version 2.4.4 (wd at atlas.denx.de) (gcc version 3.2.2 20030217 (Yellow Dog Linux 3.0 3.2.2-2a_1)) #2 Fri Mar 12 20:07:49 MET 2004 # 0.000 I2C uCode patch installed # 0.010 MPC823 LCD memory at C01CE000 # 0.010 On node 0 totalpages: 4096 # 0.011 zone(0): 4096 pages.
Best regards,
Dear TigerLiu at via-alliance.com,
Quoted 4 lines · In message <[email protected]>…
Hi, Denk:
Quoted 1 line
[1] ftp://ftp.denx.de/pub/tools/time_log
How to produce the below format's serial terminal log message? Which marco definition needed to be turn on when compiling u-boot code?
Argh... Is that not obvious? There are O changes needed to U-Boot. You can use anr running U-Boot (or any oter code that produces output on a file descriptor you can pipe through the script).
Quoted 17 lines
----------------------------
# 6.357 ## Booting image at 00200000 ... # 6.357 Image Name: Linux-2.4.4 # 6.367 Created: 2004-03-12 19:07:58 UTC # 6.367 Image Type: PowerPC Linux Kernel Image (gzip compressed) # 6.367 Data Size: 711745 Bytes = 695.1 kB # 6.377 Load Address: 00000000 # 6.377 Entry Point: 00000000 # 6.687 Verifying Checksum ... OK # 8.438 Uncompressing Kernel Image ... OK # 9.238 Linux version 2.4.4 (wd at atlas.denx.de) (gcc version 3.2.2 20030217 (Yellow Dog Linux 3.0 3.2.2-2a_1)) #2 Fri Mar 12 20:07:49 MET 2004 # 0.000 I2C uCode patch installed # 0.010 MPC823 LCD memory at C01CE000 # 0.010 On node 0 totalpages: 4096 # 0.011 zone(0): 4096 pages.
You copied this from the comment of the "time_log" tool on our FTP server, and this is ALL you need to produce such logs. It even includes an example command how to do that (which you omitted here):
...
# Used to provide a log with timestamps.
#
# For example run as: kermit -c 2>&1 | /tmp/time_log "Linux version" # This might create a listing like this:
...
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The scientists of today think deeply instead of clearly. One must be
sane to think clearly, but one can think deeply and be quite insane.
- Nikola TeslaHi, Denk:
Thanks a lot!
I have tried it, and it seemed wonderful!
Its mechanism is:
Using host pc's time stamp to tag the kermit's every output msg line, right?
Best wishes,
Dear TigerLiu at via-alliance.com,
Quoted 2 lines · In message <[email protected]>…
I have tried it, and it seemed wonderful!
fine.
Quoted 3 lines
Its mechanism is:
Using host pc's time stamp to tag the kermit's every output msg line, right?
Yes. We use the conole output as progres meter and add a time tamp whenever we receive a newline character.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de To understand a program you must become both the machine and the program.