OpenEdv-开源电子网

标题: busybox构建根文件系统时提示" /sbin/init exists but couldn't execute it"错误 [打印本页]

作者: 我叫做大熙熙    时间: 2021-3-14 15:41
标题: busybox构建根文件系统时提示" /sbin/init exists but couldn't execute it"错误
还在看busybox构建根文件系统那一章节 38.3章节
按照教程操作,报以下错误
VFS: Mounted root (nfs filesystem) on device 0:14.
devtmpfs: mounted
Freeing unused kernel memory: 404K (809a1000 - 80a06000)
request_module: runaway loop modprobe binfmt-464c
Starting init: /sbin/init exists but couldn't execute it (error -8)
request_module: runaway loop modprobe binfmt-464c
Starting init: /bin/sh exists but couldn't execute it (error -8)
Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.


然后系统起不来
找了网上的说明,文件权限都改成777了,但是还是有会问题。
有遇到过的小伙伴吗

作者: 我叫做大熙熙    时间: 2021-3-14 15:41
解决啦,是因为没有修改Makefile文件中的ARM 和 CROSS_COMPILE定义,是在命令行里定义这个的,然后make install那里的时候也是需要定义这两个参数,否则编译出来的busybox文件是基于x86平台的,arm板子上用不了




欢迎光临 OpenEdv-开源电子网 (https://www.openedv.com/) Powered by Discuz! X3.4