www.centos.org Forum Index CentOS 5 - Hardware Support [SOLVED] Can't load NIC driver
|
Bottom Previous Topic Next Topic |
|
| |
|
|
|---|
| Poster | Thread |
|---|
|
Re: Can't load NIC driver | #22 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
Quote:
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: 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
|
|||
|
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
|
|||
|
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
|
|||
|
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
|
|||
|
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
|
|||
Top Previous Topic Next Topic |
|
|



Topic options
Print Topic
Threaded
Newest First
vpeppers




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!

You cannot start a new topic.