我有一个设备,我有一个3.10 linux内核引导到一个busybox (initramfs)
当我在SD卡上提取busybox文件系统映像时,当我将根文件从root=/dev/ram修改为/dev/mmcblck0p1时,它仍然引导到shell,所以busybox工作正常,但是如果我尝试使用任何其他FS,内核就会崩溃…
当我试图使用debootstrap (https://help.ubuntu.com/community/DebootstrapChroot)生成一个rootfs并在SD卡上提取新的rootfs时。我收到一个错误,上面写着“未能执行/sbin/init”,我确实检查了文件是否存在,并检查了权限,这对我来说很好。
有什么问题吗?
W.R.T rootfs我特别新。我假设SD卡上的任何FS都可以安装,但看起来并非如此。我猜/sbin/init将做什么是设备依赖的?
我想做什么?什么才是正常的方法?我甚至试过建筑,但我不能让gcc的目标。gcc不可能在大楼内吗?
-更新--
我将SD卡格式化为ext4格式,下面是fdisk的输出
Disk /dev/sdb1: 7945 MB, 7945588224 bytes
255 heads, 63 sectors/track, 965 cylinders, total 15518727 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc2aa4908
Device Boot Start End Blocks Id System下面是内核日志,而我在SD卡上有一个文件系统。记忆卡驱动程序工作得很好我已经证实了。如果我在SD卡上有一个busybox文件系统,那么一切都正常。当我使用任何其他文件系统时,我得到以下信息.
6EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
6VFS: Mounted root (ext4 filesystem) on device 179:1.
6Freeing unused kernel memory: 84K (c0f00000 - c0f15000)
3request_module: runaway loop modprobe binfmt-464c
4kworker/u2:4 (145) used greatest stack depth: 6132 bytes left
3Failed to execute /sbin/init. Attempting defaults...
3request_module: runaway loop modprobe binfmt-464c
3request_module: runaway loop modprobe binfmt-464c
0Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.如果选中,也会有/sbin/init具有适当的权限!
发布于 2014-04-29 01:34:41
考虑一下这个错误:"request_module:失控的循环调制解调器探测器binfmt-464 c“
很可能您试图在32b内核中使用64b二进制文件(/sbin/init和其他二进制文件)。要么重新编译内核以支持64b,要么在sd卡上安装32b用户空间。
其他需要检查的事情:
https://stackoverflow.com/questions/23257111
复制相似问题