天嵌 ARM开发社区

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

内核烧录出错,烧录出厂镜像同样出错~~~求解答!

[复制链接]
席岳 发表于 2010-4-19 13:44:13 | 显示全部楼层 |阅读模式
情况是这样的,我在Ubuntu8.10下编译内核和制作文件系统成功,生成要求的两个文件:zImage.bin和root....bin;然后在windows下烧录。
在这之前,我烧录过裸机程序TQ2440_test。
今天烧内核的时候没有首先烧录Uboot,不知道有没有影响。
然后烧录光盘中“出厂镜像”,顺序是Uboot->内核->文件系统,同样出错;
再然后我烧录了出厂的wince6.0镜像,没有问题,
再次烧录Uboot,我自己编译的内核和文件系统,依然出现问题;
又再次烧录了“出厂镜像”,还是出现问题。

错误提示如下:

第一次烧录我自己编译内核和“出厂镜像”都出现错误提示如下:
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        256 mtdblock0 (driver?)
1f01       4096 mtdblock1 (driver?)
1f02     257536 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

烧录wince后,首先烧录自己编译内核,出现错误提示如下:


yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
yaffs tragedy:attempt to put data chunk into a non-file
==>> yaffs bug: fs/yaffs2/yaffs_guts.c 3480
page 5234 in gc has no object: -65536 51052544 53149696
page 5235 in gc has no object: -65536 51052544 53149696
page 5236 in gc has no object: -65536 51052544 53149696
page 5237 in gc has no object: -65536 51052544 53149696
page 5238 in gc has no object: -65536 51052544 53149696
page 5239 in gc has no object: -65536 51052544 53149696
page 5240 in gc has no object: -65536 51052544 53149696
page 5241 in gc has no object: -65536 51052544 53149696
Block 81 is in state 8 after gc, should be erased
page 5242 in gc has no object: -65536 51052544 53149696
page 5243 in gc has no object: -65536 51052544 53149696
page 5244 in gc has no object: -65536 51052544 53149696
page 5245 in gc has no object: -65536 51052544 53149696
page 5246 in gc has no object: -65536 51052544 53149696
page 5247 in gc has no object: -65536 51052544 53149696
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
List of all partitions:
0100       4096 ram0 (driver?)
0101       4096 ram1 (driver?)
0102       4096 ram2 (driver?)
0103       4096 ram3 (driver?)
0104       4096 ram4 (driver?)
0105       4096 ram5 (driver?)
0106       4096 ram6 (driver?)
0107       4096 ram7 (driver?)
0108       4096 ram8 (driver?)
0109       4096 ram9 (driver?)
010a       4096 ram10 (driver?)
010b       4096 ram11 (driver?)
010c       4096 ram12 (driver?)
010d       4096 ram13 (driver?)
010e       4096 ram14 (driver?)
010f       4096 ram15 (driver?)
1f00        256 mtdblock0 (driver?)
1f01       4096 mtdblock1 (driver?)
1f02     257536 mtdblock2 (driver?)
No filesystem could mount root, tried:  cramfs msdos vfat romfs yaffs yaffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)


最后烧录“出厂镜像”出现如下错误:
s3c2410-rtc s3c2410-rtc: setting system clock to 2008-11-07 12:28:17 UTC (1226060897)
end_request: I/O error, dev mtdblock2, sector 0
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             256 mtdblock0 (driver?)
1f01            2048 mtdblock1 (driver?)
1f02          257536 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
Backtrace:

[<c0039fd4>] (dump_backtrace+0x0/0x10c) from [<c02b17f8>] (dump_stack+0x18/0x1c)
r7:c380a0cb r6:c03bdf40 r5:c380a000 r4:c381df40
[<c02b17e0>] (dump_stack+0x0/0x1c) from [<c02b1848>] (panic+0x4c/0x124)
[<c02b17fc>] (panic+0x0/0x124) from [<c0008e30>] (mount_block_root+0x178/0x234)
r3:00000000 r2:c3831dac r1:c381df40 r0:c033f578
[<c0008cb8>] (mount_block_root+0x0/0x234) from [<c0008f9c>] (mount_root+0xb0/0xf4)
[<c0008eec>] (mount_root+0x0/0xf4) from [<c00090d8>] (prepare_namespace+0xf8/0x18c)
r7:c03bd924 r6:c001e83c r5:c001e83c r4:c001e84c
[<c0008fe0>] (prepare_namespace+0x0/0x18c) from [<c0008478>] (kernel_init+0xc8/0xf4)
r7:00000000 r6:c001d9d4 r5:c001d670 r4:c001d9d4
[<c00083b0>] (kernel_init+0x0/0xf4) from [<c004af30>] (do_exit+0x0/0x620)
r7:00000000 r6:00000000 r5:00000000 r4:00000000
亚瑟王 发表于 2010-4-20 10:45:28 | 显示全部楼层
1、烧写天嵌科技提供的内核镜像和文件系统镜像后,能够正常启动吗?
2、烧写时使用了哪些命令?
回复

使用道具 举报

 楼主| 席岳 发表于 2010-4-21 09:08:41 | 显示全部楼层
2# 亚瑟王


现在烧写天嵌提供的镜像能够正常启动了,但是自己的还不行~~~


是不是只要按照手册上一步一步做,就可以编译成功啊?

我现在再试一次~~~
回复

使用道具 举报

亚瑟王 发表于 2010-4-23 15:06:29 | 显示全部楼层
是的,你在配置内核时参考一下TQ2440的Linux移植教程的附录5的配置单。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2025-6-18 20:50 , Processed in 2.030551 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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