serial console and kernel 2.4
Quoted 11 lines
I recently upgraded a linux box to the kernel 2.4.4 (from 2.2.18). This box has no display and use the serial console. Since the upgrade I can see the boot output on the remote console but I can't use the keyboard. Each time I press a key, an interrupt is seen by the no-display machine but no char appears in the console. Today I've upgraded an another box to 2.4.7 with a similar setup and I've the same problem.
Is there something that I'm missing ? (something new with the kernel 2.4 that is required for a serial console that was not required with the 2.2 ?)
I hate to send an email which says "it works for me", but it does (all the way up to 2.4.7).
However, one of the things to remember about the serial console is that it is primarily designed for *output*. If you see the boot messages, then it's doing its job correctly. Things like kdb and sysrq can accept input from the serial console, but usually only if something else (like getty) has opened it first.
My setup (on RedHat 7.1) looks like this
In /etc/lilo.conf
# make lilo output to serial console serial=0,9600n8
# for each kernel add this line
append="console=ttyS0,9600n8 console=tty0"Note, the above append causes /dev/console to be /dev/tty0 (the virtual console). If you want to see all the boot messages you need /dev/ttyS0 to be /dev/console and you should reverse the two console statements in this line.
In /etc/inittab:
S:0123456:respawn:/sbin/mingetty --noclear ttyS0
With this setup I can activate sysrq and kdb from the serial console.
Note also that different distributions have different ways of handling the system console; you might also have to disable the special distribution handling on a non-RedHat system.
James Bottomley
"it works for me" is better that no answer for me. So Thank you for your answer.
Reto give me a solution : because of a flag all incomming char are ignored. So now I need to find why this flag is ok for you and not for me.
Christophe
Quoted 63 lines · James Bottomley
Quoted 11 lines
I recently upgraded a linux box to the kernel 2.4.4 (from 2.2.18). This box has no display and use the serial console. Since the upgrade I can see the boot output on the remote console but I can't use the keyboard. Each time I press a key, an interrupt is seen by the no-display machine but no char appears in the console. Today I've upgraded an another box to 2.4.7 with a similar setup and I've the same problem.
Is there something that I'm missing ? (something new with the kernel 2.4 that is required for a serial console that was not required with the 2.2 ?)
I hate to send an email which says "it works for me", but it does (all the way
up to 2.4.7).However, one of the things to remember about the serial console is that it is
primarily designed for *output*. If you see the boot messages, then it'sdoing its job correctly. Things like kdb and sysrq can accept input from the
serial console, but usually only if something else (like getty) has opened it
first.My setup (on RedHat 7.1) looks like this
In
/etc/lilo.conf# make lilo output to serial console serial=0,9600n8# for each kernel add this line append="console=ttyS0,9600n8 console=tty0"Note, the above append causes
/dev/consoleto be/dev/tty0(the virtual console). If you want to see all the boot messages you need/dev/ttyS0to be/dev/consoleand you should reverse the two console statements in this line.In
/etc/inittab:S:0123456:respawn:/sbin/mingetty --noclear ttyS0
With this setup I can activate sysrq and kdb from the serial console.
Note also that different distributions have different ways of handling the
system console; you might also have to disable the special distribution handling on a non-RedHat system.James Bottomley
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 6 lines
Christophe Barbé Software Engineer - [email protected] Lineo France - Lineo High Availability Group 42-46, rue Médéric - 92110 Clichy - France phone (33).1.41.40.02.12 - fax (33).1.41.40.02.01 http://www.lineo.com
From: "christophe barb�" <[email protected]>
Quoted 3 lines
"it works for me" is better that no answer for me. So Thank you for your answer.
Reto give me a solution : because of a flag all incomming char are
ignored.
Quoted 1 line
So now I need to find why this flag is ok for you and not for me.
The patch breaks the correct operation of the serial driver. CREAD is the flag that enables/disables the rx side of the serial port. The kernel or whatever service is trying to use the console doesn't set CREAD, so rxed (incoming) characters are ignored.
You need to find out why the CREAD handling isn't done properly. This has come up a number of times on lkml recently; you should be able to find an appropriate answer or pointer in the right direction by checking the archives.
Patching the driver breaks the driver instead of fixing the problem.
..Stu
I fully agree with you that the patch is not correct and I'm sure that Reto agree too.
I'm looking in the code to find the reason but it sounds not easy (termio stuff ever scare me).
Do you remember a related thread ? with a correct solution ?
Christophe
Quoted 30 lines · Stuart MacDonald
From: "christophe barbé" <[email protected]>
Quoted 1 line
"it works for me" is better that no answer for me. So Thank you for
your
Quoted 2 lines
answer.
Reto give me a solution : because of a flag all incomming char areignored.
Quoted 1 line
So now I need to find why this flag is ok for you and not for me.
The patch breaks the correct operation of the serial driver. CREAD is the flag that enables/disables the rx side of the serial port. The kernel or whatever service is trying to use the console doesn't set CREAD, so rxed (incoming) characters are ignored.
You need to find out why the CREAD handling isn't done properly. This has come up a number of times on lkml recently; you should be able to find an appropriate answer or pointer in the right direction by checking the archives.
Patching the driver breaks the driver instead of fixing the problem.
..Stu
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 6 lines
Christophe Barbé Software Engineer - [email protected] Lineo France - Lineo High Availability Group 42-46, rue Médéric - 92110 Clichy - France phone (33).1.41.40.02.12 - fax (33).1.41.40.02.01 http://www.lineo.com
On Mon, Jul 30, 2001 at 06:21:24PM +0200, christophe barb? wrote:
Do you remember a related thread ? with a correct solution ?
Upgrade init ?
--cw
(Using 2.4.x all over the place with serial console and no magic patches)
Quoted 5 lines · Chris Wedgwood
On Mon, Jul 30, 2001 at 06:21:24PM +0200, christophe barb? wrote:
Do you remember a related thread ? with a correct solution ?
Upgrade init ?
to what? and which version is broken?
I am seeing a problem on an x86 machine <-> sparc64 machine (E3500) both running linux. the sparc box has the latest debian woody and the x86 is running the latest redhat 7.1. x86 is running 2.4.3+xfs and sparc64 is running 2.4.7+vger.samba.org. I can type on the sparc and see output on the x86, but not vice versa.
-tduffy
On Mon, Jul 30, 2001 at 01:36:32PM -0700, Thomas Duffy wrote:
to what? and which version is broken?
No idea, whatever debian ships with.
The reason I use debian is 'things just work' --- presumably redhat has an update for sysvinit, so just snarf the latest and see if that helps.
--cw
In article <[email protected]>,
Quoted 9 lines · Chris Wedgwood
On Mon, Jul 30, 2001 at 01:36:32PM -0700, Thomas Duffy wrote:
to what? and which version is broken?
No idea, whatever debian ships with.
The reason I use debian is 'things just work' --- presumably redhat has an update for sysvinit, so just snarf the latest and see if that helps.
sysvinit 2.80 is now in debian unstable, it fixes the CREAD bug. It might take 1 or 2 days for the alpha/mips/etc autobuilders to catch up and produce a .deb for those platforms.
Mike.
Signature · 2 lines
"dselect has a user interface which scares small children" -- Theodore Tso, on debian-devel
On Debian/Sid, sysinit is uptodate as usual.
Unfortunately I've also to deal with RHbox.
In RedHat Rawhide the current version is SysVinit-2.78-18 and is patched for the CREAD bug.
So If you have a RedHat box, update your SysInit package up to 2.78-18.
Thank you Miguel for your work (and for your fortune, I like it).
Christophe
Quoted 28 lines · Miquel van Smoorenburg
In article <[email protected]>,
Quoted 9 lines · Chris Wedgwood
On Mon, Jul 30, 2001 at 01:36:32PM -0700, Thomas Duffy wrote:
to what? and which version is broken?
No idea, whatever debian ships with.
The reason I use debian is 'things just work' --- presumably redhat has an update for sysvinit, so just snarf the latest and see if that helps.
sysvinit 2.80 is now in debian unstable, it fixes the CREAD bug. It might take 1 or 2 days for the alpha/mips/etc autobuilders to catch up and produce a .deb for those platforms.
Mike.
Signature · 9 lines
"dselect has a user interface which scares small children" -- Theodore Tso, on debian-devel - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Signature · 6 lines
Christophe Barbé Software Engineer - [email protected] Lineo France - Lineo High Availability Group 42-46, rue Médéric - 92110 Clichy - France phone (33).1.41.40.02.12 - fax (33).1.41.40.02.01 http://www.lineo.com