LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to install cross-compiled linux-uvc in OMAP3530 (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-cross-compiled-linux-uvc-in-omap3530-688270/)

anirbanrc 12-04-2008 06:29 AM

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

knudfl 12-06-2008 01:33 PM

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.
....

anirbanrc 12-07-2008 09:25 PM

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

knudfl 12-08-2008 12:17 AM

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.


All times are GMT -5. The time now is 10:02 AM.