• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 加载触摸屏模块时(insmod s3c2410_ts.ko)出现问题 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 3939
精华: 0
发帖: 63
金钱: 550 两
威望: 463 点
综合积分: 126 分
注册时间: 2009-02-17
最后登录: 2012-08-31
楼主  发表于: 2009-05-05 21:34

 加载触摸屏模块时(insmod s3c2410_ts.ko)出现问题

管理提醒: 本帖被 kasim 执行取消置顶操作(2012-02-26)
加载模块时出现以下问题,请帮忙分析一下,谢谢了
[root@FriendlyARM /]# ls
bin            home           opt            sbin           usr
buttons        lib            proc           sys            var
dev            linuxrc        root           test           www
etc            lost+found     s3c2410_ts.ko  tmp
[root@FriendlyARM /]# insmod s3c2410_ts.ko
s3c2410_ts: version magic '2.6.29 mod_unload modversions ARMv4 ' should be '2.6.
29-FriendlyARM mod_unload ARMv4 '
insmod: cannot insert 's3c2410_ts.ko': invalid module format
[root@FriendlyARM /]#
[ 此帖被zzh2008在2009-11-27 13:53重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-05-05 21:54
编译模块之前你需要正确配置内核,根据你开发板的类型加载对应的配置文件,比如config_mini2440_n35。
命令如下:
$cd /path/to/your/kernel/source
$cp config_mini2440_n35 .config
$make ARCH=arm oldconfig

另外,2.6.29的内核在处理模块时有一个bug,需要先给内核打上这个补丁, http://aiothome.com/bbs/read.php?tid-1708.html
"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: 3939
精华: 0
发帖: 63
金钱: 550 两
威望: 463 点
综合积分: 126 分
注册时间: 2009-02-17
最后登录: 2012-08-31
2楼  发表于: 2009-05-05 22:21
我试试,谢谢
级别: 侠客
UID: 3939
精华: 0
发帖: 63
金钱: 550 两
威望: 463 点
综合积分: 126 分
注册时间: 2009-02-17
最后登录: 2012-08-31
3楼  发表于: 2009-05-06 10:07
补丁下载了,不对呀,怎么不是bz2文件呢
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2009-05-06 10:37
那个是帖子的链接,补丁在附件里,浏览器直接点击,不要用任何下载软件
"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: 3939
精华: 0
发帖: 63
金钱: 550 两
威望: 463 点
综合积分: 126 分
注册时间: 2009-02-17
最后登录: 2012-08-31
5楼  发表于: 2009-05-06 10:42
我按你说的重新编译模块,加载时又出现问题了
[root@FriendlyARM /]# insmod s3c2410_ts.ko
s3c2410_ts: module license 'unspecified' taints kernel.
s3c2410_ts.c: Could not allocate ts IRQ_TC !
insmod: cannot insert 's3c2410_ts.ko': Input/output error
root@FriendlyARM /]#
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
6楼  发表于: 2009-05-06 11:37
你现在用的内核镜像里是不是已经build-in了触摸屏驱动,导致无法请求到触摸屏的IRQ?
"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: 3939
精华: 0
发帖: 63
金钱: 550 两
威望: 463 点
综合积分: 126 分
注册时间: 2009-02-17
最后登录: 2012-08-31
7楼  发表于: 2009-05-06 13:11
我用的是mini2440—20090405的内核源文件和root_qtopia.img
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 2009-05-06 13:21
引用第7楼zzh2008于2009-05-06 13:11发表的  :
我用的是mini2440—20090405的内核源文件和root_qtopia.img

问题不在于你用哪一个内核源文件,而在于你的开发板上实际运行的内核镜像里是不是已经包含了触摸屏驱动
"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: 3939
精华: 0
发帖: 63
金钱: 550 两
威望: 463 点
综合积分: 126 分
注册时间: 2009-02-17
最后登录: 2012-08-31
9楼  发表于: 2009-05-06 13:36
用的是config_N35配置文件,应该是已经包含了吧,是不是要在make menuconfig时去掉触摸屏驱动呀,新新手,对这方面都不了解,
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go