Busybox shell seems to be not working

Denys Vlasenko vda.linux at googlemail.com
Tue Sep 18 14:46:32 UTC 2007


On Monday 17 September 2007 21:12, Rae_Samant at emc.com wrote:
> Hi,
>  I am porting a marvell board with Linux (using buildroot and busybox).
>   
>  Busybox builds fine (I just used the 1.7.1 -- latest version).
>  
>  I built busybox statically.
> 
> I need to boot the Marvell feroceon processor
> With LSP from marvell.
>  
>  The kernel comes up fine and mounts the root from initrd, but after
> that, the linuxrc is not executed. But kernel thread for linuxrc
> Has been spawned and "do_linuxrc" function gets called.
> 
>  I have busybox for shell and other commands.
>  
>  If I replace linuxrc with an arm executable program (in the name of
> "linuxrc") which calls execve with "ls" -- it works..
>  Ie..I see list of files in the / directory of my filesystem after root
> is mounted.
>  
>  Seems that the shell of busybox is not working properly.
> 
> 
>  Configuration:
> 
>  I have 128 MB RAM.
>  
>  At U-boot I give:
>  
>  >> tftpboot 0x400000 uImage.marvell
>  >> tftpboot 0x800000 initrd.marvell
>  >> bootm 0x400000 0x800000
> 
>  bootargs are: console=ttyS0,115200 initrd=0x800000 root=/dev/ram
> Busybox: 20060906.tar.bz2  ### I tried with latest  : 1.7.1 too. Same
> output.
> uClibc : 0.9.28.3
> Gcc    : 3.4.6
> KERNEL: 2.6.12.6 patched with LSP 2.2.2 from marvell.
> 
> After mounting root, the "linuxrc" is called. This is a script and has
> initial code like this:
> #!/bin/sh
> echo "hello"
> 
> mount -a

What is /bin/sh? A link to busybox? Busybox has four shells (ash, msh, lash, hush),
which one is configured to be "sh"?

Try different shell (#!/bin/ash, #!/bin/msh...)

Does it boot with init=/bin/sh?
--
vda



More information about the busybox mailing list