Redirecting printk to a file
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/
Redirecting printk to a file
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/
Redirecting printk to a file
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/