Failed to execute /init

Freeing init memory: 4172K
Failed to execute /init
Failed to execute /sbin/init.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
Backtrace:
[<a0546788>] (dump_backtrace+0x0/0x114) from [<a042ea7c>] (dump_stack+0x18/0x1c)
r7:00000000 r6:00000000 r5:00000000 r4:a08ff730
[<a042ea64>] (dump_stack+0x0/0x1c) from [<a042eacc>] (panic+0x4c/0x11c)
[<a042ea80>] (panic+0x0/0x11c) from [<a0542d58>] (init_post+0xd8/0x100)
r3:00000010 r2:0000000d r1:0000000c r0:a04f2ef3
[<a0542c80>] (init_post+0x0/0x100) from [<a0008498>] (kernel_init+0xe0/0x110)
r5:00000000 r4:a08fe800
[<a00083b8>] (kernel_init+0x0/0x110) from [<a056d878>] (do_exit+0x0/0x5b4)
r5:00000000 r4:00000000

 

ll 发现init和busybox没有执行权限

chmod a+x init 就可以了

 

lib下busybox依赖库是否完全: 主要是libc.so 和链接器  ld-2.15.so  ld-linux.so.3 

arm-marvell-linux-gnueabi-readelf -d bin/busybox

Dynamic section at offset 0xa500c contains 24 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libc.so.6]

 

 

posted on 2011-06-29 17:53  katago  阅读(7557)  评论(1编辑  收藏  举报