LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   insert module problem (https://www.linuxquestions.org/questions/fedora-35/insert-module-problem-286807/)

euslisu 02-06-2005 01:01 AM

insert module problem
 
My machine is loaded with Linux Fedora3-1C 2.6.9-1.667. Because the Fedora doesn't have src package, I down loaded a separate kernel source kernel-2.6.9-1.667.src.rpm from Fedora web site

After install this rpm and compiled the kernel, I try to insert idt77105.ko module into module list, it gives error like this:

[root@~ ]# insmod /lib/modules/2.6.9-1.667/kernel/drivers/atm/idt77105.ko

insmod: error inserting '/lib/modules/2.6.9-1.667/kernel/drivers/atm/idt77105.ko': -1 Invalid module format

[root@ ~]# dmesg
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
SELinux: initialized (dev nfsd, type nfsd), uses genfs_contexts
NET: Registered protocol family 8
NET: Registered protocol family 20
idt77105: version magic '2.6.9-prep 686 4KSTACKS gcc-3.4' should be '2.6.9-1.667 686 REGPARM 4KSTACKS gcc-3.4'
idt77105: version magic '2.6.9-prep 686 4KSTACKS gcc-3.4' should be '2.6.9-1.667 686 REGPARM 4KSTACKS gcc-3.4'
idt77105: version magic '2.6.9-prep 686 4KSTACKS gcc-3.4' should be '2.6.9-1.667 686 REGPARM 4KSTACKS gcc-3.4'

It sounds complain about my module is compiled with a pre-release version. If it is the case, can any one tell me where to get an official release of kernel-2.6.9-1.667.src.rpm? Otherwise, could any one tell me the possible cause of the problem?

Thanks in advance!

euslisu 02-06-2005 01:12 AM

Fedora FC3 kenerl 2.6.9-1.667 compile version
 
insert module problem ( post #1)

My machine is loaded with Linux Fedora3-1C 2.6.9-1.667. Because the Fedora doesn't have src package, I down loaded a separate kernel source kernel-2.6.9-1.667.src.rpm from Fedora web site

After install this rpm and compiled the kernel, I try to insert idt77105.ko module into module list, it gives error like this:

[root@~ ]# insmod /lib/modules/2.6.9-1.667/kernel/drivers/atm/idt77105.ko

insmod: error inserting '/lib/modules/2.6.9-1.667/kernel/drivers/atm/idt77105.ko': -1 Invalid module format

[root@ ~]# dmesg
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
SELinux: initialized (dev nfsd, type nfsd), uses genfs_contexts
NET: Registered protocol family 8
NET: Registered protocol family 20
idt77105: version magic '2.6.9-prep 686 4KSTACKS gcc-3.4' should be '2.6.9-1.667 686 REGPARM 4KSTACKS gcc-3.4'
idt77105: version magic '2.6.9-prep 686 4KSTACKS gcc-3.4' should be '2.6.9-1.667 686 REGPARM 4KSTACKS gcc-3.4'
idt77105: version magic '2.6.9-prep 686 4KSTACKS gcc-3.4' should be '2.6.9-1.667 686 REGPARM 4KSTACKS gcc-3.4'

It sounds complain about my module is compiled with a pre-release version. If it is the case, can any one tell me where to get an official release of kernel-2.6.9-1.667.src.rpm? Otherwise, could any one tell me the possible cause of the problem?

Thanks in advance!

/bin/bash 02-06-2005 10:37 AM

The module does not match the kernel.

Is this a module that you have to build yourself or is it part of the kernel? If you downloaded the module as a binary then you need to get the source for the module and build another one against the 2.6.9-1.667 kernel-sources.

euslisu 02-06-2005 10:52 AM

it is part of kernel module which was not in system. I download 2.6.9 source, recompile the kernel and then try to insert this module to system.

Mara 02-06-2005 01:47 PM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

This thread was moved to Fedora to be merged with http://www.linuxquestions.org/questi...hreadid=286809

XavierP 02-06-2005 01:53 PM

Threads merged.

/bin/bash 02-06-2005 06:43 PM

Which kernel are you using 2.6.9-prep or 2.6.9-1.667?
uname -r

euslisu 02-06-2005 08:14 PM

The system originally load Fedora without kerenl source.
Here is the kernel on my system:
[root@ ~]# uname -r
2.6.9-1.667

I download kernel 2.6.9-1.667src.rpm from Fedora offical web site
Here is the text in /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/Makefile

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 9
EXTRAVERSION = -prep
NAME=Zonked Quokka

I think my compilation is againest '2.6.9-prep' instead of '2.6.9-1.667'. It require an offical release of kernel-2.6.9-1.667.src.rpm. Do you know where to get this packdge?

/bin/bash 02-07-2005 05:45 AM

Well it's not on rpmfind.net and when I googled for it I only found this post here at LQ.

Maybe creznedmick can tell you where to find the sources.

<edit> The closest thing Fedora has is this.

You may end up having to use the config file in /boot and build a new kernel and modules.


All times are GMT -5. The time now is 06:24 AM.