天嵌 ARM开发社区

 找回密码
 注册
查看: 2733|回复: 14

yaffs文件系统移植

[复制链接]
dk56 发表于 2010-8-29 13:29:01 | 显示全部楼层 |阅读模式
大家好,我在做到step12时遇到下面问题,请大家帮忙解决一下,谢谢!
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2008-11-11 03:06:53 UTC (1226372813)
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            3072 mtdblock1 (driver?)
1f02          257024 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
[<c0029ab8>] (unwind_backtrace+0x0/0xe8) from [<c02a0f90>] (panic+0x44/0x124)
[<c02a0f90>] (panic+0x44/0x124) from [<c0008fe0>] (mount_block_root+0x16c/0x224)
[<c0008fe0>] (mount_block_root+0x16c/0x224) from [<c0009284>] (prepare_namespace+0x100/0x1bc)
[<c0009284>] (prepare_namespace+0x100/0x1bc) from [<c00085ac>] (kernel_init+0xc0/0xec)
[<c00085ac>] (kernel_init+0xc0/0xec) from [<c0047cd8>] (do_exit+0x0/0x5fc)
[<c0047cd8>] (do_exit+0x0/0x5fc) from [<00000005>] (0x5)
天嵌_support1 发表于 2010-8-29 21:30:35 | 显示全部楼层
你的启动输出信息中怎么没有看到关于yaffs2的信息?
配置内核的时候把支持yaffs2文件系统项选上,移植yaffs2系统。
 楼主| dk56 发表于 2010-8-29 23:31:28 | 显示全部楼层
2# embedsky_lxt


不好意思,烧错文件了是这个结果:
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2008-11-11 13:12:59 UTC (1226409179)
s3c2440-sdi s3c2440-sdi: powered down.
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
block 715 is bad
block 860 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 108K
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
[<c0029ab8>] (unwind_backtrace+0x0/0xe8) from [<c02a20f8>] (panic+0x44/0x124)
[<c02a20f8>] (panic+0x44/0x124) from [<c00234f4>] (init_post+0xe4/0x170)
[<c00234f4>] (init_post+0xe4/0x170) from [<c00085b0>] (kernel_init+0xc4/0xec)
[<c00085b0>] (kernel_init+0xc4/0xec) from [<c0047cd8>] (do_exit+0x0/0x5fc)
[<c0047cd8>] (do_exit+0x0/0x5fc) from [<00000005>] (0x5)
anqi8955 发表于 2010-8-30 08:10:11 | 显示全部楼层
什么意思?不懂、、、
 楼主| dk56 发表于 2010-8-30 10:56:05 | 显示全部楼层
4# anqi8955


就是我在yaffs文件系统移植时,出现了问题,帖中现象是我不知道错误原因,尝试编译64MB Nand Flash时的现象,发帖太急,把64MB的结果弄上去了,128MB以上的是这样的现象:
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2008-11-11 13:12:59 UTC (1226409179)
s3c2440-sdi s3c2440-sdi: powered down.
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
block 715 is bad
block 860 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 108K
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
[<c0029ab8>] (unwind_backtrace+0x0/0xe8) from [<c02a20f8>] (panic+0x44/0x124)
[<c02a20f8>] (panic+0x44/0x124) from [<c00234f4>] (init_post+0xe4/0x170)
[<c00234f4>] (init_post+0xe4/0x170) from [<c00085b0>] (kernel_init+0xc4/0xec)
[<c00085b0>] (kernel_init+0xc4/0xec) from [<c0047cd8>] (do_exit+0x0/0x5fc)
[<c0047cd8>] (do_exit+0x0/0x5fc) from [<00000005>] (0x5)
当时发帖时太急了,弄错了,请帮忙看一下!
天嵌_support1 发表于 2010-8-30 11:21:46 | 显示全部楼层
你编译busybox 和内核都用什么版本的编译器?
 楼主| dk56 发表于 2010-8-30 12:04:11 | 显示全部楼层
6# embedsky_lxt


4.3.3 的编译器
wuchguang 发表于 2010-8-31 20:16:24 | 显示全部楼层
5# dk56


从你打印出来的信息看,应该是你所烧的文件系统是64M的。与我的一模一样呀。你看一下!试一下。
如下是我开发板是256M但烧写64M的文件系统所报的错。


如果还不行的话,请把你做文件系统的步骤帖出来。如果你烧写的内核也是你但的话,你也帖出来。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| dk56 发表于 2010-8-31 20:46:04 | 显示全部楼层
8# wuchguang


对啊,是烧的64M的,当时发帖时没注意,你看一下三楼的,是我的256M的信息,麻烦你再帮我看一下,谢谢!
 楼主| dk56 发表于 2010-9-1 12:35:05 | 显示全部楼层
谢谢各位的帮助,我终于找到原因了,我习惯了从nor flash 启动的,只能烧写64M以下的,所以总是出现错误,不过还是没有完全解决问题,请大家帮忙看一下:
Please press Enter to activate this console.
[root@EmbedSky /]# ls
bin         home        lost+found  proc        sddisk      udisk
dev         lib         mnt         root        sys         usr
etc         linuxrc     opt         sbin        tmp         var
[root@EmbedSky /]#
谢谢!
天嵌_support1 发表于 2010-9-1 14:20:09 | 显示全部楼层
10# dk56

这是什么阿?乱码?
 楼主| dk56 发表于 2010-9-1 16:41:08 | 显示全部楼层
11# embedsky_lxt

我都无语了,这是在dnw软件中显示的,以前做文件系统移植时,超级终端总是显示乱码,而dnw和SecureCRT显示正常,我就一直用dnw软件,结果这次dnw软件也显示乱码了,我就再试一下超级终端,结果这次超级终端显示正常了,我现在是被折磨的一点脾气都没了,谢谢超级版主的回帖,以后有问题还需要您的帮助!
天嵌_support1 发表于 2010-9-1 17:01:10 | 显示全部楼层
恩,有时候需要重启一下运用软件。
我不喜欢Windows 系统
hzxs533522 发表于 2010-9-7 11:31:21 | 显示全部楼层
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

我的就这样子,下面没有其他内容了
 楼主| dk56 发表于 2010-9-8 12:35:02 | 显示全部楼层
14# hzxs533522


你是不是从nor flash 烧写的?要是的话就试着从nand flash 重新烧写!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-18 04:38 , Processed in 1.040079 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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