LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Transferring *.ko in linux2.6.9 (https://www.linuxquestions.org/questions/linux-software-2/transferring-%2A-ko-in-linux2-6-9-a-652766/)

khaos83 07-01-2008 03:35 AM

Transferring *.ko in linux2.6.9
 
I have 2 linux machine.

They have the same "main" kernel version. 2.6.9.
But different extraversion. e.g. -66, -99.

I want to get ipx in both of them.
I manage to do it in one of them, the lower version linux, -66. I recompile the kernel to achieve it.

I copied the ipx.ko to machine-99 and do a
Code:

insmod ipx.ko
insmod: error inserting ipx.ko: -1 Invalid module format

I did this because I don't want to recompile machine-99

Is it caused by the differnent kernel version? or the kernel-devel version?
Is there a way to resolve this?

bigrigdriver 07-01-2008 07:01 AM

Quote:

Is there a way to resolve this?
That depends on your ability to make patches and to read code.

Make a diff of the -66 kernel before and after compiling the module.

Compare the affected sections of kernel code in both the -66 and -99 kernels. If the affected sections of code are the same, then apply the diff to the -99 kernel. If there is any difference between the affected sections of code in the two kernels, the patch will not work in the -99 kernel.

In that case, you have no choice but to compile the module in the -99 kernel.


All times are GMT -5. The time now is 01:17 AM.