why does linux cannot boot?

zhishan xie random263 at yahoo.com.cn
Mon Oct 16 15:24:33 UTC 2006


when i compile busybox as static binary, linux can boot as following:
....
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 80K
mount /proc as proc
mount /sys as sysfs
mount /etc as ramfs
mount /dev/shm as tmpfs
Bummer, could not run '/etc/init.d/rcS': No such file or directory

Please press Enter to activate this console.
/ $

however, when i compile busybox using shared library, boot as following:
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 80K
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

shared library which busybox use
$arm-linux-readelf -a busybox | grep "Shared library"
 0x00000001 (NEEDED)                     Shared library: [libbusybox.so.1]
 0x00000001 (NEEDED)                     Shared library: [libcrypt.so.1]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]

and I have copy library files to root file system's /lib
$ls ~/embed_sys/rootfs/lib
lrwxrwxrwx 1 root root      19 2006-10-16 00:14 libbusybox.so -> libbusybox.so.1.2.1
lrwxrwxrwx 1 root root      19 2006-10-16 00:14 libbusybox.so.1 -> libbusybox.so.1.2.1
lrwxrwxrwx 1 root root      19 2006-10-16 00:14 libbusybox.so.1.2 -> libbusybox.so.1.2.1
-rw-r--r-- 1 root root  146952 2006-10-16 00:14 libbusybox.so.1.2.1
-rwxr-xr-x 1 root root 1440346 2006-10-15 23:47 libc-2.3.5.so
-rwxr-xr-x 1 root root   30284 2006-10-15 23:47 libcrypt-2.3.5.so
lrwxrwxrwx 1 root root      17 2006-10-15 23:48 libcrypt.so.1 -> libcrypt-2.3.5.so
lrwxrwxrwx 1 root root      13 2006-10-15 23:48 libc.so.6 -> libc-2.3.5.so
-rwxr-xr-x 1 root root  778152 2006-10-15 23:47 libm-2.3.5.so
lrwxrwxrwx 1 root root      13 2006-10-15 23:48 libm.so.6 -> libm-2.3.5.so

who can tell me why cannot busybox run?
how to do?
 		
---------------------------------
 Mp3疯狂搜-新歌热歌高速下   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20061016/22f2354c/attachment-0002.htm 


More information about the busybox mailing list