[lkml]   [2002]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: writing to serial console
On Thu, 2002-07-04 10:14:50 -0500, Lee Chin <>
wrote in message <>:
> Hi,
> I'm trying to write status messages to the serial console as the kernel boots up. I tried writing to ttyS0 in main.c, but the kernel crashes with a paging violation. Is there an easy way to do this?

Simply use printk() and boot up your kernel with "console=ttyS0" or like
that. See ./linux/Documentation/serial-console.txt .


Jan-Benedict Glaw . . +49-172-7608481
-- New APT-Proxy written in shell script --
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2005-03-22 13:27    [W:0.042 / U:0.160 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site