Re: writing to serial console

From: Jan-Benedict Glaw (jbglaw@lug-owl.de)
Date: Thu Jul 04 2002 - 10:22:03 EST


On Thu, 2002-07-04 10:14:50 -0500, Lee Chin <leechin@mail.com>
wrote in message <20020704151450.75171.qmail@mail.com>:
> 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 .

MfG, JBG

-- 
Jan-Benedict Glaw   .   jbglaw@lug-owl.de   .   +49-172-7608481
	 -- New APT-Proxy written in shell script --
	   http://lug-owl.de/~jbglaw/software/ap2/


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 07 2002 - 22:00:13 EST