LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2009, 03:21 AM   #1
sumahegde
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
Loading Kernel Modules


Hi all
I am working on an arm based board with Android kernel running on it.I have a logitech webcam and so i've compiled the logitech webcam driver as a module and got the corresponding 'quickcam_messenger.ko' object file.I've compiled webcam driver as a module against the same android kernel running on the board.I checked the modules.dep file which says that webcam driver(quickcam_messenger.ko) depends upon other modules and so i copied those modules along with Module.symvers ,modules.alias, modules.order files into data/ directory in my filesystem.When the board boots up i try to manually install the webcam driver using 'insmod' and i get the following error:

quickcam_messenger.ko:no symbol version for struct_module
insmod:init_module quickcam_messenger.ko failed(Exec format error)

I run insmod from the place where my quickcam_messenger.ko file is present.So can anyone please tell me where am i going wrong?Also can anybody tell me what does Module.symvers,modules.alias, modules.order files actually do?


Thanks and Regards
Suma
 
Old 10-15-2009, 10:47 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,272

Rep: Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440
Quote:
Originally Posted by sumahegde View Post
Hi all
I am working on an arm based board with Android kernel running on it.I have a logitech webcam and so i've compiled the logitech webcam driver as a module and got the corresponding 'quickcam_messenger.ko' object file.I've compiled webcam driver as a module against the same android kernel running on the board.I checked the modules.dep file which says that webcam driver(quickcam_messenger.ko) depends upon other modules and so i copied those modules along with Module.symvers ,modules.alias, modules.order files into data/ directory in my filesystem.When the board boots up i try to manually install the webcam driver using 'insmod' and i get the following error:

quickcam_messenger.ko:no symbol version for struct_module
insmod:init_module quickcam_messenger.ko failed(Exec format error)

I run insmod from the place where my quickcam_messenger.ko file is present.So can anyone please tell me where am i going wrong?
Yes, the module needs to be present in the directory where your other modules are, usually /lib/modules/<kernel version>/<some directory>. But since you're using a custom board, custom kernel, with a custom module, that YOU compiled, you'd be the one to know where it needs to go.
 
  


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
Kernel not loading all modules on boot fobster Linux - Newbie 5 01-05-2006 01:32 PM
Loading Kernel Modules superdude_876 Linux - Software 1 10-29-2005 12:46 AM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 12:10 PM
Modules not loading in New kernel palanisaravanan Linux - General 1 11-22-2003 07:31 AM
Loading kernel modules at boot burk Linux - General 7 06-10-2002 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration