yy309976659 发表于 2017-11-28 19:54:09

busybox问题

在制作根文件系统时,如果busybox配置项“Build BusyBox as a static binary(no shared libs)”不选中,则编译安装后生成的跟文件系统烧写到nand后,启动失败:
Failed to execute /init.Attempting defaults...
Kernel panic - not syncing: No init found.Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Backtrace:
[<c00181e0>] (dump_backtrace+0x0/0x10c) from [<c0621640>] (dump_stack+0x18/0x1c)
r7:00000013 r6:c003f4f4 r5:c0930610 r4:c0930610
[<c0621628>] (dump_stack+0x0/0x1c) from [<c06216a8>] (panic+0x64/0x198)
[<c0621644>] (panic+0x0/0x198) from [<c0008804>] (init_post+0x84/0xd4)
r3:fffffffe r2:00000010 r1:00000080 r0:c07b5010
[<c0008780>] (init_post+0x0/0xd4) from [<c08882fc>] (kernel_init+0xf4/0x124)
r5:c08c6048 r4:c092f680
[<c0888208>] (kernel_init+0x0/0x124) from [<c003f4f4>] (do_exit+0x0/0x69c)

而如果选中“Build BusyBox as a static binary(no shared libs)”则没有问题,但应用程序无法运行(hello是一个简单的打印程序,打印“hello word”而已):
-/bin/sh: ./hello: not found
已经拷贝glibc库到/lib

请问有谁遇到过类似问题吗?
页: [1]
查看完整版本: busybox问题