linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Redirecting printk to a file
@ 2001-07-31 23:51 Rod Boyce
  2001-08-01  0:11 ` Dan Malek
  0 siblings, 1 reply; 3+ messages in thread
From: Rod Boyce @ 2001-07-31 23:51 UTC (permalink / raw)
  To: 'linuxppc-embedded@lists.linuxppc.org'


Guys,

We are having a bit of a quandary we are trying to redirect the output of
printk from our v24 port to a file in our debug environment / embedded
system so we can use the V24 port for something else.  We are newish to the
world of Linux and cannot seem to figure this our does anybody have any
suggestions?

Regards,
Rod Boyce

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: Redirecting printk to a file
  2001-07-31 23:51 Redirecting printk to a file Rod Boyce
@ 2001-08-01  0:11 ` Dan Malek
  2001-08-01 13:30   ` James Petterson
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Malek @ 2001-08-01  0:11 UTC (permalink / raw)
  To: Rod Boyce; +Cc: 'linuxppc-embedded@lists.linuxppc.org'


Rod Boyce wrote:

> We are having a bit of a quandary we are trying to redirect the output of
> printk

Don't assign a system console, or bump the loglevel real high.
Then just use the syslog daemon to move it from the kernel circular
buffer to a file.  This is all standard Linux stuff.


	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: Redirecting printk to a file
  2001-08-01  0:11 ` Dan Malek
@ 2001-08-01 13:30   ` James Petterson
  0 siblings, 0 replies; 3+ messages in thread
From: James Petterson @ 2001-08-01 13:30 UTC (permalink / raw)
  To: Rod Boyce; +Cc: 'linuxppc-embedded@lists.linuxppc.org'


On Tuesday 31 July 2001 21:11, Dan Malek wrote:
> Rod Boyce wrote:
> > We are having a bit of a quandary we are trying to redirect the output of
> > printk
>
> Don't assign a system console, or bump the loglevel real high.
> Then just use the syslog daemon to move it from the kernel circular
> buffer to a file.  This is all standard Linux stuff.
>
> 	-- Dan
For debugging purposes, there's another option that I've found easier to
setup:

1. Set the loglevel to a high priority
echo 1 > /proc/sys/kernel/printk

2. Open a telnet session to your board and, in the opened session:
cat /proc/kmsg

James

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2001-08-01 13:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-31 23:51 Redirecting printk to a file Rod Boyce
2001-08-01  0:11 ` Dan Malek
2001-08-01 13:30   ` James Petterson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).