[SOLVED] Can't load NIC driver

Issues related to hardware problems

[SOLVED] Can't load NIC driver

Postby 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.
vpeppers
 
Posts: 10
Joined: 2010/10/06 14:03:38
Location: Atlanta, GA

[SOLVED] Can't load NIC driver

Postby gerald_clark » 2010/10/06 14:38:44

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

I would start by reading the FAQ at the ELRepo Project's website.
gerald_clark
 
Posts: 7180
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Can't load NIC driver

Postby AlanBartlett » 2010/10/06 20:03:51

If you still have a problem after following Gerald's advice, please post the output returned by executing ./getinfo.sh network, as detailed in How To Provide Information About Your System.

To be very specific, we will need to know the Vendor:Device ID Pairing (a.k.a. the fingerprint) for the NIC in question before any other advice can be given.
User avatar
AlanBartlett
Forum Moderator
 
Posts: 8975
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk

Re: Can't load NIC driver

Postby 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?
vpeppers
 
Posts: 10
Joined: 2010/10/06 14:03:38
Location: Atlanta, GA

Re: Can't load NIC driver

Postby AlanBartlett » 2010/10/07 19:50:11

Please post the output returned by the following --

Code: Select all
[b]uname -rmi
rpm -qa kernel\* | sort
rpm -q centos-release[/b]

-- along with the Vendor:Device ID Pairing that you have determined for the NIC in question. (Hints as to how to determine it can be seen in FAQ #4 on the ELRepo Project's website.)
User avatar
AlanBartlett
Forum Moderator
 
Posts: 8975
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk

Re: Can't load NIC driver

Postby pschaff » 2010/10/07 20:38:02

vpeppers wrote:
...
I have tried a flash drive, but I haven't successfully gotten that to work.

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: Select all
fdisk -l


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: Select all
mkdir /tmp/mnt
mount /dev/sde1 /tmp/mnt


5. Run the script (or alternatively the commands mentioned in post #5) with output to the USB stick.
Code: Select all
sh /tmp/mnt/getinfo.sh network > /tmp/mnt/OutputFile


6. Release the device.
Code: Select all
umount /tmp/mnt
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Can't load NIC driver

Postby 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
vpeppers
 
Posts: 10
Joined: 2010/10/06 14:03:38
Location: Atlanta, GA

Re: Can't load NIC driver

Postby AlanBartlett » 2010/10/07 22:13:00

197b:0260

O.k., so looking on the Device IDs page, I see --

Code: Select all
pci     197B:0260       kmod-jme

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 uname -rmi. :-(

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:
User avatar
AlanBartlett
Forum Moderator
 
Posts: 8975
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk

Re: Can't load NIC driver

Postby 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

Postby 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.
vpeppers
 
Posts: 10
Joined: 2010/10/06 14:03:38
Location: Atlanta, GA

Next

Return to CentOS 5 - Hardware Support

Who is online

Users browsing this forum: Baidu [Spider] and 0 guests