Install device driver compiliation prerequisites
(Ensure your Debian install disk is in the CD/DVD drive)
- CODE: SELECT ALL
sudo apt-get install linux-headers-$(uname -r)
To compile code you'll also need to install a compiler (also available on the Debian install disk):
- CODE: SELECT ALL
apt-get install build-essential
Download Atheros AR8141 Gigabit Ethernet driver - I did have to go to the Atheros Driver to get this source.
- CODE: SELECT ALL
tar zxvf AR81Family-Linux-v1.0.1.9.tar.gz <-- just replace the file name with whatever you downloaded...looks like there's been an update since I installed my driver...
su
cd src
make
If you get the kernel version outdated error, edit Makefile.
Comment out the if- clause that results in the error being displayed - see the code snippet below to give you an idea of the lines that I commented out.
(in case you don't know, put a hash '#' at the beginning of each line you want to comment out)
- CODE: SELECT ALL
KKVER := $(shell echo $(KVER) | \
awk '{ if ($$0 ~ /2\.[4-9]\./) print "1"; else print "0"}')
#ifeq ($(KKVER), 0)
# $(error *** Aborting the build. \
# *** This driver is not supported on kernel versions older than #2.4.0)
#endif
Rerun make
- CODE: SELECT ALL
make install
cp /src/atl1e.ko /lib/modules/$(uname -r)/kernel/drivers/net/atl1e
modprobe atl1e
If this command results in an error
FATAL: Module atl1e not found
Do the following
- CODE: SELECT ALL
depmod -a
echo /sbin/modprobe atl1e >> /etc/sysconfig/modules/local.modules
chmod 755 /etc/sysconfig/modules/local.modules
Restart the machine
ไม่มีความคิดเห็น:
แสดงความคิดเห็น