QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 884|回复: 2

How to compile a ko module

[复制链接]
发表于 2004-5-1 10:42:48 | 显示全部楼层 |阅读模式
I want to only compile the ntfs .ko module, but when I compile the kernel, it only compile the .o modules, that can not be installed by new modprobe.
I has just installed Fedora Core2 Test3 version, but the precompiled kernel can not support the ntfs file system. When I use Core1, i can just download a rpm package to install that module from sourceforge.net. But I can not download that module now for this distribution. I also compile single ntfs module in Core1 by modifying  .config file. But I find that solution can not work in 2.6.5 kernel. I also search the Internet, I follow the idea of them, but that can not work properly, his solution can work in Core2 Test2.
Someone can give me some advice to do it.
发表于 2004-5-1 18:10:06 | 显示全部楼层
你是怎么编译模块的?在编译时将ntfs选为模块,然后make modules;make modules_install就可以了,如果自己单独编译ntfs模块的话,用不起来的,因为modprobe用到的一些依赖文件并没有改
回复

使用道具 举报

 楼主| 发表于 2004-5-1 19:25:29 | 显示全部楼层
我使用make SUBDIRS=fs/ntfs modules 编译的,但是最严重的问题是无法编译成ko模块而是编译成了.o模块,同时我使用的配置模板是FC2自带的。如果能够编译为.ko,我倒也无所谓的。
我的操作系统为Fedora Core2 Test3。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 20:30 , Processed in 0.042571 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表