Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Problem with AR8161 LAN driver
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Silmano
n00b
n00b


Joined: 10 Mar 2012
Posts: 41

PostPosted: Mon Nov 25, 2013 9:39 am    Post subject: [Solved] Problem with AR8161 LAN driver Reply with quote

Hi,

I'm trying to install Gentoo on a PC with an AR8161 LAN device, but since its not included in the kernel I'm unable to find how to make it work, here's what I've tried so far:

1) Using systemrescuecd I've downloaded the source from here (http://wireless.kernel.org/en/users/Download/stable/) and tried to compile, but it fails in the second line trying to find build
Code:
make -C /lib/modules/3.4.66-std381-i586/build M=/mnt/backup/compat-wireless-3.6.8-1 modules
make: *** /lib/modules/3.4.66-std381-i586/build: No such file or directory.  Stop.
make: *** [modules] Error 2


2) Using another Gentoo PC to compile the same source, gives the following error
Code:
peter@server /tmp/compat-drivers-2013-03-04-u $ ./scripts/driver-select alx
Processing new driver-select request...
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backup exists: drivers/net/ethernet/broadcom/Makefile.bk
Backup exists: drivers/net/ethernet/atheros/Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backup exists: drivers/net/ethernet/broadcom/Makefile.bk
peter@server /tmp/compat-drivers-2013-03-04-u $ make
make -C /lib/modules/3.10.17-gentoo/build M=/tmp/compat-drivers-2013-03-04-u modules
make[1]: Entering directory `/usr/src/linux-3.10.17-gentoo'
/tmp/compat-drivers-2013-03-04-u/config.mk:252: "WARNING: CONFIG_CFG80211_WEXT will be deactivated or not working because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface like iwconfig will not work. To activate it build your kernel e.g. with CONFIG_LIBIPW=m."
  CC [M]  /tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.o
/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c: In function 'alx_dispatch_skb':
/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:700:4: error: too few arguments to function '__vlan_hwaccel_put_tag'
In file included from /tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:22:0:
include/linux/if_vlan.h:236:31: note: declared here
/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c: In function 'alx_set_vlan_mode':
/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:1141:17: error: 'NETIF_F_HW_VLAN_RX' undeclared (first use in this function)
/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:1141:17: note: each undeclared identifier is reported only once for each function it appears in
/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c: In function 'alx_fix_features':
/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:1158:17: error: 'NETIF_F_HW_VLAN_RX' undeclared (first use in this function)
/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:1159:15: error: 'NETIF_F_HW_VLAN_TX' undeclared (first use in this function)
/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c: In function 'alx_set_features':
/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:1176:18: error: 'NETIF_F_HW_VLAN_RX' undeclared (first use in this function)
/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c: In function 'alx_probe':
/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:2637:10: error: 'NETIF_F_HW_VLAN_RX' undeclared (first use in this function)
/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.c:2640:43: error: 'NETIF_F_HW_VLAN_TX' undeclared (first use in this function)
make[4]: *** [/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx/alx_main.o] Error 1
make[3]: *** [/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx] Error 2
make[2]: *** [/tmp/compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros] Error 2
make[1]: *** [_module_/tmp/compat-drivers-2013-03-04-u] Error 2
make[1]: Leaving directory `/usr/src/linux-3.10.17-gentoo'
make: *** [modules] Error 2


3) Using Pentoo LiveCD doesn't seem to find the interface (despite it should have the alx driver installed). Using ip addr, doesn't seem to show the AR8161 interface.

Any clue on what should I do to be able to enable or build the driver for the AR8161?


Last edited by Silmano on Wed Nov 27, 2013 12:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1411

PostPosted: Mon Nov 25, 2013 6:05 pm    Post subject: Reply with quote

Pentoo Portage Overlay: Compat-Drivers. Use a known Ethernet Adapter to install, then add this overlay.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
Silmano
n00b
n00b


Joined: 10 Mar 2012
Posts: 41

PostPosted: Mon Nov 25, 2013 6:21 pm    Post subject: Reply with quote

eyoung100 wrote:
Pentoo Portage Overlay: Compat-Drivers. Use a known Ethernet Adapter to install, then add this overlay.

Problem with that is that my PC doesn't have any other adapter, so I can't do it without buying one.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2642
Location: Slovenia

PostPosted: Mon Nov 25, 2013 8:05 pm    Post subject: Reply with quote

Use the alternative kernel on systemrescuecd. It's new enough to already contain this driver.
Back to top
View user's profile Send private message
Silmano
n00b
n00b


Joined: 10 Mar 2012
Posts: 41

PostPosted: Wed Nov 27, 2013 12:53 pm    Post subject: Reply with quote

Gusar wrote:
Use the alternative kernel on systemrescuecd. It's new enough to already contain this driver.

You're right! The alternate kernel of systemrescuecd boots with AR8161 support. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum