天嵌 ARM开发社区

 找回密码
 注册
查看: 1822|回复: 3

编译新内核出错!!!

[复制链接]
doreing 发表于 2010-6-2 23:10:01 | 显示全部楼层 |阅读模式
FAT: unable to read boot sector
VFS: Cannot open root device "mtdblock2" or unknown-block(31,2)
Please append a correct "root=" boot option; here are the available partitions:
1f00              16 mtdblock0 (driver?)
1f01            2048 mtdblock1 (driver?)
1f02            4096 mtdblock2 (driver?)
1f03            2048 mtdblock3 (driver?)
1f04            4096 mtdblock4 (driver?)
1f05           10240 mtdblock5 (driver?)
1f06           24576 mtdblock6 (driver?)
1f07           16384 mtdblock7 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
Backtrace:
[<c00309cc>] (dump_backtrace+0x0/0x104) from [<c0030ae8>] (dump_stack+0x18/0x1c)

r7:c388a000 r6:c388a02a r5:00000000 r4:c381bf5c
[<c0030ad0>] (dump_stack+0x0/0x1c) from [<c004db24>] (panic+0x3c/0x124)
[<c004dae8>] (panic+0x0/0x124) from [<c0009044>] (mount_block_root+0x1d8/0x21c)
r3:00000000 r2:20000013 r1:c381bf5c r0:c037980c
[<c0008e6c>] (mount_block_root+0x0/0x21c) from [<c0009254>] (mount_root+0xd0/0xf
0)
[<c0009184>] (mount_root+0x0/0xf0) from [<c00093e4>] (prepare_namespace+0x170/0x
1d0)
r6:00000000 r5:c0026a0c r4:c03faf54
[<c0009274>] (prepare_namespace+0x0/0x1d0) from [<c0008c1c>] (kernel_init+0xd8/0
x10c)
r5:c0025f98 r4:c03fad38
[<c0008b44>] (kernel_init+0x0/0x10c) from [<c0050330>] (do_exit+0x0/0x5a4)
r5:00000000 r4:00000000
到这里就不动了啊
亚瑟王 发表于 2010-6-3 19:02:58 | 显示全部楼层
检查内核中是否添加了对yaffs文件系统的支持。
 楼主| doreing 发表于 2010-6-3 19:35:09 | 显示全部楼层
2# 亚瑟王


谢谢亚瑟王的回复!!!我添加了支持,我现在移植的是2.6.33,是sky2440 64M的板子,现在出现下面的问题:
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
attempt to access beyond end of device
mtdblock2: rw=0, want=8193, limit=8192
attempt to access beyond end of device
mtdblock2: rw=0, want=8196, limit=8192
UDF-fs: No partition found (1)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 116K
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:
[<c00299d0>] (dump_backtrace+0x0/0x12c) from [<c0029b14>] (dump_stack+0x18/0x1c)

r7:00000000 r6:c001e630 r5:c001e9c8 r4:c03a8c74
[<c0029afc>] (dump_stack+0x0/0x1c) from [<c00371d4>] (panic+0x3c/0x128)
[<c0037198>] (panic+0x0/0x128) from [<c00255b0>] (init_post+0xac/0x11c)
r3:c3823ee8 r2:00000000 r1:c044d6c0 r0:c0334930
[<c0025504>] (init_post+0x0/0x11c) from [<c0008a78>] (kernel_init+0xf0/0x120)
r4:c03a8c78
[<c0008988>] (kernel_init+0x0/0x120) from [<c0039aa4>] (do_exit+0x0/0x628)
r6:00000000 r5:00000000 r4:00000000
亚瑟王 发表于 2010-6-4 17:10:47 | 显示全部楼层
检查一下你的配置单,参考TQ2440的30.4的配置单配置,特别是general setup选项。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-20 02:50 , Processed in 1.045939 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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