读书人

驱动加载时出现“couldn#039;t find the k

发布时间: 2012-02-19 19:43:38 作者: rapoo

驱动加载时出现“couldn't find the kernel version the module was compiled for”
如题,刚刚接触驱动,看了《linux设备驱动》编译了hellodriver的驱动,编译通过了,但是用insmod加载时却出现:“couldn 't find the kernel version the module was compiled for”这样的错误。

[解决办法]
在后面加上$(INCLUDEDIR)/linux/version.h)
[解决办法]
只是一个warning,不碍事的

读书人网 >UNIXLINUX

热点推荐