LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Invalid module format. Unable to insert tg3.ko!! Please help (https://www.linuxquestions.org/questions/linux-newbie-8/invalid-module-format-unable-to-insert-tg3-ko-please-help-700474/)

ravichandran_swamy 01-28-2009 06:25 AM

Invalid module format. Unable to insert tg3.ko!! Please help
 
Hi
The NIC card, Broadcom Netlink BCM5787 Gigabit ethernet PCI Express
is not detected in my ACER5920 laptop in Redhat 4 Enterprise edition.
Kernel is 2.6.9-78EL
When I tried with Fedora 10 it is detected automatically.
So I tried with the same tg3.ko in the Redhat 4
(I have to use Redhat 4 for installing the Oracle applications.)
I am getting the following error while using the command Insmod tg3.ko
Invalid module format. Unable to insert tg3.ko
How can I correct this error to activate the NIC
Your help on this is highly appreciated.
Thanks

Agrouf 01-28-2009 07:55 AM

You should get yourself the tg3 rpm for red hat 4 or compile it from source with your red hat 4 kernel header files.

knudfl 01-29-2009 12:34 AM

A module only works when .....

1) compiled for the used kernel
2) with the right 'kernel-devel'
3) with the same compiler as the used kernel.

....

ravichandran_swamy 01-29-2009 12:41 AM

Thanks for your immediate response.
I am new to linux and I don't know how complex is compiling the tg3.
Can you pls tell me how to compile the tg3 for the redhat 4 or provide me any link which explains compiling the tg3. Is there any tool available for this.
Or where can I get the tg3 for Redhat 4
Any input from you will be more useful to me.
Thanks in advance.

knudfl 01-29-2009 06:35 AM

Like Agrouf said in # 2 : Get tg3-3.71b-1.src.rpm ....

http://docs.hp.com/en/5991-8659/ar01s05.html
and read the 400 lines instruction.

Keyword for Google to find tg3-3.71b-1.src.rpm
within 2 seconds .. tg3 rpm for red hat 4 ..

....


All times are GMT -5. The time now is 11:08 PM.