Serial Console
Quoted 8 lines
Quoted 7 lines
/dev/consolewill go to serial, but afaik it doesn't block for lack of a terminal. (has something to do with/dev/consolebeing semantically different to/dev/tty..., eg it doesn't block, not sure of the exact details).
Quoted 5 lines
Nope,
/dev/console*does* block. ATM I've found a quick workaround - I use "stty -F/dev/consoleclocal -crtscts" to turn off the serial flow control at the stawrt of/etc/rc.d/rc.sysinit- this seems to work quite well... of course it doesn't stop some program turning flow control back on and ballsing it all up again :)
I've got a machine here which redirects the console to the serial port using Lilo 'append="console=ttyS0"' and it boots fine without a connection to the serial port without having to do any specific manipulation of the flow control. I think that all serial output is dumped to /dev/null if DCD is not asserted no matter what the flow control says. Perhaps there are some hardware differences in the configuration of the control signal pull-up/downs.
Jon Burgess
PLANET PROJECT will connect millions of people worldwide through the combined technology of 3Com and the Internet. Find out more and register now at
http://www.planetproject.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
See, in an ideal world, that shouldn't be the case, at all.
Since we're NOT operating under the assumption that the serial console is a modem, we should be - instead - operating under the assumption that it is a 3-wire NULL connection. (thus, making NO assumptions about the user's hardware..)
If the user wants to ADD RTS/CTS flow control or DCD based state checking as an OPTION, well, hey. whatever. Pick your poison. But i sure as hell wouldn't do it that way.
Chad
Quoted 16 lines
Lilo 'append="console=ttyS0"' and it boots fine without a connection to the serial port without having to do any specific manipulation of the flow control. I think that all serial output is dumped to
/dev/nullif DCD is not asserted no matter what the flow control says. Perhaps there are some hardware differences in the configuration of the control signal pull-up/downs.Jon Burgess
PLANET PROJECT will connect millions of people worldwide through the combined technology of 3Com and the Internet. Find out more and register now at
http://www.planetproject.com
Quoted 5 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/