* about serial console problem
@ 2001-07-23 6:51 Barry Wu
2001-07-23 7:11 ` Keith Owens
2001-07-23 14:29 ` Marc Karasek
0 siblings, 2 replies; 10+ messages in thread
From: Barry Wu @ 2001-07-23 6:51 UTC (permalink / raw)
To: linux-mips
Hi, all,
I am porting linux 2.4.3 to our mipsel evaluation
board. Now I meet a problem. Because I use edown
to download the linux kernel to evaluation board.
I update the serial baud rate to 115200.
I use serial 0 as our console, and I can use
printk to print debug messages on serial port.
But after kernel call /sbin/init, I can not
see "INIT ... ..." messages on serial port.
I suppose perhaps I make some mistakes. But when
I use 2.2.12 kernel, it ok.
If someone knows, please help me. Thanks!
Barry
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: about serial console problem
2001-07-23 6:51 about serial console problem Barry Wu
@ 2001-07-23 7:11 ` Keith Owens
2001-07-23 14:29 ` Marc Karasek
1 sibling, 0 replies; 10+ messages in thread
From: Keith Owens @ 2001-07-23 7:11 UTC (permalink / raw)
To: Barry Wu; +Cc: linux-mips
On Sun, 22 Jul 2001 23:51:25 -0700 (PDT),
Barry Wu <wqb123@yahoo.com> wrote:
>I am porting linux 2.4.3 to our mipsel evaluation
>board. Now I meet a problem. Because I use edown
>to download the linux kernel to evaluation board.
>I update the serial baud rate to 115200.
>I use serial 0 as our console, and I can use
>printk to print debug messages on serial port.
>But after kernel call /sbin/init, I can not
>see "INIT ... ..." messages on serial port.
Probably you did not code the console boot parameters correctly. In
LILO, append="console=tty0 console=ttyS0,115200". printk is written to
all consoles, init messages are only written to the last console
specified.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: about serial console problem
2001-07-23 6:51 about serial console problem Barry Wu
2001-07-23 7:11 ` Keith Owens
@ 2001-07-23 14:29 ` Marc Karasek
2001-07-23 19:56 ` Dave Airlie
1 sibling, 1 reply; 10+ messages in thread
From: Marc Karasek @ 2001-07-23 14:29 UTC (permalink / raw)
To: Barry Wu; +Cc: linux-mips
This sounds like a problem I ran into on another processor/platform.
What are you using for a ramdisk? Is it busybox? There was a bug in
0.51 busybox that would not let it accept input from a console on a
serial port. It had to do with the init for the serial port. You can
check the patch file below to see the problem that was in busybox...
--- init.c.orig Sat Apr 21 17:46:57 2001
+++ init.c Sat Apr 21 17:46:31 2001
@@ -276,7 +276,7 @@
/* Make it be sane */
tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD;
- tty.c_cflag |= HUPCL|CLOCAL;
+ tty.c_cflag |= CREAD|HUPCL|CLOCAL;
/* input modes */
tty.c_iflag = ICRNL | IXON | IXOFF;
On 22 Jul 2001 23:51:25 -0700, Barry Wu wrote:
>
> Hi, all,
>
> I am porting linux 2.4.3 to our mipsel evaluation
> board. Now I meet a problem. Because I use edown
> to download the linux kernel to evaluation board.
> I update the serial baud rate to 115200.
> I use serial 0 as our console, and I can use
> printk to print debug messages on serial port.
> But after kernel call /sbin/init, I can not
> see "INIT ... ..." messages on serial port.
> I suppose perhaps I make some mistakes. But when
> I use 2.2.12 kernel, it ok.
> If someone knows, please help me. Thanks!
>
> Barry
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
--
/*************************
Marc Karasek
Sr. Firmware Engineer
iVivity Inc.
marc_karasek@ivivity.com
(770) 986-8925
(770) 986-8926 Fax
*************************/
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: about serial console problem
@ 2001-07-23 19:56 ` Dave Airlie
0 siblings, 0 replies; 10+ messages in thread
From: Dave Airlie @ 2001-07-23 19:56 UTC (permalink / raw)
To: Marc Karasek; +Cc: Barry Wu, linux-mips
Cool, this patch fixed a problem we were seeing with busybox on the
Linux/VAX project, that I hadn't time to look at...
thanks
Dave.
On 23 Jul 2001, Marc Karasek wrote:
> This sounds like a problem I ran into on another processor/platform.
> What are you using for a ramdisk? Is it busybox? There was a bug in
> 0.51 busybox that would not let it accept input from a console on a
> serial port. It had to do with the init for the serial port. You can
> check the patch file below to see the problem that was in busybox...
>
> --- init.c.orig Sat Apr 21 17:46:57 2001
> +++ init.c Sat Apr 21 17:46:31 2001
> @@ -276,7 +276,7 @@
>
> /* Make it be sane */
> tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD;
> - tty.c_cflag |= HUPCL|CLOCAL;
> + tty.c_cflag |= CREAD|HUPCL|CLOCAL;
>
> /* input modes */
> tty.c_iflag = ICRNL | IXON | IXOFF;
>
> On 22 Jul 2001 23:51:25 -0700, Barry Wu wrote:
> >
> > Hi, all,
> >
> > I am porting linux 2.4.3 to our mipsel evaluation
> > board. Now I meet a problem. Because I use edown
> > to download the linux kernel to evaluation board.
> > I update the serial baud rate to 115200.
> > I use serial 0 as our console, and I can use
> > printk to print debug messages on serial port.
> > But after kernel call /sbin/init, I can not
> > see "INIT ... ..." messages on serial port.
> > I suppose perhaps I make some mistakes. But when
> > I use 2.2.12 kernel, it ok.
> > If someone knows, please help me. Thanks!
> >
> > Barry
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> --
> /*************************
> Marc Karasek
> Sr. Firmware Engineer
> iVivity Inc.
> marc_karasek@ivivity.com
> (770) 986-8925
> (770) 986-8926 Fax
> *************************/
>
>
--
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied@skynet.ie
pam_smb / Linux DecStation / Linux VAX / ILUG person
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: about serial console problem
@ 2001-07-23 19:56 ` Dave Airlie
0 siblings, 0 replies; 10+ messages in thread
From: Dave Airlie @ 2001-07-23 19:56 UTC (permalink / raw)
To: Marc Karasek; +Cc: Barry Wu, linux-mips
Cool, this patch fixed a problem we were seeing with busybox on the
Linux/VAX project, that I hadn't time to look at...
thanks
Dave.
On 23 Jul 2001, Marc Karasek wrote:
> This sounds like a problem I ran into on another processor/platform.
> What are you using for a ramdisk? Is it busybox? There was a bug in
> 0.51 busybox that would not let it accept input from a console on a
> serial port. It had to do with the init for the serial port. You can
> check the patch file below to see the problem that was in busybox...
>
> --- init.c.orig Sat Apr 21 17:46:57 2001
> +++ init.c Sat Apr 21 17:46:31 2001
> @@ -276,7 +276,7 @@
>
> /* Make it be sane */
> tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD;
> - tty.c_cflag |= HUPCL|CLOCAL;
> + tty.c_cflag |= CREAD|HUPCL|CLOCAL;
>
> /* input modes */
> tty.c_iflag = ICRNL | IXON | IXOFF;
>
> On 22 Jul 2001 23:51:25 -0700, Barry Wu wrote:
> >
> > Hi, all,
> >
> > I am porting linux 2.4.3 to our mipsel evaluation
> > board. Now I meet a problem. Because I use edown
> > to download the linux kernel to evaluation board.
> > I update the serial baud rate to 115200.
> > I use serial 0 as our console, and I can use
> > printk to print debug messages on serial port.
> > But after kernel call /sbin/init, I can not
> > see "INIT ... ..." messages on serial port.
> > I suppose perhaps I make some mistakes. But when
> > I use 2.2.12 kernel, it ok.
> > If someone knows, please help me. Thanks!
> >
> > Barry
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> --
> /*************************
> Marc Karasek
> Sr. Firmware Engineer
> iVivity Inc.
> marc_karasek@ivivity.com
> (770) 986-8925
> (770) 986-8926 Fax
> *************************/
>
>
--
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied@skynet.ie
pam_smb / Linux DecStation / Linux VAX / ILUG person
^ permalink raw reply [flat|nested] 10+ messages in thread
* about serial console problem
@ 2001-07-23 6:52 Barry Wu
2001-07-24 20:10 ` Eric W. Biederman
0 siblings, 1 reply; 10+ messages in thread
From: Barry Wu @ 2001-07-23 6:52 UTC (permalink / raw)
To: linux-kernel
Hi, all,
I am porting linux 2.4.3 to our mipsel evaluation
board. Now I meet a problem. Because I use edown
to download the linux kernel to evaluation board.
I update the serial baud rate to 115200.
I use serial 0 as our console, and I can use
printk to print debug messages on serial port.
But after kernel call /sbin/init, I can not
see "INIT ... ..." messages on serial port.
I suppose perhaps I make some mistakes. But when
I use 2.2.12 kernel, it ok.
If someone knows, please help me. Thanks!
Barry
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: about serial console problem
2001-07-23 6:52 Barry Wu
@ 2001-07-24 20:10 ` Eric W. Biederman
2001-07-24 22:29 ` Robert J.Dunlop
0 siblings, 1 reply; 10+ messages in thread
From: Eric W. Biederman @ 2001-07-24 20:10 UTC (permalink / raw)
To: Barry Wu; +Cc: linux-kernel
Barry Wu <wqb123@yahoo.com> writes:
> Hi, all,
>
> I am porting linux 2.4.3 to our mipsel evaluation
> board. Now I meet a problem. Because I use edown
> to download the linux kernel to evaluation board.
> I update the serial baud rate to 115200.
> I use serial 0 as our console, and I can use
> printk to print debug messages on serial port.
> But after kernel call /sbin/init, I can not
> see "INIT ... ..." messages on serial port.
> I suppose perhaps I make some mistakes. But when
> I use 2.2.12 kernel, it ok.
> If someone knows, please help me. Thanks!
It's a bug in init. INIT clears the CREAD flag which means all reads
to the console will be dropped. Why it /sbin/init works before 2.4.3
is a mystery.
Eric
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: about serial console problem
2001-07-24 20:10 ` Eric W. Biederman
@ 2001-07-24 22:29 ` Robert J.Dunlop
2001-07-25 8:52 ` Eric W. Biederman
0 siblings, 1 reply; 10+ messages in thread
From: Robert J.Dunlop @ 2001-07-24 22:29 UTC (permalink / raw)
To: Eric W. Biederman; +Cc: Barry Wu, linux-kernel
Hi,
On Tue, Jul 24, Eric W. Biederman wrote:
> Barry Wu <wqb123@yahoo.com> writes:
>
> > I am porting linux 2.4.3 to our mipsel evaluation
> > board. Now I meet a problem. Because I use edown
> > to download the linux kernel to evaluation board.
> > I update the serial baud rate to 115200.
> > I use serial 0 as our console, and I can use
> > printk to print debug messages on serial port.
> > But after kernel call /sbin/init, I can not
> > see "INIT ... ..." messages on serial port.
> > I suppose perhaps I make some mistakes. But when
> > I use 2.2.12 kernel, it ok.
> > If someone knows, please help me. Thanks!
>
> It's a bug in init. INIT clears the CREAD flag which means all reads
> to the console will be dropped. Why it /sbin/init works before 2.4.3
> is a mystery.
Perhaps because most of the serial drivers didn't implement CREAD (or
rather !CREAD) until then. Actually more and more have been implementing
it as we go through 2.4.x, depends when your particular driver got caught.
--
Bob Dunlop FarSite Communications
rjd@xyzzy.clara.co.uk bob.dunlop@farsite.co.uk
www.xyzzy.clara.co.uk www.farsite.co.uk
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: about serial console problem
2001-07-24 22:29 ` Robert J.Dunlop
@ 2001-07-25 8:52 ` Eric W. Biederman
2001-07-25 11:12 ` Robert J.Dunlop
0 siblings, 1 reply; 10+ messages in thread
From: Eric W. Biederman @ 2001-07-25 8:52 UTC (permalink / raw)
To: Robert J.Dunlop; +Cc: Barry Wu, linux-kernel
"Robert J.Dunlop" <rjd@xyzzy.clara.co.uk> writes:
> Hi,
>
> On Tue, Jul 24, Eric W. Biederman wrote:
> > Barry Wu <wqb123@yahoo.com> writes:
> >
> > > I am porting linux 2.4.3 to our mipsel evaluation
> > > board. Now I meet a problem. Because I use edown
> > > to download the linux kernel to evaluation board.
> > > I update the serial baud rate to 115200.
> > > I use serial 0 as our console, and I can use
> > > printk to print debug messages on serial port.
> > > But after kernel call /sbin/init, I can not
> > > see "INIT ... ..." messages on serial port.
> > > I suppose perhaps I make some mistakes. But when
> > > I use 2.2.12 kernel, it ok.
> > > If someone knows, please help me. Thanks!
> >
> > It's a bug in init. INIT clears the CREAD flag which means all reads
> > to the console will be dropped. Why it /sbin/init works before 2.4.3
> > is a mystery.
>
> Perhaps because most of the serial drivers didn't implement CREAD (or
> rather !CREAD) until then.
Hmm. When I looked it appeared CREAD should have worked in 2.4.2 but I do
know /sbin/init didn't have a problem with that one.
> Actually more and more have been implementing
> it as we go through 2.4.x, depends when your particular driver got caught.
Do you know the history on how/why ~CREAD support started showing in
in the linux kernels. I'd like to understand what is going on.
Eric
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: about serial console problem
2001-07-25 8:52 ` Eric W. Biederman
@ 2001-07-25 11:12 ` Robert J.Dunlop
0 siblings, 0 replies; 10+ messages in thread
From: Robert J.Dunlop @ 2001-07-25 11:12 UTC (permalink / raw)
To: Eric W. Biederman; +Cc: Barry Wu, linux-kernel
On Wed, Jul 25, Eric W. Biederman wrote:
> "Robert J.Dunlop" <rjd@xyzzy.clara.co.uk> writes:
> > Actually more and more have been implementing
> > it as we go through 2.4.x, depends when your particular driver got caught.
>
> Do you know the history on how/why ~CREAD support started showing in
> in the linux kernels. I'd like to understand what is going on.
Sorry! I've red herringed you here. Most drivers were fixed way back in
2.2.x or before. From the Changelog we have:
Fri Nov 8 20:19:50 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
* serial.c (change_speed): Add support for CREAD, as required by POSIX
I just happed to notice the late change on a couple of third party drivers
and jumped to the wrong conclusion.
--
Bob Dunlop FarSite Communications
rjd@xyzzy.clara.co.uk bob.dunlop@farsite.co.uk
www.xyzzy.clara.co.uk www.farsite.co.uk
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2001-07-25 11:12 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-23 6:51 about serial console problem Barry Wu
2001-07-23 7:11 ` Keith Owens
2001-07-23 14:29 ` Marc Karasek
2001-07-23 19:56 ` Dave Airlie
2001-07-23 19:56 ` Dave Airlie
-- strict thread matches above, loose matches on Subject: below --
2001-07-23 6:52 Barry Wu
2001-07-24 20:10 ` Eric W. Biederman
2001-07-24 22:29 ` Robert J.Dunlop
2001-07-25 8:52 ` Eric W. Biederman
2001-07-25 11:12 ` Robert J.Dunlop
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.