免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1540 | 回复: 1
打印 上一主题 下一主题

andorid kernel 2.6.27 编译squashfs3.4和aufs2 注意点 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-20 14:53 |只看该作者 |倒序浏览
squashfs3.4:
我用的是squashfs3.4/kernel-patches/linux-2.6.27-rc4-next/squashfs3.4-patch。
打完补丁后make menuconfig选中squashfs,保存.config。make bzImage出错:
CC      fs/squashfs/inode.o
fs/squashfs/inode.c: In function 'squashfs_export_iget':
fs/squashfs/inode.c:647: error: implicit declaration of function 'd_obtain_alias'
fs/squashfs/inode.c:647: warning: assignment makes pointer from integer without a cast
make[2]: *** [fs/squashfs/inode.o] Error 1
make[1]: *** [fs/squashfs] Error 2
make: *** [fs] Error 2
网上查了半天没有结果有价值的参考:
http://www.murga-linux.com/puppy/viewtopic.php?t=34341
http://www.nabble.com/2.6.27-rc3:-squashfs-error-td19063795.html
后者是在linux-2.6.27-rc3上编译squashfs3.3。出现类似错误,原因是因为VFS的一个函数接口变了。“d_alloc_anon has been replaced by
d_obtain_alias”,可是我这边用的就是d_obtain_alias,为啥还有错呢?最后没办法我试着把d_obtain_alias又改成了d_alloc_anon,一切就OK了!!
不知道为啥,可能VFS这个函数在2.6.27上改的比较多,乱了?
aufs2:
我用的是aufs2-base5。
把其中的aufs2-base5-2.6.27.patch、lookup-2.6.27.patch、kbuild-2.6.27.patch、splice-2.6.27.patch都打了上去。
在打kbuild-2.6.27.patch出了个错:
patching file fs/Makefile
Hunk #1 FAILED at 122.
1 out of 1 hunk FAILED -- saving rejects to file fs/Makefile.rej
不知道为啥,这个fs/Makefile写失败,我只能手工写入:
obj-$(CONFIG_AUFS_FS)           += aufs/
然后,还要注意2个问题,参见我前一篇Blog,则可顺利编译出来带aufs和squashfs的kernel。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4329/showart_1904452.html

论坛徽章:
0
2 [报告]
发表于 2013-01-05 11:41 |只看该作者
回复 1# zqqa


    请问aufs2的补丁在哪里下载
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP