[CentOS] Atheros Communications Inc. AR8161 Gigabit Ethernet

Mon Sep 24 10:13:51 UTC 2012
Johan Vermeulen <jvermeulen at cawdekempen.be>

Dear All,

first of all I must admit I posted this problem on the CentOs forum 
yesterday, with 0 replies so far. :-(

I'm googling this problem all weekend, and getting a bit desperate actually.

I'm working on a new Dell Vostro 3460.

  It has a Atheros Communications Inc. AR8161 Gigabit Ethernet carc that I cannot get to work.

There's no enty in /etc/udev/rules.d/70-persistent-net-rules or in /etc/sysconfig/network-scripts for wired network.

The laptop has Centos6.3 fully updated, lspci -v shows :

-----------------------------------------------------------------------------------------------------------

  02:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 10)
         Subsystem: Dell Device 0562
         Flags: bus master, fast devsel, latency 0, IRQ 11
         Memory at d0400000 (64-bit, non-prefetchable) [size=256K]
         I/O ports at 2000 [size=128]
         Capabilities: [40] Power Management version 3
         Capabilities: [58] Express Endpoint, MSI 00
         Capabilities: [c0] MSI: Enable- Count=1/16 Maskable+ 64bit+
         Capabilities: [d8] MSI-X: Enable- Count=16 Masked-
         Capabilities: [100] Advanced Error Reporting
         Capabilities: [180] Device Serial Number ff-4c-ed-51-5c-f9-dd-ff

-------------------------------------------------------------------------------------------------------------

  I found a CentOs6 post here :http://www.linuxquestions.org/questions/linux-newbie-8/atheros-not-working-905849/
that mentions a sollution by installing the AR81Family. I cannot find that.

  
I installed kmod-atl1e from ELREPO, as mentioned in this post:
http://www.mail-archive.com/scientific-linux-users@listserv.fnal.gov/msg11838.html

  that enabled wlan0, but no eht0 showing up.


  Several posts point me to this site :http://www.linuxfoundation.org/collaborate/workgroups/networking/alx

I downloaded the tarball but cannot get it compiled !.

I untarred it .
Next I run #./scripts/driver-select alx

Then I cannot get past make. EM :
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[root at ndehauwere compat-wireless-2012-05-10-p]# make
make -C /lib/modules/2.6.32-279.5.2.el6.i686/build M=/opt/compat/compat-wireless-2012-05-10-p modules
make[1]: Map '/usr/src/kernels/2.6.32-279.5.2.el6.i686' wordt binnengegaan
   CC [M]  /opt/compat/compat-wireless-2012-05-10-p/compat/main.o
In bestand ingevoegd vanuit /opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.h:53,
                      vanuit<commandolijn>:0:
/opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.33.h:58:1: let op: "IFF_DONT_BRIDGE" opnieuw gedefinieerd
In bestand ingevoegd vanuit include/linux/netdevice.h:28,
                      vanuit /opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.29.h:5,
                      vanuit /opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.h:49,
                      vanuit<commandolijn>:0:
include/linux/if.h:83:1: let op: dit is de locatie van de eerdere definitie
In bestand ingevoegd vanuit /opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.h:53,
                      vanuit<commandolijn>:0:
/opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.33.h:62:1: let op: "NETDEV_POST_INIT" opnieuw gedefinieerd
In bestand ingevoegd vanuit include/linux/memory_hotplug.h:6,
                      vanuit include/linux/mmzone.h:690,
                      vanuit include/linux/gfp.h:4,
                      vanuit include/linux/kmod.h:22,
                      vanuit include/linux/module.h:13,
                      vanuit include/linux/textsearch.h:7,
                      vanuit include/linux/skbuff.h:27,
                      vanuit include/linux/if_ether.h:126,
                      vanuit include/linux/netdevice.h:29,
                      vanuit /opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.29.h:5,
                      vanuit /opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.h:49,
                      vanuit<commandolijn>:0:
include/linux/notifier.h:210:1: let op: dit is de locatie van de eerdere definitie
In bestand ingevoegd vanuit /opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.h:54,
                      vanuit<commandolijn>:0:
/opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.34.h:247:1: let op: "sysfs_bin_attr_init" opnieuw gedefinieerd
In bestand ingevoegd vanuit include/linux/kobject.h:21,
                      vanuit include/linux/module.h:16,
                      vanuit include/linux/textsearch.h:7,
                      vanuit include/linux/skbuff.h:27,
                      vanuit include/linux/if_ether.h:126,
                      vanuit include/linux/netdevice.h:29,
                      vanuit /opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.29.h:5,
                      vanuit /opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.h:49,
                      vanuit<commandolijn>:0:
include/linux/sysfs.h:94:1: let op: dit is de locatie van de eerdere definitie
In file included from /opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.h:55,
                  from<commandolijn>:0:
/opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.35.h:27: fout: static declaration of 'irq_set_affinity_hint' follows non-static declaration
include/linux/interrupt.h:218: note: previous declaration of 'irq_set_affinity_hint' was here
/opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.35.h:50: fout: redefinition of 'usb_pipe_endpoint'
include/linux/usb.h:1599: note: previous definition of 'usb_pipe_endpoint' was here
In file included from /opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.h:56,
                  from<commandolijn>:0:
/opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.36.h:102: fout: redefinition of 'no_printk'
include/linux/kernel.h:341: note: previous definition of 'no_printk' was here
In file included from /opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.h:61,
                  from<commandolijn>:0:
/opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-3.1.h:11: fout: redefinition of '__netdev_alloc_skb_ip_align'
include/linux/skbuff.h:1572: note: previous definition of '__netdev_alloc_skb_ip_align' was here
In file included from /opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-2.6.h:62,
                  from<commandolijn>:0:
/opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-3.2.h:19: fout: redefinition of 'skb_frag_page'
include/linux/skbuff.h:1612: note: previous definition of 'skb_frag_page' was here
/opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-3.2.h:35: fout: redefinition of 'skb_frag_dma_map'
include/linux/skbuff.h:1729: note: previous definition of 'skb_frag_dma_map' was here
/opt/compat/compat-wireless-2012-05-10-p/include/linux/compat-3.2.h:46: fout: redefinition of 'skb_frag_size'
include/linux/skbuff.h:148: note: previous definition of 'skb_frag_size' was here
make[3]: *** [/opt/compat/compat-wireless-2012-05-10-p/compat/main.o] Fout 1
make[2]: *** [/opt/compat/compat-wireless-2012-05-10-p/compat] Fout 2
make[1]: *** [_module_/opt/compat/compat-wireless-2012-05-10-p] Fout 2
make[1]: Map '/usr/src/kernels/2.6.32-279.5.2.el6.i686' wordt verlaten
make: *** [modules] Fout 2

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

part of the EM is in Dutch, sorry for that.

I googled the EM from the make-command, and found somewhere that I would need a patch for Red Hat


  Can anyone help met get the alx kernel module or at least get past the make command?

Help would be greatly appreciated.

greetings, James