主题 : 驱动无法插入的问题 - insmod: kernel-module version mismatch,求解 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 2660
精华: 1
发帖: 17
金钱: 130 两
威望: 46 点
贡献值: 10 点
综合积分: 54 分
注册时间: 2008-12-01
最后登录: 2013-06-13
楼主  发表于: 2008-12-10 16:43

 驱动无法插入的问题 - insmod: kernel-module version mismatch,求解

管理提醒: 本帖被 qq2440 执行取消置顶操作(2009-08-07)
按照mini2440手册上所写,将启动改为NFS启动。
简单编译了一个hello.ko
直接引用开发板自带的内核源码包。
编译通过。

在板上执行insmod hello.ko时,报告以下错误:

Using hello.ko
insmod: kernel-module version mismatch
        hello.ko was compiled for kernel version
        while this kernel is version 2.6.13.

发现检测不到hello.ko对应的内核版本,不知道是什么原因。
[ 此帖被kasim在2008-12-13 08:06重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-12-11 06:31
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2010-04-08 11:38

 回 7楼(qianlin256) 的帖子

在编译模块之前,你必须先正确地配置内核源代码。看你的开发板使用手册。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."