[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Serial Console problems with 2.4.3+ [FIX]
- To: <linux-il(at-nospam)cs.huji.ac.il>
- Subject: Serial Console problems with 2.4.3+ [FIX]
- From: "Haim Gelfenbeyn" <rnews(at-nospam)hageltech.com>
- Date: Mon, 18 Jun 2001 21:05:31 +0300
- Cc: "'Shlomo Matichin'" <shlomom(at-nospam)cs.huji.ac.il>
- Importance: Normal
- Organization: Hagel Technologies
- Reply-To: <haim(at-nospam)hageltech.com>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
Usually I don't reply to my own posts, but since several people on this
list indicated they had similar problems in private e-mails, I'm posting
a solution here.
Problem:
Starting with 2.4.3, bash won't accept any input when started by init in
single-user mode on serial console.
Fix:
It appears that 2.4.3 introduced some more strict term sanity checks in
char/serial.c. It broke many userland programs, busybox and sysvinit are
among them (as I found on kernel mailing list). Below is the patch for
sysvinit that fixes that problem:
-- sysvinit-2.78/src/init.c.CREAD Mon Jun 18 20:37:26 2001
+++ sysvinit-2.78/src/init.c Mon Jun 18 20:38:33 2001
@@ -684,7 +684,7 @@
(void) tcgetattr(fd, &tty);
tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD;
- tty.c_cflag |= HUPCL|CLOCAL;
+ tty.c_cflag |= CREAD|HUPCL|CLOCAL;
tty.c_cc[VINTR] = 3; /* ctrl('c') */
tty.c_cc[VQUIT] = 28; /* ctrl('\\') */
Hope it helped somebody,
Haim Gelfenbeyn.
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il