首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

couldn 't find the kernel version the module was compiled for解

2012-03-31 
couldn tfindthekernelversionthemodulewascompiledfor加载驱动insmod时出现couldn tfindthekernelversi

couldn 't find the kernel version the module was compiled for
加载驱动insmod时出现couldn 't find the kernel version the module was compiled for
编译可以通过 gcc -D__KERNEL__ -D__DEMODULE -DLINUX -I/usr/src/linux-2.4.20-8/include/ -c -o demo.o demo.c
这是怎么回事?如何解决?
kernel与module的版本都是2.4.20-8
求各位高人帮帮忙,谢谢了!


[解决办法]
编译时的kernel和实际运行的版本不一致。编译驱动时必须将kernel的存放目录指给编译器啊!
[解决办法]
仅版本号一样是不行的
[解决办法]

探讨
加载驱动insmod时出现couldn 't find the kernel version the module was compiled for
编译可以通过 gcc -D__KERNEL__ -D__DEMODULE -DLINUX -I/usr/src/linux-2.4.20-8/include/ -c -o demo.o demo.c
这是怎么回事?如何解决?
kernel与mo……

热点排行