Busybox boot problem

Post Reply
paperoga
Posts: 1
Joined: Mon Apr 06, 2009 10:50 am

Busybox boot problem

Post by paperoga » Sat Apr 11, 2009 8:58 am

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:

krasimirr
Posts: 17
Joined: Mon Mar 23, 2009 10:47 pm

Re: Busybox boot problem

Post by krasimirr » Mon May 11, 2009 9:39 pm

I found this tutorial that might help you:
http://wiki.openmoko.org/wiki/Booting_from_SD

sinseman44
Posts: 5
Joined: Tue Apr 21, 2009 11:15 pm
Location: ANGERS
Contact:

Re: Busybox boot problem

Post by sinseman44 » Sat May 23, 2009 4:08 am

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 ?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests