- 论坛徽章:
- 0
|
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 |
|