1. Subscriptions
  2. Services
  3. Hardware
  4. Support

ClearFoundation

Forums
Welcome, Guest
Atheros atl1e updated in elrepo
(1 viewing) 1 Guest
Go to bottomPage: 12
TOPIC: Atheros atl1e updated in elrepo
#14915
Atheros atl1e updated in elrepo 1 Year, 10 Months ago  
I see that elrepo recently updated the driver to 1.0.1.9:

elrepo.org/bugs/view.php?id=71

Any chance of a rebuilt RPM for the ClearOS repo?

The source rpm is here: elrepo.org/linux/elrepo/el5/SRPMS/atl1e-...1.el5.elrepo.src.rpm

Thanks,

Fredrik
Fredrik Duprez
Senior Boarder
Posts: 42
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14917
Re: Atheros atl1e updated in elrepo 1 Year, 10 Months ago  
Hi Frederik - sorry the build fails here on my machine so i've not been able to update it.
Code:

In file included from /home/devel/rpmbuild/BUILD/atl1e-kmod-1.0.1.9/_kmod_build_/src/at_common.h:5,
                 from /home/devel/rpmbuild/BUILD/atl1e-kmod-1.0.1.9/_kmod_build_/src/at_common_main.c:2:
/home/devel/rpmbuild/BUILD/atl1e-kmod-1.0.1.9/_kmod_build_/src/kcompat.h:1575: error: redefinition of 'struct napi_struct'
make[1]: *** [/home/devel/rpmbuild/BUILD/atl1e-kmod-1.0.1.9/_kmod_build_/src/at_common_main.o] Error 1
make: *** [_module_/home/devel/rpmbuild/BUILD/atl1e-kmod-1.0.1.9/_kmod_build_/src] Error 2
make: Leaving directory `/usr/src/kernels/2.6.18-164.6.1.v5-i686'
error: Bad exit status from /var/tmp/rpm-tmp.90587 (%build)

Tim Burgess
Moderator
Posts: 4623
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14918
Re:Atheros atl1e updated in elrepo 1 Year, 10 Months ago  
Ah, I see. I did a bit of googling and it seems lite this is a problem with newer CentOS versions. I Wonder how the elrepo guys managed to build it.

I found a blog post with a fix:

blog.lkc.idv.hk/?p=338

Basically he seems to comment out the definition of the struct in the atheros source code. I am not skilled enough to figure out if this might be a problem or if the workaround is OK.

Code:


############# Solution ##############
I solved it by deleting some code in kcompat.h
the following were deleted
#if ( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) )
/* NAPI API changes in 2.6.24 break everything */
struct napi_struct {
/* used to look up the real NAPI polling routine */
int (*poll)(struct napi_struct *, int);
int weight;
};
and

#endif /* _KCOMPAT_H_ */

Fredrik Duprez
Senior Boarder
Posts: 42
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14920
Re:Atheros atl1e updated in elrepo 1 Year, 10 Months ago  
Update:

I found out that the src rpm in the bug report is patched:
Code:


--- atl1e-1.0.1.9/src/kcompat.h.old 2010-07-04 00:40:45.000000000 +0300
+++ atl1e-1.0.1.9/src/kcompat.h 2010-07-04 00:41:56.000000000 +0300
@@ -1572,11 +1572,11 @@
 /*****************************************************************************/
 #if ( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) )
 /* NAPI API changes in 2.6.24 break everything */
-struct napi_struct {
- /* used to look up the real NAPI polling routine */
- int (*poll)(struct napi_struct *, int);
- int weight;
-};
+//struct napi_struct {
+// /* used to look up the real NAPI polling routine */
+// int (*poll)(struct napi_struct *, int);
+// int weight;
+//};
 #ifdef NAPI
 extern int __kc_adapter_clean(struct net_device *, int *);
 #define netif_rx_complete(netdev, napi) netif_rx_complete(netdev)



So could you try that one?

elrepo.org/bugs/file_download.php?file_id=7&type=bug

Regards,

Fredrik
Fredrik Duprez
Senior Boarder
Posts: 42
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14946
Re:Atheros atl1e updated in elrepo 1 Year, 10 Months ago  
With a little help from google I managed to build this from the bugreport rpm (in a virtualbox install of ClearOS 5.2):

Code:


rpm -ivv atl1e-kmod-1.0.1.9-1.el5.cs.src.rpm
cd  /usr/src/redhat/SPECS/
rpmbuild -bb --target=i686 atl1e-kmod.spec



The created rpms are found under /usr/src/redhat/RPMS

Due to a bug in rpm and elrepos handling of that it is recommended to uninstall the old driver first.

So I went to the actual machine that needed the driver and did the following:

Code:

yum erase kmod-atl1e-PAE-1.0.1.0-3.el5.elrepo
yum --nogpgcheck localinstall kmod-atl1e-PAE-1.0.1.9-1.el5.cs.i686.rpm



Did a reboot and so far it seems to have worked.
Fredrik Duprez
Senior Boarder
Posts: 42
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14953
Re:Atheros atl1e updated in elrepo 1 Year, 10 Months ago  
Great detective work, and thanks for posting the solution!
Tim Burgess
Moderator
Posts: 4623
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#26092
Re:Atheros atl1e updated in elrepo 1 Year, 1 Month ago  
I've just spent the last 36hrs trying to get my mobo ar8131 working to no avail. Could you please tell a newbie how to do this. There's lots of posts about this nic and I've tried several of their 'fixes' without success.
thanks, Robert
Robert Watson
Junior Boarder
Posts: 33
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#26093
Re:Atheros atl1e updated in elrepo 1 Year, 1 Month ago  
Ok i've applied the patch - you can find the newer RPM here:-
ftp://timburgess.net/repo/clearos/5.2/os/kmod-atl1e-1.0.1.9-3.clearos.i686.rpm
or PAE version here
ftp://timburgess.net/repo/clearos/5.2/os/kmod-atl1e-PAE-1.0.1.9-3.clearos.i686.rpm

Robert, can you post the output of the following two commands?
Code:

lspci
cat /etc/modprobe.conf

Tim Burgess
Moderator
Posts: 4623
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#26094
Re:Atheros atl1e updated in elrepo 1 Year, 1 Month ago  
thanks, excuse my newbie ignorance.....but what's the difference between the two repos?
Got so disgusted, I'm reinstalling the system and will run the commands when back up.
Robert Watson
Junior Boarder
Posts: 33
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/03/27 18:14 By rdwatson.
The administrator has disabled public write access.
 
#26096
Re:Atheros atl1e updated in elrepo 1 Year, 1 Month ago  
Hi Robert, the PAE version is for systems with >4GB RAM (and running the kernel-PAE version)
Tim Burgess
Moderator
Posts: 4623
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
  get the latest posts directly to your desktop