Where is my shell ?
Denis Vlasenko
vda.linux at googlemail.com
Wed Apr 4 22:32:29 UTC 2007
On Monday 02 April 2007 11:05, Levend Sayar wrote:
> Hi, all
> I am trying to port Linux 2.4.32 to 386ex based embedded board. This is my
> very first attempt. I am using 4MB initrd image as root fs. Everything goes
> fine. I compiled busybox as a static image and install to my initrd image. I
> want to get a shell but nothing written to my console from busybox. AFAIK,
> /sbin/init is loaded by the kernel successfully, since I added some printk
> messages to trace what's going on. I deleted that lines from the log below
> for clearity. But somehow I couldn't get a user space app to write anything
> to the console.
In init, does exec() which starts /bin/sh (as configured in your inittab)
succeeds?
> gcc 3.3.3
> Busybox 1.1.0
> glibc 2.4
Can you try newer busybox?
> etc/inittab content :
> ::sysinit:/etc/init.d/rcS
> ::respawn:-/bin/sh
>
> etc/init.d/rcS content :
> #!/bin/sh
> /bin/mount -t proc proc /proc
>
> console output :
>
> Uncompressing Linux... Ok, booting the kernel.
> Linux version 2.4.32 (root at ds300)(gcc version 3.3.3 (SuSE Linux)) #35 Wed
...
> EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
> VFS: Mounted root (ext2 filesystem).
> Freeing unused kernel memory: 40k freed
>
> --Nothing written anymore from this point ...
Does it boot with kernel parameter init=/bin/sh?
--
vda
More information about the busybox
mailing list