public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] u-boot - timestamp
@ 2014-02-10 11:25 Abdullah YILDIZ
  2014-02-10 12:08 ` Albert ARIBAUD
  0 siblings, 1 reply; 10+ messages in thread
From: Abdullah YILDIZ @ 2014-02-10 11:25 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] u-boot - timestamp
  2014-02-10 11:25 [U-Boot] u-boot - timestamp Abdullah YILDIZ
@ 2014-02-10 12:08 ` Albert ARIBAUD
  2014-02-10 12:48   ` Abdullah YILDIZ
  0 siblings, 1 reply; 10+ messages in thread
From: Albert ARIBAUD @ 2014-02-10 12:08 UTC (permalink / raw)
  To: u-boot

Hi Abdullah,

On Mon, 10 Feb 2014 03:25:51 -0800 (PST), Abdullah YILDIZ
<yildiz.abdullah@yahoo.com> wrote:

> 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.
?
> abdullah

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] u-boot - timestamp
  2014-02-10 12:08 ` Albert ARIBAUD
@ 2014-02-10 12:48   ` Abdullah YILDIZ
  2014-02-10 16:22     ` James Chargin
  2014-02-10 18:32     ` Wolfgang Denk
  0 siblings, 2 replies; 10+ messages in thread
From: Abdullah YILDIZ @ 2014-02-10 12:48 UTC (permalink / raw)
  To: u-boot

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 <albert.u.boot@aribaud.net> wrote:
 
Hi Abdullah,
>
>On Mon, 10 Feb 2014 03:25:51 -0800 (PST), Abdullah YILDIZ
><yildiz.abdullah@yahoo.com> wrote:
>
>> 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.
>
>?
>> abdullah
>
>Amicalement,
>-- 
>Albert.
>
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] u-boot - timestamp
  2014-02-10 12:48   ` Abdullah YILDIZ
@ 2014-02-10 16:22     ` James Chargin
  2014-02-10 18:32     ` Wolfgang Denk
  1 sibling, 0 replies; 10+ messages in thread
From: James Chargin @ 2014-02-10 16:22 UTC (permalink / raw)
  To: u-boot

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


On 02/10/2014 04:48 AM, Abdullah YILDIZ wrote:
> 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 <albert.u.boot@aribaud.net> wrote:
>
> Hi Abdullah,
>>
>> On Mon, 10 Feb 2014 03:25:51 -0800 (PST), Abdullah YILDIZ
>> <yildiz.abdullah@yahoo.com> wrote:
>>
>>> 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.
>>
>>
>>> abdullah
>>
>> Amicalement,
>> --
>> Albert.
>>
>>
>>
>>
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot

-- 
Jim Chargin
AJA Video Systems                       jimc at aja.com
(530) 271-3334                          http://www.aja.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] u-boot - timestamp
  2014-02-10 12:48   ` Abdullah YILDIZ
  2014-02-10 16:22     ` James Chargin
@ 2014-02-10 18:32     ` Wolfgang Denk
       [not found]       ` <1392582412.49443.YahooMailNeo@web140303.mail.bf1.yahoo.com>
  1 sibling, 1 reply; 10+ messages in thread
From: Wolfgang Denk @ 2014-02-10 18:32 UTC (permalink / raw)
  To: u-boot

Dear Abdullah YILDIZ,

please stop top posting / full quoting.

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

-- 
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_

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] u-boot - timestamp
       [not found]       ` <1392582412.49443.YahooMailNeo@web140303.mail.bf1.yahoo.com>
@ 2014-02-16 22:00         ` Wolfgang Denk
  2014-02-18  5:37           ` TigerLiu at via-alliance.com
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Denk @ 2014-02-16 22:00 UTC (permalink / raw)
  To: u-boot

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

-- 
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_

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] u-boot - timestamp
  2014-02-16 22:00         ` Wolfgang Denk
@ 2014-02-18  5:37           ` TigerLiu at via-alliance.com
  2014-02-18  6:33             ` Wolfgang Denk
  0 siblings, 1 reply; 10+ messages in thread
From: TigerLiu at via-alliance.com @ 2014-02-18  5:37 UTC (permalink / raw)
  To: u-boot

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 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,

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] u-boot - timestamp
  2014-02-18  5:37           ` TigerLiu at via-alliance.com
@ 2014-02-18  6:33             ` Wolfgang Denk
  2014-02-18  8:16               ` TigerLiu at via-alliance.com
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Denk @ 2014-02-18  6:33 UTC (permalink / raw)
  To: u-boot

Dear TigerLiu at 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 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

-- 
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 Tesla

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] u-boot - timestamp
  2014-02-18  6:33             ` Wolfgang Denk
@ 2014-02-18  8:16               ` TigerLiu at via-alliance.com
  2014-02-18 12:45                 ` Wolfgang Denk
  0 siblings, 1 reply; 10+ messages in thread
From: TigerLiu at via-alliance.com @ 2014-02-18  8:16 UTC (permalink / raw)
  To: u-boot

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,

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] u-boot - timestamp
  2014-02-18  8:16               ` TigerLiu at via-alliance.com
@ 2014-02-18 12:45                 ` Wolfgang Denk
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Denk @ 2014-02-18 12:45 UTC (permalink / raw)
  To: u-boot

Dear TigerLiu at 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

-- 
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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-02-18 12:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-10 11:25 [U-Boot] u-boot - timestamp Abdullah YILDIZ
2014-02-10 12:08 ` Albert ARIBAUD
2014-02-10 12:48   ` Abdullah YILDIZ
2014-02-10 16:22     ` James Chargin
2014-02-10 18:32     ` Wolfgang Denk
     [not found]       ` <1392582412.49443.YahooMailNeo@web140303.mail.bf1.yahoo.com>
2014-02-16 22:00         ` Wolfgang Denk
2014-02-18  5:37           ` TigerLiu at via-alliance.com
2014-02-18  6:33             ` Wolfgang Denk
2014-02-18  8:16               ` TigerLiu at via-alliance.com
2014-02-18 12:45                 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox