about serial console problem
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/
Quoted 13 lines · Barry Wu
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
Hi,
Quoted 14 lines · Eric W. Biederman
Quoted 11 lines · Barry Wu
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!
Quoted 3 lines
It's a bug in init. INIT clears the CREAD flag which means all reads to the console will be dropped. Why it
/sbin/initworks 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.
Signature · 3 lines
Bob Dunlop FarSite Communications
[email protected] [email protected]
www.xyzzy.clara.co.uk www.farsite.co.ukQuoted 17 lines · Robert J.Dunlop
Hi,
Quoted 14 lines · Eric W. Biederman
Quoted 11 lines · Barry Wu
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!
Quoted 6 lines
Quoted 3 lines
It's a bug in init. INIT clears the CREAD flag which means all reads to the console will be dropped. Why it
/sbin/initworks 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.
Quoted 2 lines
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
Quoted 6 lines · Eric W. Biederman
Quoted 2 lines · Robert J.Dunlop
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 <[email protected]>
* 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.
Signature · 3 lines
Bob Dunlop FarSite Communications
[email protected] [email protected]
www.xyzzy.clara.co.uk www.farsite.co.uk