couldn ‘t find the kernel version the module was compiled for解决办法

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……

couldn ‘t   find   the   kernel   version   the   module   was   compiled   for解决办法

相关文章:

你感兴趣的文章:

标签云: