Rob Landley | 1 May 2006 21:27

Re: Why my SHELL(ash) does not work on 386SX ,mayday...mayday...!

On Saturday 29 April 2006 4:27 am, 罗智 wrote:
> My system is made with linux kernel 2.4.20 + busybox1.1.0 + RootFileSystem
> which is manually created. it's ok on several PC .
> When I move this system to my embedded computer (CPU:ALI 6117,includes
> 386SX ) , problems occurred.
> The kernel works ok on the embedded system , I think ,during the booting
> .the /etc/init.d/rcS is ok ,too. the embedded system stop when shell should
> get out and show shell prompt.

If the same binary runs on a Pentium III but doesn't run on 386SX, my first 
guess would be that your compiler is outputting 486 code or higher, but if 
the same compiler is building an init and such that runs, that's probably not 
it.

> I have tried three /etc/inittab :
> 1:tty1::respawn:/sbin/getty 38400 tty1
>    Embedded system show "login:",but when I insert username and press enter
> ,"login:" come out again. no shell prompt show out.
> 2:tty1::askfirst:/bin/sh
>    Everything is ok when booting , system go into " Please press Enter to
> activate this console". but this statement show again when I press enter.
> system still can't go into shell. 3:tty1::respawn:/bin/sh
>    the phenomena is nothing . booting is ok , but nothing show out at last
> . system idles there, Can not go into shell!

How much memory do you have, and is dmesg showing the OOM killer running?

Have you tried one of the other shells (start with lash and work your way up).

Rob
--

-- 
Never bet against the cheap plastic solution.

Gmane