[wplug] sending/selecting bootup output input to serial console

Rahul Kalaskar rkalaskar at aethon.com
Tue Feb 11 18:03:28 EST 2003


1) Make sure your kernel has compiled in support for console on serial
port. See Console drivers options in the kernel config. 

2) Pass the following kernel options: 
   console=ttyS0,19200
 
This is assuming you are using serial port 0. If you are using grub, the
grub.conf may look like this

title foo
	root (hd0,0)
	serial --unit=0 --speed=19200
	terminal --timeout=0 serial console
	kernel /vmlinuz-2.4.20 ro root=/dev/hda console=ttyS0,19200
	initrd /initrd.img

3) change your inittab
Add the following line  at the end of the usual virtual terminals
S0:2345:respawn:/sbin/mgetty -r -s19200 ttyS0

Other gettys like agetty will also work with some slight modifications.

4) make sure the irq for ttyS0 is same as what BIOS reports. ie irq
reported by 'serial -g /dev/ttyS0' should be the same as the one set in
BIOS. Usually its 4.




On Tue, 2003-02-11 at 17:21, Tim Quinlan wrote:
> Have a look at this document
> http://www.ibiblio.org/pub/Linux/docs/HOWTO/Text-Terminal-HOWTO
> 
> 
> On Tue, 2003-02-11 at 16:45, Starceski, Rita wrote:
> > Hi,
> > I am working on a device that uses linux as the operating
> > system on its single board computer(part of the device).  I would
> > like to setup the linux on this to send the boot output to the serial
> > port.. and be able to take input from the serial port at bootup.
> > (perhaps to allow the operator to select a different version of the kernel)
> > 
> > Can anyone give me some advice on how to do this ?
> > 
> > thanks
> > 
> > Rita
> > _______________________________________________
> > wplug mailing list
> > wplug at wplug.org
> > http://www.wplug.org/mailman/listinfo/wplug
> 
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
> 





More information about the wplug mailing list