LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 02-21-2013, 12:04 AM   #1
chenzf070720
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
insmod a module error: not permitting


Hi:
I'm practicing a GPIOs driver modeule,which hardware base on TI's OMAP-L138.Refer to its datasheet,the GPIO's id is range from 42 to 50.And while I call function request_irq(GPIO_IRD_ID,...),where GPIO_IRD_ID is one of 42 to 50,and it goes an error!
The error information is not permitting! And I check the system irq status:
root@bfdx:/# cat proc/interrupts
CPU0
11: 2 cp_intc edma
12: 0 cp_intc edma_error
15: 21974 cp_intc OMAPL-I2C-IRQ
16: 0 cp_intc mmc0
19: 0 cp_intc rtc0
21: 93578 cp_intc clockevent
22: 47 cp_intc free-run counter
25: 0 cp_intc serial
33: 0 cp_intc eth0
34: 111567 cp_intc eth0
35: 9839 cp_intc eth0
36: 0 cp_intc eth0
52: 441181 cp_intc da8xx_lcdc
53: 34 cp_intc serial
56: 190 cp_intc spi_davinci.1
58: 1 cp_intc musb-hdrc
59: 2 cp_intc ohci_hcd:usb2
61: 4457 cp_intc serial
67: 0 cp_intc ahci
72: 20 cp_intc mmc1
93: 0 cp_intc edma
94: 0 cp_intc edma_error
99: 0 cp_intc McBSP_rx
100: 0 cp_intc McBSP
210: 0 GPIO OHCI over-current indicator
Err: 0
However,when i change the irq's id to 54,then it goes well.
How to deal this probome!thanks!

Last edited by chenzf070720; 02-21-2013 at 12:05 AM.
 
Old 02-22-2013, 12:21 AM   #2
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
What exactly is the error message ?
if 54 is working why not use that itself ?
 
Old 03-04-2013, 11:06 PM   #3
chenzf070720
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
error information is not permitting,and return value is -22.thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
insmod: error inserting './hello.ko': -1 Invalid module format dipanmodi Linux - Embedded & Single-board computer 3 05-14-2011 02:44 PM
error: -1 Invalid module format when using insmod with module cross-compiled for arm AndrewShanks Linux - Embedded & Single-board computer 4 10-15-2007 03:50 AM
insmod: error inserting 'module.o': -1 Invalid module format ksrinivas Linux - Newbie 5 10-11-2006 07:29 AM
insmod: error inserting 'new.ko': -1 Invalid module format hemk76 Programming 2 01-26-2005 10:52 AM
insmod: error inserting 'new.ko': -1 Invalid module format hemk76 Programming 2 01-24-2005 10:42 AM


All times are GMT -5. The time now is 11:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration