Messages in this thread | | | Subject | Re: PROBLEM: 2.2.5 unstable on Dell PC, 2.0.36 is stable | Date | Wed, 28 Jul 99 11:21:45 +0100 | From | Richard Black <> |
| |
> > Does serial console require lots of magic config options? > > Not at all. It's a standard compile option, and once it's enabled the > kernel will let you redirect console to a serial port by using a boot > option such as "console=ttyS0,9600". That takes care of the kernel > console output, but you can also make init send all of the user console > stuff (the boot logs) to the serial port by making /dev/console point to > the appropriate serial device. Even singleuser login will then go to > serial. Options also exist on LILO for serial console. > > --Stephen
From Documentation/serial-console.txt
> You can specify multiple console= options on the kernel command line. > Output will appear on all of them. The last device will be used when > you open /dev/console. So, for example: > > console=ttyS1,9600 console=tty0 > > defines that opening /dev/console will get you the current foreground > virtual console, and kernel messages will appear on both the VGA > console and the 2nd serial port (ttyS1 or COM2) at 9600 baud.
easter:~> cat /proc/cmdline auto BOOT_IMAGE=linux-2.2.10 ro root=801 console=tty0 console=ttyS0,9600n8 easter:~> really "echo foo > /dev/ttyS0" easter:~> really "echo bar > /dev/console"
The string foo appears on the other logging machine, but not bar and none of the kernel messages appear.
Richard.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |