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?