主题 : failed to excute /linuxrc 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 97571
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
综合积分: 12 分
注册时间: 2013-10-27
最后登录: 2014-03-03
楼主  发表于: 2013-10-28 12:41

 failed to excute /linuxrc

运行内核出现以下错误:failed to excute /linuxrc
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2013-10-28 19:05
造成这个问题的原因不止一个,可能是根文件系统没有挂载成功,也可能是linuxrc本身的问题。你最好能说明你做了什么,怎么做的,以及提供启动过程中的内核调试信息
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 97571
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
综合积分: 12 分
注册时间: 2013-10-27
最后登录: 2014-03-03
2楼  发表于: 2013-10-28 21:25
谢谢关注。
我做的事情:对光盘提供的内核linux-2.6.32.2-mini2440-20110413.tar进行移植,因为大部分工作都做好了,就只给内核打上补丁#./patch-ker.sh c /../linux-2.6.32.2,在make menuconfig选中对yaffs2的支持,然后生成内核make zImage,转成uImage下载运行。

以下是打印信息
block 1378 is bad
block 1379 is bad
block 1380 is bad
block 1381 is bad
block 1382 is bad
block 1383 is bad
block 1384 is bad
block 1385 is bad
block 1436 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:3.
Freeing init memory: 160K
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
Backtrace:
[<c0035270>] (dump_backtrace+0x0/0x10c) from [<c033a844>] (dump_stack+0x18/0x1c)
r7:00000000 r6:c04920b0 r5:c0491840 r4:c04581a0
[<c033a82c>] (dump_stack+0x0/0x1c) from [<c033a894>] (panic+0x4c/0x134)
[<c033a848>] (panic+0x0/0x134) from [<c00305a4>] (init_post+0xec/0x178)
r3:00000000 r2:00000000 r1:c04c7000 r0:c03ea8fc
[<c00304b8>] (init_post+0x0/0x178) from [<c00084c4>] (kernel_init+0xf4/0x124)
r5:c0020380 r4:c0020380
[<c00083d0>] (kernel_init+0x0/0x124) from [<c004d1a4>] (do_exit+0x0/0x62c)
r7:00000000 r6:00000000 r5:00000000 r4:00000000
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2013-10-29 14:08

 回 2楼(loduoke) 的帖子

如果你没有自己重新编译过文件系统里的busybox, 这个看起来更像是yaffs格式的根文件系统镜像没有正确挂载。看起来你用的是自己编译的uboot?如果是这样,你需要确保uboot和内核中对NAND Flash和yaffs的配置(OOB, ECC)和根文件系统镜像是一致的。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 97571
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
综合积分: 12 分
注册时间: 2013-10-27
最后登录: 2014-03-03
4楼  发表于: 2013-10-31 22:10
已经解决了,谢谢你耐心的解答!