大家好,我碰到的问题如标题:
再linux内核启动时 : 出现这个错误
Failed to execute /linuxrc. Attempting defaults...Kernel panic - not syncing: No init found. 。。。。
上下文:
。。。。。。。。。。。。。。。。。
yaffs: dev is 32505859 name is "mtdblock3" rw
yaffs: passed flags ""
VFS: Mounted root (yaffs filesystem) on device 31:3.
Freeing init memory: 136K
Failed to execute /linuxrc. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
See Linux Documentation/init.txt for guidance.
[<c002f954>] (unwind_backtrace+0x0/0xec) from [<c0301978>] (panic+0x40/0xcc)
[<c0301978>] (panic+0x40/0xcc) from [<c002a51c>] (init_post+0x9c/0xbc)
[<c002a51c>] (init_post+0x9c/0xbc) from [<c0008574>] (kernel_init+0xa8/0xd0)
[<c0008574>] (kernel_init+0xa8/0xd0) from [<c002b7a8>] (kernel_thread_exit+0x0/0x8)
。。。。。。。。
SDRAM: 64M
NAND FLASH: 128M
FLASH : 2M
目标板: mini2440
Kernel command line: mem=64M init=/linuxrc noinitrd root=/dev/mtdblock3 console=ttySAC0,115200
U-Boot 使用的直接从
http://blog.chinaunix.net/uid-20543672-id-94379.html tek博客下载的 U-boot , 正常从NAND FLASH启动。
Linux Kernel : 使用的从 kernel.org 下载的 full source , 使用 arm-linux-gcc 4.3.2 【mini2440光盘附带】 , 内核版本 2.6.34.13 , 正常被引导
yaffs2 支持, 是从
http://www.yaffs.net/download-yaffs-using-git 下载的最新版本的 yaffs2 , 用于给 linux 内核添加支持。【利用这个版本编译 mkyaffs2image 也是失败了,所以一直没有做出来文件系统】
文件系统使用的是mini2440光盘自带的文件: root_qtopia-128M.img
但是无论如何都是走到这一步 : Failed to execute /linuxrc. Attempting defaults... 出错。
关于这个问题,我查了一下 kernel 代码, 应该是在 init/main.c 中 init_post 函数中【代码第858行】 , 当执行到内核启动的最后一步 : 启动第一个用户态进程时,没有正常启动起来。
我的问题是 :
1. 这个光盘自带的文件为什么不能用?
2. 由于当前的目标是配置开发板,所以我希望有网友能够发送给我一份已经做好的文件系统 image 我的QQ邮箱
82172802@qq.com.
十分感谢您的回复。