You are not logged in.

#1 2013-02-08 15:32:20

mjb
Member
From: Germany
Registered: 2012-01-28
Posts: 66

[Solved] Wiki-Instructions for Atheros AR8161 do not work for me

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

#2 2013-02-08 16:12:10

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [Solved] Wiki-Instructions for Atheros AR8161 do not work for me

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)


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#3 2013-02-08 16:29:34

mjb
Member
From: Germany
Registered: 2012-01-28
Posts: 66

Re: [Solved] Wiki-Instructions for Atheros AR8161 do not work for me

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

#4 2013-02-09 02:39:28

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [Solved] Wiki-Instructions for Atheros AR8161 do not work for me

I have linked this thread to wiki for future references.


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#5 2013-02-27 18:37:32

mjb
Member
From: Germany
Registered: 2012-01-28
Posts: 66

Re: [Solved] Wiki-Instructions for Atheros AR8161 do not work for me

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

#6 2013-02-27 18:44:07

Gusar
Member
Registered: 2009-08-25
Posts: 3,431

Re: [Solved] Wiki-Instructions for Atheros AR8161 do not work for me

mjb wrote:

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

#7 2013-03-10 11:28:27

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [Solved] Wiki-Instructions for Atheros AR8161 do not work for me

The wiki instructions are updated nowand it works for me. No more workarounds.

Last edited by hadrons123 (2013-03-10 11:29:08)


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#8 2013-03-10 22:00:38

M0rtiferrimus
Member
Registered: 2013-03-03
Posts: 30

Re: [Solved] Wiki-Instructions for Atheros AR8161 do not work for me

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

Board footer

Powered by FluxBB