免费注册 查看新帖 |

Chinaunix

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

请教 squashfs-lzma 补丁方面的问题,谢谢了!!!有完整过程 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-04-13 10:05 |只看该作者 |倒序浏览
这段时间要用到squashfs-lzma,但一直没有打好这两个补丁。遇到的问题如下,各位老大们帮帮小弟看看,谢谢了!!!

RHEL5.3  原来的内核是 2.6.18-128.el5-i686

linux-2.6.26.tar.bz2
squashfs3.4.tar.gz
sqlzma3.4-457.tar.bz2
lzma457.tar.bz2

这个步骤:
[root@localhost src]# patch -p0 < ./linux-2.6.26/squashfs3.4-patch
patching file linux-2.6.26/fs/Kconfig
patching file linux-2.6.26/fs/Makefile
patching file linux-2.6.26/fs/squashfs/inode.c
patching file linux-2.6.26/fs/squashfs/Makefile
patching file linux-2.6.26/fs/squashfs/squashfs2_0.c
patching file linux-2.6.26/fs/squashfs/squashfs.h
patching file linux-2.6.26/include/linux/squashfs_fs.h
patching file linux-2.6.26/include/linux/squashfs_fs_i.h
patching file linux-2.6.26/include/linux/squashfs_fs_sb.h
patching file linux-2.6.26/init/do_mounts_rd.c
[root@localhost src]#

[root@localhost linux-2.6.26]# patch -p1 < ../sqlzma2k-3.4.patch
patching file include/linux/squashfs_fs.h
patching file include/linux/squashfs_fs_sb.h
patching file fs/squashfs/inode.c
patching file fs/squashfs/Makefile
[root@localhost linux-2.6.26]#

[root@localhost src]# patch -p0 < sqlzma2u-3.4.patch
patching file squashfs3.4/squashfs-tools/Makefile
patching file squashfs3.4/squashfs-tools/mksquashfs.c
patching file squashfs3.4/squashfs-tools/read_fs.c
patching file squashfs3.4/squashfs-tools/unsquashfs.c
[root@localhost src]#

将原来内核2.6.18-128.el5-i686的.config拷贝到了linux-2.6.26中

make menuconfig
在文件系统中选squashfs *
make bzImage
make modules
make modules_install
make install

但最后出错:
fs/squashfs/inode.c:38:20: 错误:sqlzma.h:没有那个文件或目录
fs/squashfs/inode.c:39:21: 错误:sqmagic.h:没有那个文件或目录
fs/squashfs/inode.c:51: 错误:字段 ‘un’ 的类型不完全
fs/squashfs/inode.c: In function ‘squashfs_read_data’:
fs/squashfs/inode.c:264: 错误:数组元素的类型不完全
fs/squashfs/inode.c:323: 错误:隐式声明函数 ‘sqlzma_un’
fs/squashfs/inode.c:264: 警告:未使用的变量 ‘sbuf’
fs/squashfs/inode.c: In function ‘squashfs_fill_super’:
fs/squashfs/inode.c:1175: 错误:‘SQUASHFS_MAGIC_LZMA_SWAP’ 未声明 (在此函数内第一次使用)
fs/squashfs/inode.c:1175: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
fs/squashfs/inode.c:1175: 错误:所在的函数内只报告一次。)
fs/squashfs/inode.c:1184: 错误:‘SQUASHFS_MAGIC_LZMA’ 未声明 (在此函数内第一次使用)
fs/squashfs/inode.c: In function ‘free_sqlzma’:
fs/squashfs/inode.c:2179: 错误:隐式声明函数 ‘sqlzma_fin’
fs/squashfs/inode.c: In function ‘init_squashfs_fs’:
fs/squashfs/inode.c:2201: 错误:隐式声明函数 ‘sqlzma_init’
make[2]: *** [fs/squashfs/inode.o] 错误 1
make[1]: *** [fs/squashfs] 错误 2
make: *** [fs] 错误 2

最后这个lzma还是不能打到内核中去,若单独打sqashfs3.4到内核的话,是可以成功的。可以mksquashfs和unsquashfs.但就是打lzma是一直错误!!!

哪位老大打过这个补丁请帮帮我。网上我参考过下面一篇文章。但我没成功。人家最后用的是make。我不知道这个意思是什么。

http://sns.linuxpk.com/space-45354-do-blog-id-15511.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP