Re: [U-Boot] u-boot - timestamp

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.
In message 1392582412.49443.YahooMailNeo@web140303.mail.bf1.yahoo.com you wrote:
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

Hi, Denk:
[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@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@via-alliance.com,
In message FE7ADED5C2218B4786C09CD97DC4C49FDAE7C6@exchbj02.viatech.com.bj you wrote:
Hi, Denk:
[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).
# 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@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

Hi, 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@via-alliance.com,
In message FE7ADED5C2218B4786C09CD97DC4C49FDAE806@exchbj02.viatech.com.bj you wrote:
I have tried it, and it seemed wonderful!
fine.
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
participants (2)
-
TigerLiu@via-alliance.com
-
Wolfgang Denk