Page 1 of 1

Busybox boot problem

Posted: Sat Apr 11, 2009 8:58 am
by paperoga
Hi to all!

I succeeded to build an toolchain and a root for the mini2440. This root is based on Cross Linux from Scratch Embedded project,
and use uClibc as lib and busybox as init/shell program. I tested this 14MB root on the mini2440 qemu emulator... everything is fine, it works!!!
Now, i'm trying it on the real board. Same kernel, same root, same u-boot bootargs.
When the kernel is launched on the board using the bootargs

console=ttySAC0,115200 noinitrd root=/dev/mmcblk0p1 rootdelay=4 ro init=/sbin/init

after mounting the root, a kernel panic appears:

Kernel panic - not syncing: Attempted to kill init!

note, the /sbin/init is a one-line shell script:

#!/bin/busybox

but... if I use the bootarg init=/bin/busybox it appears the busybox command list
and so the kernel panic. Even I've tryied to make a link between
/init/sbin and /bin/busybox, but without results...

It seems that the kernel cannot read shell script or filesystem links...

any hints? :oops:

Re: Busybox boot problem

Posted: Mon May 11, 2009 9:39 pm
by krasimirr
I found this tutorial that might help you:
http://wiki.openmoko.org/wiki/Booting_from_SD

Re: Busybox boot problem

Posted: Sat May 23, 2009 4:08 am
by sinseman44
I had the same problem :

I resolved it with the change of the CROSS_COMPILE prefix :

In first, I used CROSS_COMPILE = arm-none-linux-gnueabi- and I had the problem, finally I used CROSS_COMPILE = arm-linux-
and It's OK

Which toolchain is used ?