CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - Hardware Support
  [SOLVED] Can't load NIC driver

 

 Bottom   Previous Topic   Next Topic
<12
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  vpeppers
      vpeppers
Re: Can't load NIC driver
#21
Newbie
Joined: 2010/10/6
From Atlanta, GA
Posts: 10
Output from rpm -qi kernel-2.6.18-194.3.1.el5, as requested:

Name        : kernel                       Relocations: (not relocatable)
Version     : 2.6.18                            Vendor: CentOS
Release     : 194.3.1.el5                   Build Date: Thu 13 May 2010 03:17:23 PM EDT
Install Date: Mon 04 Oct 2010 01:28:27 PM EDT      Build Host: builder10.centos.org
Group       : System Environment/Kernel     Source RPM: kernel-2.6.18-194.3.1.el5.src.rpm
Size        : 96450280                         License: GPLv2
Signature   : DSA/SHA1, Wed 09 Jun 2010 01:13:39 PM EDT, Key ID 4bfe99f4d05c057c
URL         : http://www.kernel.org/
Summary     : The Linux kernel (the core of the Linux operating system)
Description :
The kernel package contains the Linux kernel (vmlinuz), the core of any
Linux operating system.  The kernel handles the basic functions
of the operating system:  memory allocation, process allocation, device
input and output, etc.


I am researching how to replace the OS with vanilla CentOS.
Posted on: 2010/10/10 11:53
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Can't load NIC driver
#22
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Quote:

vpeppers wrote:
I am researching how to replace the OS with vanilla CentOS.

I'd do a fresh install from the CentOS 5.5 DVD. You can add Asterisk after updating and getting to a stable and known system configuration.

For the CentOS kernel:
# rpm -qip /share/CentOS/5/updates/x86_64/RPMS/kernel-2.6.18-194.3.1.el5.x86_64.rpm
Name        : kernel                       Relocations: (not relocatable)
Version     : 2.6.18                            Vendor: CentOS
Release     : 194.3.1.el5                   Build Date: Thu 13 May 2010 03:17:23 PM EDT
Install Date: (not installed)               Build Host: builder10.centos.org
Group       : System Environment/Kernel     Source RPM: kernel-2.6.18-194.3.1.el5.src.rpm
Size        : 96450280                         License: GPLv2
Signature   : DSA/SHA1, Fri 14 May 2010 05:20:46 PM EDT, Key ID a8a447dce8562897
URL         : http://www.kernel.org/
Summary     : The Linux kernel (the core of the Linux operating system)
Description :
The kernel package contains the Linux kernel (vmlinuz), the core of any
Linux operating system.  The kernel handles the basic functions
of the operating system:  memory allocation, process allocation, device
input and output, etc.

Seems identical except for date an signing key. Not sure what Elastix has done, other than resign the RPM.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2010/10/10 12:29
Create PDF from Post Print
Top
  •  vpeppers
      vpeppers
Re: Can't load NIC driver
#23
Newbie
Joined: 2010/10/6
From Atlanta, GA
Posts: 10
I found my problem. The Elastix does seem to have modified the build slightly, primarily to brand it more than anything else, but also to stramline it, and reduce the size to a CD. I had downloaded the Xen version of the rpm, instead of the standard version. I found that, downloaded the proper version, and it installed fine. This issue is resolved!
Posted on: 2010/10/12 19:03
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: [SOLVED] Can't load NIC driver
#24
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Thanks for reporting back. Marking this thread [SOLVED] for posterity; however, I must say that if the information in posts 7 and 10 did not reveal that you were using Xen then Elastix must really go out of their way to obscure it.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2010/10/12 19:18
Create PDF from Post Print
Top
  •  golmo
      golmo
Re: [SOLVED] Can't load NIC driver
#25
Newbie
Joined: 2012/5/14
From
Posts: 1
Hello. community !.

I try fix the bug, but out from CentOS platform, using Oracle VM 2.2.2 in a Oracle Linux with XEN kernel, I belive the same fix for a CentOS distro, include this here for answer with one tested particular fix: as the error displays "Previous definition .." for symbols ip_hdr, ipv6_hdr and tcp_hdr was comment this in the jme.h as the OS
should define also, in the jme.h leave commented the code section, and after this the "make install" works OK.

/* comment in 2012-05-14 by golmo in jme.h
static inline struct iphdr *ip_hdr(const struct sk_buff *skb)
{
return skb->nh.iph;
}

static inline struct ipv6hdr *ipv6_hdr(const struct sk_buff *skb)
{
return skb->nh.ipv6h;
}

static inline struct tcphdr *tcp_hdr(const struct sk_buff *skb)
{
return skb->h.th;
}
*/


My environment


[root@ovmsdk222 jme-1.0.5]# uname -r
2.6.18-128.2.1.4.37.el5xen


[root@ovmsdk222 JME]# tar tvf jme-1.0.5.tar
drwxr-xr-x root/root 0 2009-07-03 01:26:24 jme-1.0.5/
-rw-r--r-- root/root 70630 2009-07-03 01:26:23 jme-1.0.5/jme.c
-rw-r--r-- root/root 888 2009-07-03 01:26:23 jme-1.0.5/Makefile
-rw-r--r-- root/root 31701 2009-07-03 01:26:23 jme-1.0.5/jme.h
[root@ovmsdk222 JME]# cd jme-1.0.5
[root@ovmsdk222 jme-1.0.5]# ls
jme.c jme.h Makefile Makefile.xen
[root@ovmsdk222 jme-1.0.5]# make
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.2.1.4.37.el5-xen-i686'
CC [M] /root/SYSMGR/Drivers/JME/jme-1.0.5/jme.o
In file included from /root/SYSMGR/Drivers/JME/jme-1.0.5/jme.c:41:
/root/SYSMGR/Drivers/JME/jme-1.0.5/jme.h:409: error: redefinition of ‘ip_hdr’
include/linux/ip.h:109: error: previous definition of ‘ip_hdr’ was here
/root/SYSMGR/Drivers/JME/jme-1.0.5/jme.h:414: error: redefinition of ‘ipv6_hdr’
include/linux/ipv6.h:199: error: previous definition of ‘ipv6_hdr’ was here
/root/SYSMGR/Drivers/JME/jme-1.0.5/jme.h:419: error: redefinition of ‘tcp_hdr’
include/linux/tcp.h:169: error: previous definition of ‘tcp_hdr’ was here
make[2]: *** [/root/SYSMGR/Drivers/JME/jme-1.0.5/jme.o] Error 1
make[1]: *** [_module_/root/SYSMGR/Drivers/JME/jme-1.0.5] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.2.1.4.37.el5-xen-i686'
make: *** [all] Error 2

After comment the symbols multiple defined in jme.h, the compile WORKS, and now can use my NIC JMicron for establish my eth0/xenbr0
for comunicste my dom0 with vitual domains in the local private network.

[root@ovmsdk222 jme-1.0.5]# make
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.2.1.4.37.el5-xen-i686'
CC [M] /root/SYSMGR/Drivers/JME/jme-1.0.5/jme.o
Building modules, stage 2.
MODPOST
CC /root/SYSMGR/Drivers/JME/jme-1.0.5/jme.mod.o
LD [M] /root/SYSMGR/Drivers/JME/jme-1.0.5/jme.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.2.1.4.37.el5-xen-i686'
[root@ovmsdk222 jme-1.0.5]# make install
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.2.1.4.37.el5-xen-i686'
CC [M] /root/SYSMGR/Drivers/JME/jme-1.0.5/jme.o
Building modules, stage 2.
MODPOST
CC /root/SYSMGR/Drivers/JME/jme-1.0.5/jme.mod.o
LD [M] /root/SYSMGR/Drivers/JME/jme-1.0.5/jme.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.2.1.4.37.el5-xen-i686'
install -c -m 644 *.ko /lib/modules/2.6.18-128.2.1.4.37.el5xen/kernel/drivers/net
/sbin/depmod -ae
[root@ovmsdk222 jme-1.0.5]# uname -r
2.6.18-128.2.1.4.37.el5xen
[root@ovmsdk222 jme-1.0.5]# ls -ltr
total 564
-rw-r--r-- 1 root root 888 Jul 3 2009 Makefile
-rw-r--r-- 1 root root 70630 Jul 3 2009 jme.c
-rw-r--r-- 1 root root 569 May 13 13:40 Makefile.xen
-rw-r--r-- 1 root root 31701 May 14 14:29 jme.h.bak
-rw-r--r-- 1 root root 31739 May 14 14:33 jme.h
-rw-r--r-- 1 root root 0 May 14 14:33 Module.markers
-rw-r--r-- 1 root root 393124 May 14 14:33 jme.ko

Regards.

Gregorio Del Olmo

Madrid/Spain
Posted on: 2012/5/14 17:33
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: [SOLVED] Can't load NIC driver
#26
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
golmo - Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

After reading those links you should realize why you should not hijack threads as you have done. Please start a new Topic for your issue to get the attention you need, providing a link to this one if required for context. This ancient thread is now locked.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/14 20:07
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic
<12

 


 You cannot start a new topic.
 You cannot view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com