View previous topic :: View next topic |
Author |
Message |
Silmano n00b
Joined: 10 Mar 2012 Posts: 59
|
Posted: Mon Nov 25, 2013 9:39 am Post subject: [Solved] Problem with AR8161 LAN driver |
|
|
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 |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
|
Back to top |
|
|
Silmano n00b
Joined: 10 Mar 2012 Posts: 59
|
Posted: Mon Nov 25, 2013 6:21 pm Post subject: |
|
|
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 |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Mon Nov 25, 2013 8:05 pm Post subject: |
|
|
Use the alternative kernel on systemrescuecd. It's new enough to already contain this driver. |
|
Back to top |
|
|
Silmano n00b
Joined: 10 Mar 2012 Posts: 59
|
Posted: Wed Nov 27, 2013 12:53 pm Post subject: |
|
|
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 |
|
|
|