平台 Redhat 9.0 Athlon *2 CPU
网上看教程编译内核支持NTFS
~~~~~~~~~~~~~~~~~~~~~~~~~~~
从/usr/src/linux-2.4/config中根据自己的机器拷贝相应的文件出来,例如kernel-2.4.18-i686.config,然后修改这个文件,留下以下四行:
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y
CONFIG_NTFS_FS=m
或者将这四行写入到一个文件,然后
cp kernel-2.4.18-i686.config /usr/src/linux-2.4/.config
下面来到/usr/src/linux-2.4,运行make modules,很快就结束了
~~~~~~~~~~~~~~~~~~~~
但是make modules后出现以下错误
******************略
n file included from cipe.h:69,
from module.c:15:
/usr/src/linux-2.4.20-8/include/net/sock.h: In function `sk_filter_release':
/usr/src/linux-2.4.20-8/include/net/sock.h:944: warning: implicit declaration of function `kfree_R037a0cba'
/usr/src/linux-2.4.20-8/include/net/sock.h: In function `sock_orphan':
/usr/src/linux-2.4.20-8/include/net/sock.h:1019: `do_softirq_Rf0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.20-8/include/net/sock.h: In function `sock_graft':
/usr/src/linux-2.4.20-8/include/net/sock.h:1028: `do_softirq_Rf0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.20-8/include/net/sock.h: In function `sock_recv_timestamp':
/usr/src/linux-2.4.20-8/include/net/sock.h:1276: warning: implicit declaration of function `put_cmsg_Rf39bf4d9'
module.c: In function `cipe_check_kernel':
module.c:73: warning: implicit declaration of function `printk_R1b7d4074'
/usr/src/linux-2.4.20-8/include/linux/skbuff.h: In function `kunmap_skb_frag':
/usr/src/linux-2.4.20-8/include/linux/skbuff.h:1129: warning: asm operand 1 probably doesn't match constraints
make[3]: *** [module.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/addon/cipe'
make[2]: *** [_modsubdir_cipe] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/addon'
make[1]: *** [_modsubdir_addon] Error 2
make[1]: Leaving directory `/usr/src
谢谢
lxxwyy 于 2011-06-11 22:33:08发表:
xuexi