• «
  • 1
  • 2
  • »
  • Pages: 2/2     Go
主题 : 内核引导yaffs2文件系统出错 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 9254
精华: 0
发帖: 44
金钱: 450 两
威望: 225 点
贡献值: 0 点
综合积分: 88 分
注册时间: 2009-09-23
最后登录: 2009-12-12
10楼  发表于: 2009-10-30 16:44

 回 9楼(kasim) 的帖子

在烧录方面,uboot对于支持yaffs的烧写代码没有详细看,,但对于nand 的pagesize是通过read  ID获得的,我觉得问题应该是nand_write_opts这个函数
在制作yaffs镜像时,还分(每个页512还是2048字节)?在哪可以找到(每页2048)的mkyaffsimage?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
11楼  发表于: 2009-10-30 16:55

 回 10楼(stone) 的帖子

如果你确定你的NAND Flash的页大小是2048的,可以看看这个http://www.100ask.net/showtopic-2011.aspx
"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: 9254
精华: 0
发帖: 44
金钱: 450 两
威望: 225 点
贡献值: 0 点
综合积分: 88 分
注册时间: 2009-09-23
最后登录: 2009-12-12
12楼  发表于: 2009-10-30 17:13

 回 11楼(kasim) 的帖子

谢谢版主。。。
级别: 新手上路
UID: 9254
精华: 0
发帖: 44
金钱: 450 两
威望: 225 点
贡献值: 0 点
综合积分: 88 分
注册时间: 2009-09-23
最后登录: 2009-12-12
13楼  发表于: 2009-10-31 15:00
版主;我今天试了那个网页上提供的yaffs2,当我打完补丁,编译内核的时候,出现了下面的问题:
fs/yaffs2/yaffs_fs.c:287: error: unknown field `read_inode' specified in initializer
fs/yaffs2/yaffs_fs.c:287: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c: In function `yaffs_get_inode':
fs/yaffs2/yaffs_fs.c:847: error: implicit declaration of function `iget'
fs/yaffs2/yaffs_fs.c:847: warning: assignment makes pointer from integer without a cast
我的内核版本是2.6.25.10,我昨天,用我从网上下载的yaffs2,打完补丁,编译内核,就没有问题。。不知道是怎么回事?但是用它的yaffs2可以编译出mkyaffsimage这个工具,我可不可以用我原先的yaffs源码包,用它的mkyaffsimge?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
14楼  发表于: 2009-10-31 15:26

 回 13楼(stone) 的帖子

抱歉,我没有用过yaffs补丁,也不清楚补丁的版本和内核源代码的版本如何匹配(这也是我不用yaffs的根本原因,没有内核的内建支持)
"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: 9254
精华: 0
发帖: 44
金钱: 450 两
威望: 225 点
贡献值: 0 点
综合积分: 88 分
注册时间: 2009-09-23
最后登录: 2009-12-12
15楼  发表于: 2009-10-31 16:27

 回 14楼(kasim) 的帖子

版主:我刚刚用我的yaffs源码包,用他的编译出来的mkyaffsimage,做了个文件系统,,我把cramfs当根文件系统启动。然后挂载yaffs,居然成功了,,我想先前应该是制作工具的问题了。。但当我吧yaffs作为根文件系统启动的时候,出现了下面的情况:yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 140K
Please press Enter to activate this console.
然后重复出现
can't open /dev/tty2: No such device or addres
can't open /dev/tty3: No such device or addres
can't open /dev/tty4: No such device or addres
刚才我在dev下手动建立了
mknod dev/tty2 c 5 2
mknod dev/tty3 c 5 3
mknod dev/tty4 c 5 4
然后启动,有重复出现
can't open /dev/tty3: No such device or addres
can't open /dev/tty4: No such device or addres
不知道是怎么回事??斑竹帮忙看一下是哪的问题呢?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
16楼  发表于: 2009-10-31 16:47

 回 15楼(stone) 的帖子

看起来像是/etc/inittab里设置的造成的,你文件系统里有这个文件的话,贴出来看看吧.
另外,注意/dev/ttyN设备的主设备号是“4”, 不是“5”。只有/dev/tty的设备号是5:0
还有,这个问题已经和yaffs没有关系了,不要再在这个帖子里讨论了。
"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."
  • «
  • 1
  • 2
  • »
  • Pages: 2/2     Go