Linux MIPS Architecture development
 help / color / mirror / Atom feed
* RE: busybox does not like 2.4.8, or the other way around?
@ 2001-09-26 15:53 Marc Karasek
  2001-09-26 16:47 ` Karsten Merker
  2001-09-26 17:26 ` Jun Sun
  0 siblings, 2 replies; 10+ messages in thread
From: Marc Karasek @ 2001-09-26 15:53 UTC (permalink / raw)
  To: 'Karsten Merker', Jun Sun; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1908 bytes --]

Yes, there was a bug in busybox that caused this.  I helped track it down a
few months ago and it should be fixed in the latest one.  I have attached an
email about the bug.  What version(s) of busybox are you using?



-----Original Message-----
From: Karsten Merker [mailto:karsten@excalibur.cologne.de]
Sent: Friday, September 21, 2001 1:30 AM
To: Jun Sun
Cc: linux-mips@oss.sgi.com
Subject: Re: busybox does not like 2.4.8, or the other way around?


On Thu, Sep 20, 2001 at 06:21:49PM -0700, Jun Sun wrote:

> I have a small busybox userland that works fine with 2.4.2 kernel, but
failed
> with the latest 2.4.8 kernel.  The symptom is that it is stuck at the
> following prompt:

[busybox waiting for keypress]

> A simple test shows the console is still working, i.e., pressing a key
*does*
> generate an interrupt and ISR *does* read the correct char value.
> 
> I really cannot think of anything else that might make busybox stuck here.

> Any clue?  Anybody else is using busybox with more recent kernels?

I have a smilar problem on my DECstation. Using 2.4.8 with the Debian
boot-floppies (based on busybox), the machine hangs when waiting for
the first keypress after the splash screen.
When booting 2.4.8 with my "normal" installation into single user mode,
I get a shell prompt, but cannot enter anything. I first thought of
a problem with the DECstation keyboard driver, but the same happens
on serial console. I have tested various kernel version with regard
to this - the last one working for me is 2.4.5.
When booting my "normal" installation with 2.4.8 into multiuser mode,
the machine crashes somewhere in the init scripts.

Is your box little or big endian?

Greetings,
Karsten
-- 
#include <standard_disclaimer>
Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der
Nutzung
oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder
Meinungsforschung.


[-- Attachment #2: Re: Bug in serial.c --]
[-- Type: message/rfc822, Size: 2020 bytes --]

From: Fabrice Gautier <gautier@email.enst.fr>
To: Marc Karasek <marc_karasek@ivivity.com>
Cc: kanoj@sgi.com
Subject: Re: Bug in serial.c
Date: Sat, 21 Apr 2001 11:54:03 -0400
Message-ID: <20010421173401.DAB9.GAUTIER@email.enst.fr>

Hi Marc and Kanoj

This is definitely a busybox bug for me. Busybox (0.50pre) init didn't
set CREAD in c_cflag:

--- 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;


Guess this is the same problem for other inits. 
The sample init code Richard B. Johnson posted on lkml does have CREAD,
that's why he didn't noticed anything.

Thanks,

On Fri, 20 Apr 2001 23:01:50 -0400
Marc Karasek <marc_karasek@ivivity.com> wrote:

> I got in touch with Kanoj (his email was the last one in the comments of
> serial.c) 
> 
> He recommended I make the below change to serial.c.  It worked for me and
I
> got my serial console port back :-)  
> 
> 
>  Okay. In change_speed(), comment out the two lines 
> 
>           if ((cflag & CREAD) == 0) 
>                   info->ignore_status_mask |= UART_LSR_DR; 
>     
>   This might get you back up. If you can track back to how the serial 
>   port needs to be opened, or some extra ioctls need to be made, let 
>   me know. 
> 
>   Kanoj 
> 
> 
> -----Original Message-----
> From: Fabrice Gautier
> To: marc_karasek@ivivity.com
> Cc: linux-kernel@vger.kernel.org
> Sent: 4/20/01 12:31 PM
> Subject: Re: Bug in serial.c
> 
> Same thing for me.
> 
> I'm using busybox as init/getty/shell.
> 
> Everything works fine with 2.4.2.
> With 2.4.3 console output is fine but not input.
> 
> Thanks
> 
> -- 
> Fabrice Gautier <gautier@email.enstfr>

-- 
Fabrice Gautier <gautier@email.enstfr>

^ permalink raw reply	[flat|nested] 10+ messages in thread
* busybox does not like 2.4.8, or the other way around?
@ 2001-09-21  1:21 Jun Sun
  2001-09-21  2:02 ` Bradley D. LaRonde
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jun Sun @ 2001-09-21  1:21 UTC (permalink / raw)
  To: linux-mips


I have a small busybox userland that works fine with 2.4.2 kernel, but failed
with the latest 2.4.8 kernel.  The symptom is that it is stuck at the
following prompt:

================
....
Kernel command line: console=ttyS0,115200 ip=bootp
....
Freeing unused kernel memory: 4k freed
Algorithmics/MIPS FPU Emulator v1.4
serial console detected.  Disabling virtual terminals.
init started:  BusyBox v0.51 (2001.07.18-06:43+0000) multi-call binary

Please press Enter to activate this console.
================

A simple test shows the console is still working, i.e., pressing a key *does*
generate an interrupt and ISR *does* read the correct char value.

I really cannot think of anything else that might make busybox stuck here. 
Any clue?  Anybody else is using busybox with more recent kernels?

Jun

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-09-27 17:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-26 15:53 busybox does not like 2.4.8, or the other way around? Marc Karasek
2001-09-26 16:47 ` Karsten Merker
2001-09-26 17:26 ` Jun Sun
2001-09-26 21:56   ` Geoffrey Espin
2001-09-27 17:21     ` Jun Sun
  -- strict thread matches above, loose matches on Subject: below --
2001-09-21  1:21 Jun Sun
2001-09-21  2:02 ` Bradley D. LaRonde
2001-09-21  2:02   ` Bradley D. LaRonde
2001-09-21  3:56 ` Ralf Baechle
2001-09-21  5:30 ` Karsten Merker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox