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:
[] (dump_backtrace+0x0/0x114) from [] (dump_stack+0x18/0x1c)
r7:00000000 r6:00000000 r5:00000000 r4:a08ff730
[] (dump_stack+0x0/0x1c) from [] (panic+0x4c/0x11c)
[] (panic+0x0/0x11c) from [] (init_post+0xd8/0x100)
r3:00000010 r2:0000000d r1:0000000c r0:a04f2ef3
[] (init_post+0x0/0x100) from [] (kernel_init+0xe0/0x110)
r5:00000000 r4:a08fe800
[] (kernel_init+0x0/0x110) from [] (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]

 

 

你可能感兴趣的:(Failed to execute /init)