[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Serial Console problems with 2.4.3+ [FIX]
- To: <haim(at-nospam)hageltech.com>, <linux-il(at-nospam)cs.huji.ac.il>
- Subject: Re: Serial Console problems with 2.4.3+ [FIX]
- From: Noam Meltzer <tsnoam(at-nospam)zahav.net.il>
- Date: Tue, 19 Jun 2001 21:36:17 -0700
- Cc: "'Shlomo Matichin'" <shlomom(at-nospam)cs.huji.ac.il>
- In-Reply-To: <000001c0f821$43357540$0100a8c0@hagel.co.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
Hi!
can you please send it as a file?
At 21:05 18/06/2001 +0300, Haim Gelfenbeyn wrote:
>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
---
Noam Meltzer
tsnoam@zahav.net.il
ICQ: 4853872
=================================================================
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