主题 : 在移植2。6。20内核时,加入yaffs,编译出现以下错误,紧急求助!! 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 44
精华: 0
发帖: 39
金钱: 390 两
威望: 48 点
综合积分: 78 分
注册时间: 2008-01-28
最后登录: 2009-04-30
楼主  发表于: 2008-02-01 21:44

 在移植2。6。20内核时,加入yaffs,编译出现以下错误,紧急求助!!


fs/yaffs/yaffs_fs.c:168: warning: initialization from incompatible pointer type
fs/yaffs/yaffs_fs.c:183: warning: initialization from incompatible pointer type
fs/yaffs/yaffs_fs.c:200: warning: initialization from incompatible pointer type
fs/yaffs/yaffs_fs.c:225: warning: initialization from incompatible pointer type
fs/yaffs/yaffs_fs.c: In function `yaffs_readlink':
fs/yaffs/yaffs_fs.c:255: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:260: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_follow_link':
fs/yaffs/yaffs_fs.c:276: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:281: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_lookup':
fs/yaffs/yaffs_fs.c:310: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:316: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:318: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_clear_inode':
fs/yaffs/yaffs_fs.c:376: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:388: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_delete_inode':
fs/yaffs/yaffs_fs.c:407: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_file_flush':
fs/yaffs/yaffs_fs.c:426: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_readpage_nolock':
fs/yaffs/yaffs_fs.c:457: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:463: warning: implicit declaration of function `PAGE_BUG'
fs/yaffs/yaffs_fs.c: In function `yaffs_writepage':
fs/yaffs/yaffs_fs.c:544: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_FillInodeFromObject':
fs/yaffs/yaffs_fs.c:615: error: structure has no member named `i_blksize'
fs/yaffs/yaffs_fs.c:664: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_file_read':
fs/yaffs/yaffs_fs.c:698: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_file_write':
fs/yaffs/yaffs_fs.c:742: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_readdir':
fs/yaffs/yaffs_fs.c:802: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_mknod':
fs/yaffs/yaffs_fs.c:884: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_unlink':
fs/yaffs/yaffs_fs.c:985: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:990: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_link':
fs/yaffs/yaffs_fs.c:1020: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:1027: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_symlink':
fs/yaffs/yaffs_fs.c:1062: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:1064: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_sync_object':
fs/yaffs/yaffs_fs.c:1094: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_rename':
fs/yaffs/yaffs_fs.c:1117: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:1122: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:1134: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:1137: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:1138: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_setattr':
fs/yaffs/yaffs_fs.c:1167: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:1172: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c:1174: error: structure has no member named `u'
fs/yaffs/yaffs_fs.c: In function `yaffs_internal_read_super':
fs/yaffs/yaffs_fs.c:1277: warning: unused variable `nBlocks'
fs/yaffs/yaffs_fs.c: At top level:
fs/yaffs/yaffs_fs.c:146: warning: 'yaffs_read_super' declared `static' but never defined
fs/yaffs/yaffs_fs.c:1492: warning: 'yaffs_internal_read_super_ram' defined but not used
fs/yaffs/yaffs_fs.c:1496: warning: 'yaffs_internal_read_super_mtd' defined but not used
fs/yaffs/yaffs_fs.c:1562: warning: 'my_proc_ram_write_entry' defined but not used
fs/yaffs/yaffs_fs.c:1636: warning: 'yaffs_proc_ram_write' defined but not used
make[2]: *** [fs/yaffs/yaffs_fs.o] Error 1
make[1]: *** [fs/yaffs] Error 2
make: *** [fs] Error 2
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-02-02 09:36
引用楼主xydjh于2008-02-01 21:44发表的 在移植2。6。20内核时,加入yaffs,编译出现以下错误,紧急求助!! :

fs/yaffs/yaffs_fs.c:168: warning: initialization from incompatible pointer type
fs/yaffs/yaffs_fs.c:183: warning: initialization from incompatible pointer type
fs/yaffs/yaffs_fs.c:200: warning: initialization from incompatible pointer type
fs/yaffs/yaffs_fs.c:225: warning: initialization from incompatible pointer type
.......


gcc不是已经告诉你问题了吗?
"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: 44
精华: 0
发帖: 39
金钱: 390 两
威望: 48 点
综合积分: 78 分
注册时间: 2008-01-28
最后登录: 2009-04-30
2楼  发表于: 2008-02-02 12:46
这个问题已经解决
我拷贝yaffs源码中yaffs2目录下的文件,打上补丁,就好了
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2008-02-02 13:07
引用第2楼xydjh于2008-02-02 12:46发表的  :
这个问题已经解决
我拷贝yaffs源码中yaffs2目录下的文件,打上补丁,就好了


kernel无法启动的问题找出原因了吗?
"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: 44
精华: 0
发帖: 39
金钱: 390 两
威望: 48 点
综合积分: 78 分
注册时间: 2008-01-28
最后登录: 2009-04-30
4楼  发表于: 2008-02-02 20:59
内核无法启动是因为vivi中的mach_type 和内核中的不匹配
在ivi中修改了 就好了
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2008-02-03 09:28
引用第4楼xydjh于2008-02-02 20:59发表的  :
内核无法启动是因为vivi中的mach_type 和内核中的不匹配
在ivi中修改了 就好了

可以把这些经验给大家分享吗?
"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: 44
精华: 0
发帖: 39
金钱: 390 两
威望: 48 点
综合积分: 78 分
注册时间: 2008-01-28
最后登录: 2009-04-30
6楼  发表于: 2008-02-03 09:56
呵呵 好啊
等我整理了就贴出来 大家分享