Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Peripherals / Hardware
Reload this Page Insert Modules Problem~
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Peripherals / Hardware Is your hardware supported? Having trouble getting some hardware working? Post here!

Reply
 
Thread Tools Display Modes
Old 05-07-2008   #1 (permalink)
jlam
Just Joined!
 
Join Date: May 2008
Posts: 9
Insert Modules Problem~

I build the kernel "linux-2.6.20.1" under FC4 by using command as follows:
- make menuconfig
- make
After finished building, it generates "usbhid.ko" in /drivers/usb/input/.
I use "insmod usbhid.ko", but it produces the error message "insmod: error inserting 'usbhid.ko': -1 Invalid module format"

Do someone can tell me why? thanks!
jlam is offline   Reply With Quote
Old 05-07-2008   #2 (permalink)
bobescalin2005
Linux Newbie
 
bobescalin2005's Avatar
 
Join Date: Oct 2005
Location: Romania
Posts: 109
Quote:
insmod: error inserting 'usbhid.ko': -1 Invalid module format
I know the module it has to be something like this, for example:
Code:
usb-uhci.o
I don`t get it...your usb it`s not working or what?
You can use:
Code:
lsmod
to list the loaded modules!
Cheers!
__________________
Registered Linux user #471256
http://counter.li.org
Don`t give up so easy...
calin
bobescalin2005 is offline   Reply With Quote
Old 05-07-2008   #3 (permalink)
jlam
Just Joined!
 
Join Date: May 2008
Posts: 9
I have already used "lsmod" before, I can't see "usbhid" module in FC4.
So I hope to add "usbhid" module to it and use HID to write the programme for my usb device.

Any suggestion how can I add HID module to it?
Thanks!
jlam is offline   Reply With Quote
Old 05-07-2008   #4 (permalink)
coopstah13
Linux Enthusiast
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: MA, USA
Posts: 537
what is the output of
Code:
uname -r
coopstah13 is offline   Reply With Quote
Old 05-08-2008   #5 (permalink)
jlam
Just Joined!
 
Join Date: May 2008
Posts: 9
The output of "uname -r" is
"2.6.11-1.1369_FC4"
jlam is offline   Reply With Quote
Old 05-08-2008   #6 (permalink)
coopstah13
Linux Enthusiast
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: MA, USA
Posts: 537
this is the problem I expected, you have to actually boot up your system and use the kernel that you compiled in order to load modules for it
coopstah13 is offline   Reply With Quote
Old 05-08-2008   #7 (permalink)
jlam
Just Joined!
 
Join Date: May 2008
Posts: 9
Thanks for your help.
jlam is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 08:16 PM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0