You are not logged in.
Hello everyone,
I followed these instructions ("No eth0 with Atheros AR8161"), but I get the following output when trying to run make:
make -C /lib/modules/3.7.5-1-ARCH/build M=/home/max/Downloads/compat-wireless-3.6.8-1-snpc modules
make[1]: Entering directory `/usr/src/linux-3.7.5-1-ARCH'
CC [M] /home/max/Downloads/compat-wireless-3.6.8-1-snpc/drivers/net/ethernet/atheros/alx/alx_main.o
/home/max/Downloads/compat-wireless-3.6.8-1-snpc/drivers/net/ethernet/atheros/alx/alx_main.c: In function ‘alx_hw_printk’:
/home/max/Downloads/compat-wireless-3.6.8-1-snpc/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[4]: *** [/home/max/Downloads/compat-wireless-3.6.8-1-snpc/drivers/net/ethernet/atheros/alx/alx_main.o] Error 1
make[3]: *** [/home/max/Downloads/compat-wireless-3.6.8-1-snpc/drivers/net/ethernet/atheros/alx] Error 2
make[2]: *** [/home/max/Downloads/compat-wireless-3.6.8-1-snpc/drivers/net/ethernet/atheros] Error 2
make[1]: *** [_module_/home/max/Downloads/compat-wireless-3.6.8-1-snpc] Error 2
make[1]: Leaving directory `/usr/src/linux-3.7.5-1-ARCH'
make: *** [modules] Error 2
What am I missing?
Last edited by mjb (2013-02-08 16:29:51)
Offline
Try this thread, it worked for me.
https://github.com/mcgrof/alx/issues/2# … t-13274953
Last edited by hadrons123 (2013-02-08 16:13:36)
Offline
Thanks it did. For future reference:
Edit the lines 123-127 in "/compat-wireless-3.6.8-1-snpc/drivers/net/ethernet/atheros/alx/alx_main.c" like this:
if (hw && hw->adpt && hw->adpt->netdev)
//__netdev_printk(level, hw->adpt->netdev, &vaf);
printk("%salx_hw: %pV", level, &vaf);
else
printk("%salx_hw: %pV", level, &vaf);
Offline
I have linked this thread to wiki for future references.
Offline
Thank you. To automate this use:
wget [url]http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.8-1-snpc.tar.bz2[/url]
tar xjf compat-wireless-3.6.8-1-snpc.tar.bz2
cd compat-wireless-3.6.8-1-snpc
sed -i '124 c\ \t\t;' ./drivers/net/ethernet/atheros/alx/alx_main.c
./scripts/driver-select alx
make
sudo make install
sudo modprobe alx
Is there any way to avoid having to do this everytime the kernel updates?
Last edited by mjb (2013-02-27 18:39:49)
Offline
Is there any way to avoid having to do this everytime the kernel updates?
You can try dkms-alx from AUR. It'll install a newer version of the driver that doesn't need patching, and being a dkms package, the driver will be automatically rebuilt after you reboot to a new kernel.
Offline
The wiki instructions are updated nowand it works for me. No more workarounds.
Last edited by hadrons123 (2013-03-10 11:29:08)
Offline
Will this work for the AR8162?
Edit: never mind, the regular alx instructions work for the 8162.
Last edited by M0rtiferrimus (2013-03-10 22:13:59)
Offline