天嵌 ARM开发社区

 找回密码
 注册
查看: 2036|回复: 0

busybox问题

[复制链接]
yy309976659 发表于 2017-11-28 19:54:09 | 显示全部楼层 |阅读模式
在制作根文件系统时,如果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

请问有谁遇到过类似问题吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-4-26 04:08 , Processed in 1.031257 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表