[SOLVED] Can't load NIC driver

Issues related to hardware problems
vpeppers
Posts: 10
Joined: 2010/10/06 14:03:38
Location: Atlanta, GA

[SOLVED] Can't load NIC driver

Post by vpeppers » 2010/10/06 14:11:01

Okay, all you Linux gurus. Help me out on this one.

I am starting a new line of business for my company, selling IP PBX's, based on Asterisk. I am using the Elastix build, which is based on CentOS 5.5.

I just purchased a Shuttle XS35-701, which is an Atom powered box, which draws 40W of power. It looks like it is going to make a great Asterisk appliance. My only problem is that CentOS doesn't recognize my network card. It is a JMicron JME260. JMicron has a "driver" on its web site. There are two versions for Linux: 1.0.5, available as a tar archive, and 1.0.6, in a rar archive. I have downloaded both a tried to install both. I get the same errors on either one.

The instructions say to expand the archive, and to change to the proper directory. Then is says to "make install" I have done this multiple times. I get a series of errors:

make[1]]: Entering directory 'usr/src/kernels/2.6.18-194.3.1.el5-x86_64'
CC [m] /root/jme-1.0.6/jme.o
In file included from /root/jme-1.0.6/jme.c:41:
/root/jme-1.0.6/jme.h:415:error:redefinition of 'ip_hdr'
Include/linux/ip.h:109:error:previous definition of 'ip_hdr' was here
/root/jme-1.0.6/jme.h:420:error:redefinition of 'ipv6_hdr'
Include/linux/ipv6.h:199:error:previous definition of 'ipv6_hdr' was here
/root/jme-1.0.6/jme.h:425:error:redefinition of 'tcp_hdr'
Include/linux/tcp.h:169:error:previous definition of 'tcp_hdr' was here
make[2]: ***[/root/jme-1.0.6/jme.o] Error 1
make[1]: ***[_module_/root/jme-1.0.6] Error 2
make[1]: Leaving directory 'usr/src/kernels/2.6.18-194.3.1.el5-x86_64'
make: ***[all] Error 2


After I run this, there is no jme.ko. I have no idea why not. I don't know what to do about it. Has anyone installed this JME260 NIC? Is there anyone who can help me?

Please don't suggest that I just put another NIC in the machine. It is built onto the motherboard, and has no slots to put another one into.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

[SOLVED] Can't load NIC driver

Post by gerald_clark » 2010/10/06 14:38:44

Welcome to CentOS.
New users should read:
http://www.centos.org/modules/newbb/viewforum.php?forum=47

I would start by reading the [url=http://elrepo.org/tiki/FAQ]FAQ[/url] at the [url=http://elrepo.org]ELRepo Project[/url]'s website.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Can't load NIC driver

Post by AlanBartlett » 2010/10/06 20:03:51

If you still have a problem after following [b]Gerald[/b]'s advice, please post the output returned by executing [b]./getinfo.sh network[/b], as detailed in [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=25128&forum=47]How To Provide Information About Your System[/url].

To be very specific, we will need to know the [i]Vendor:Device ID Pairing[/i] (a.k.a. the [i]fingerprint[/i]) for the NIC in question before any other advice can be given.

vpeppers
Posts: 10
Joined: 2010/10/06 14:03:38
Location: Atlanta, GA

Re: Can't load NIC driver

Post by vpeppers » 2010/10/07 19:22:35

Thanks for the tip, Gerald. I went to the elrepo site, and found a forum article on my NIC. I followed what it said, and downloaded the rpm file. I ran the command rpm -Uvh kmod-jme-1.0.6.1-1.el5.elrepo.x86_64.rpm. I got a whole bunch of error messages, all reading like this:

kernel(rhel5_xxxx_ga)=[whole bunch of numbers] is needed by kmod-jme-1.0.6.1-1.el5.elrepo.x86_64

There were too many to fit on one screen. I know of no way to capture this output as a file to post.

I also know of no way to get the information out of the system that Alan suggested, as I have no NIC, and no writable drives. I have tried a flash drive, but I haven't successfully gotten that to work.

I know that I am missing something important here, but I have no clue as to what it migth be. Can you help me out?

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Can't load NIC driver

Post by AlanBartlett » 2010/10/07 19:50:11

Please post the output returned by the following --

[code]
[b]uname -rmi
rpm -qa kernel\* | sort
rpm -q centos-release[/b]
[/code]
-- along with the [i]Vendor:Device ID Pairing[/i] that you have determined for the NIC in question. (Hints as to how to determine it can be seen in [url=http://elrepo.org/tiki/FAQ]FAQ #4[/url] on the [url=http://elrepo.org]ELRepo Project[/url]'s website.)

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Can't load NIC driver

Post by pschaff » 2010/10/07 20:38:02

[quote]
vpeppers wrote:
...
I have tried a flash drive, but I haven't successfully gotten that to work.[/quote]
It goes something like this:

0. Put the getinfo.sh script on a USB stick.

1. Plug in USB stick.

2. Find the device.[code]fdisk -l[/code]

3. Look at the output and find the USB device - let's assume it is /dev/sde1 for this exercise.

4. Make a mount point - say /tmp/mnt - and mount the device[code]mkdir /tmp/mnt
mount /dev/sde1 /tmp/mnt[/code]

5. Run the script (or alternatively the commands mentioned in post #5) with output to the USB stick.[code]sh /tmp/mnt/getinfo.sh network > /tmp/mnt/OutputFile[/code]

6. Release the device.[code]umount /tmp/mnt[/code]

vpeppers
Posts: 10
Joined: 2010/10/06 14:03:38
Location: Atlanta, GA

Re: Can't load NIC driver

Post by vpeppers » 2010/10/07 20:45:32

rpm -qa kernel\*
kernel-2.6.18-194.3.1.el5
kernel-devel-2.6.18-194.3.1.el5
kernel-headers-2.6.18-194.3.1.el5
kernel-module-dahdi-2.3.0.1-3_2.6.18-194.3.1.el5
kernel-module-rhino-0.99.3-2.beta2_2.6.18-194.3.1.el5
kernel-wanpipe-3.5.14-0_2.6.18-194.3.1.el5

rpm -q centos-release
centos-release-5-5.el5.centos

vendor:hardwareID
197b:0260

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Can't load NIC driver

Post by AlanBartlett » 2010/10/07 22:13:00

[quote]
197b:0260
[/quote]
O.k., so looking on the [url=http://elrepo.org/tiki/DeviceIDs]Device IDs[/url] page, I see --

[code]
pci 197B:0260 kmod-jme
[/code]
So there is an appropriate kmod package for that NIC. However I cannot tell you which one you should be using because you have failed to show me the first item of information requested, the output returned by [b]uname -rmi[/b]. :-(

For a 32-bit system there are the standard, the PAE and the xen versions.
For a 64-bit system there are the standard and the xen version.

From you earlier comments (post #4), I suspect you have a 32-bit system and have made the wrong choice between standard or PAE kmod package . . . :roll:

vpeppers
Posts: 10
Joined: 2010/10/06 14:03:38
Location: Atlanta, GA

Re: Can't load NIC driver

Post by vpeppers » 2010/10/08 01:38:06

Thanks, Alan. That was just what I needed. I had tried all kinds of combinations of mount, with and without fs, with no success. I guess I just wasn't holding my mouth right.

vpeppers
Posts: 10
Joined: 2010/10/06 14:03:38
Location: Atlanta, GA

Re: Can't load NIC driver

Post by vpeppers » 2010/10/08 01:39:57

Sorry about the uname stuff. I guess I am just getting old, and read past stuff now. The response on that was 2.6.18-194.3.1.el5 x86_64 x86_64. I was sure that it was 64 biit, because I had downloaded and installed the 64 bit version.

Post Reply