PDA

View Full Version : Can not install AR8161 Ethernet card with compat-wireless package



jtweaker
2013-04-05, 07:18
Hi,

Have a problem with my Asus N56VZ laptop. I cannot install the alx driver. It is a clean install of the system, and I updated with apt-get update, upgrade, and dist-upgrade.
I Had the latest version of backtrack installed and with these drivers had it working.
I also installed the kernel headers, and this will let me continue a bit more, but now I get the following error:

root@Kali:~/compat-wireless-2012-07-03-pc# ./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
root@Kali:~/compat-wireless-2012-07-03-pc# make
./scripts/gen-compat-autoconf.sh /root/compat-wireless-2012-07-03-pc/.config /root/compat-wireless-2012-07-03-pc/config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/3.7-trunk-amd64/build M=/root/compat-wireless-2012-07-03-pc modules
make[1]: Entering directory `/usr/src/linux-headers-3.7-trunk-amd64'
CC [M] /root/compat-wireless-2012-07-03-pc/compat/main.o
LD [M] /root/compat-wireless-2012-07-03-pc/compat/compat.o
CC [M] /root/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.o
/root/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c: In function ‘alx_hw_printk’:
/root/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:124:3: error: implicit declaration of function ‘__netdev_printk’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[6]: *** [/root/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.o] Error 1
make[5]: *** [/root/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx] Error 2
make[4]: *** [/root/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros] Error 2
make[3]: *** [_module_/root/compat-wireless-2012-07-03-pc] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.7-trunk-amd64'
make: *** [modules] Error 2

Can anyone help me please?

Thanks in advance

jtweaker
2013-04-05, 11:47
Ok solved it, found the solution on : https://ask.fedoraproject.org/question/10550/fedora-18-atheros-ar8161-and-wireless-bcm43142-not-recognized/

Really just uncomment the complete if/else statement. Line 123 - 126.

Enjoy