2009-07-28 11:41:01     Kernel Messages Don't Show up in Telnet

Document created by Aaronwu Employee on Aug 16, 2013
Version 1Show Document
  • View in full screen mode

2009-07-28 11:41:01     Kernel Messages Don't Show up in Telnet

Dave Henning (UNITED STATES)

Message: 78117   

 

I'm debugging some kernel space code that uses printk().  When I connect to the target console over a serial port, I see the messages.  However, when I telnet to the target, I do NOT see the messages.  I only see messages from user space.

 

What do I need to do so that I can see the kernel messages either way?

 

Thanks,

Dave ...

QuoteReplyEditDelete

 

 

2009-07-28 12:01:01     Re: Kernel Messages Don't Show up in Telnet

Robin Getz (UNITED STATES)

Message: 78118   

 

Dave:

 

This is the way it works - printk goes to the console device. Telnet is not a console.

 

From a telnet session, you should be able to "cat /proc/kmsg".

 

See:   webcourse.cs.technion.ac.il/234120/Winter2008-2009/ho/WCFiles/printk.doc for a detailed understanding.

 

-Robin

QuoteReplyEditDelete

 

 

2009-07-28 16:03:29     Re: Kernel Messages Don't Show up in Telnet

Michael Hennerich (GERMANY)

Message: 78122    Try Netconsole ...

  docs.blackfin.uclinux.org/doku.php?id=linux-kernel:netconsole

 

-Michael

QuoteReplyEditDelete

 

 

2009-08-03 23:41:01     Re: Kernel Messages Don't Show up in Telnet

Mike Frysinger (UNITED STATES)

Message: 78329   

 

`dmesg` is the recommended method for reading the kernel log buffer, although catting /proc/kmsg should work as well

QuoteReplyEditDelete

 

 

2009-08-06 11:26:31     Re: Kernel Messages Don't Show up in Telnet

Dave Henning (UNITED STATES)

Message: 78427   

 

Thank you to all of you guys both for the quick answer to my immediate question and the pointers to more background info.

 

It is much appreciated.

 

Dave ...

Attachments

    Outcomes