LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-04-2008, 07:29 AM   #1
anirbanrc
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
Unhappy How to install cross-compiled linux-uvc in OMAP3530


Hi,

For Omap3530 I have cross compiled linux-uvc with arm-none-linux-gnueabi tool chain. It is cross compiled successfully without giving any error or warning, and uvcvideo.ko is creating. But when I want to insert this module
with "insmod uvcvideo.ko" then It is giving error that Invalid module format. so, I have checked the kernel version for which the linux-uvc is cross compiled and the kernel running in the board. They both are same
2.6.22.18-omap3.

Now can anyone tell me why this error is coming and how can i resolve this error.

Thanks,
Anirban Roy Choudhury
 
Old 12-06-2008, 02:33 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
The module can only be inserted into a
kernel compiled with an identical compiler.

But may be insmod isn't working, it is a
primitive tool, try # 'modprobe <module>'
instead.
....
 
Old 12-07-2008, 10:25 PM   #3
anirbanrc
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Hi knudfl,

I have already tried with modprobe but that is also giving the same error.
And I cant undestand what do you want to mean by "The module can only be inserted into a kernel compiled with an identical compiler"

Please clarify.
Note I have cross compiled the camera driver with the tool chain supplied with the board.

Thanks,
Anirban
 
Old 12-08-2008, 01:17 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
The command 'cat /proc/version' will usually tell which
version of compiler was used for the kernel build.

'gcc-arm-none-linux -v' (please use actual "gcc" name)
will write gcc version etc.
 
  


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
Problem to install UVC driver on Slackware 12.1 galemah Slackware 8 06-05-2008 10:01 AM
Config Problem With Cross-Compiled OpenSSH Mahonri Linux - General 2 06-02-2007 12:41 PM
Config Problem With Cross-Compiled OpenSSH Mahonri Linux - Software 0 06-01-2007 02:02 PM
problem with the cross compiled executable??? raklo Linux - Kernel 0 04-03-2007 08:16 AM
Cross compiled kernel-2.6.13 for x86-64 arch stops booting under Slackware-10.1 Basel Slackware 4 09-09-2005 01:57 PM


All times are GMT -5. The time now is 08:47 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