PDA

View Full Version : How to install Atheros AR8162 Ethernet drivers



nightylike
2013-03-30, 11:20
1. Add Mirrors After the Installation Tutorial Here (http://forums.kali.org/showthread.php?72-Adding-Mirrors-After-Install)

2. Start Terminal and type
apt-get update

apt-get install linux-headers-$(uname -r)

wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.8-1-snpc.tar.bz2

tar -xvjf compat-wireless-3.6.8-1-snpc.tar.bz2

cd compat-wireless-3.6.8-1-snpc/

scripts/driver-select alx

make

make install

modprobe alx


3. Troubleshooting

If you get error: implicit declaration of function ‘__netdev_printk’ like me
Type

leafpad drivers/net/ethernet/atheros/alx/alx_main.c

Find __netdev_printk and replace it with

//__netdev_printk(level, hw->adpt->netdev, &vaf);
printk("%salx_hw: %pV", level, &vaf)

It should look 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);

va_end(args);


After Installing the alx driver my backlight control stopped working (Lenovo G580)
Here is my fix for this:
Open Terminal and type

leafpad /etc/default/grub

add GRUB_CMDLINE_LINUX_DEFAULT="acpi_backlight=vendor"

after the last GRUB_CMDLINE_LINUX entry and save

Type in terminal
update-grub
reboot -n

Nikita_Michalkov
2013-10-31, 09:21
Hello! I have a problem whith this tutorial. When i type this




apt-get install linux-headers-$(uname -r)




i recieve

E: Не удалось найти пакет linux-headers-3.7-trunk-686-pae
E: Не удалось найти пакет по регулярному выражению «linux-headers-3.7-trunk-686-pae»

From russian it means like "Could not find package linux-headers-3.7-trunk-686-pae" and "Could not find package by regular expression «linux-headers-3.7-trunk-686-pae»"

Im asking for help!

Nikita_Michalkov
2013-10-31, 14:02
OK I DID IT!

you need to create a link like

ln -s /usr/src/linux-headers-3.7-trunk-686-pae /lib/modules/3.7-trunk-686-pae/build

then just follow this steps

apt-get update

apt-get install linux-headers-$(uname -r)

wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.8-1-snpc.tar.bz2

tar -xvjf compat-wireless-3.6.8-1-snpc.tar.bz2

cd compat-wireless-3.6.8-1-snpc/

scripts/driver-select alx

make

make install

modprobe alx

sanyk6
2014-01-06, 01:08
www.linuxfoundation.org/collaborate/workgroups/networking/alx