Skip to contentSkip to conversation

about to CONFIG_LOGBUFFER ..

U-Boot-Users Yongdae 2 participants 2 messages Aug 5, 2004

lore
Share & tools
lore

Yongdae

#0 lore raw

I do not understand the CONFIG_LOGBUFFER.
What's the CONFIG_LOGBUFFER?
How to use the CONFIG_LOGBUFFER in U-Boot and Linux Kernel?

Why that excluded log buffer in linux system memory?

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

I do not understand the CONFIG_LOGBUFFER.
What's the CONFIG_LOGBUFFER?

It's a feature so that both U-Boto and Linux can use the same memory as log buffer.

Quoted 1 line

How to use the CONFIG_LOGBUFFER in U-Boot and Linux Kernel?

In U-Boot, for example the POST code can output messages to the log buffer. Or you can redirect the standard output of (some or all) commands to be stored in the log buffer.

In Linux, the syslog mechanism makes use of the log buffer.

This way you can for example have the standard Linux systlog toolset process the boot messages or the POST diagnosis. Or you can use U-Boot to print the Linux kernels log buffer after a crash.

Quoted 1 line

Why that excluded log buffer in linux system memory?

This is to make sure that the log buffer is kept intact over reboots. Even after a Linux crash you can use U-Boot (or Linux after the next boot) to print the log buffer contents.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"Pull the wool over your own eyes!"                - J.R. "Bob" Dobbs