วันพฤหัสบดีที่ 21 มิถุนายน พ.ศ. 2555

Getting ClearOS to work with Atheros Communications AR8151 v2.0 Gigabit Ethernet (rev c0)


ClearOS formally Clarkconnect based of Centos…
Start by enabling the Tim S repo
To install the repo first install the public key (yes all RPM’s will now be signed) :-)

rpm --import ftp://timburgess.net/RPM-GPG-KEY-TimB.txt
Then install the release RPM (by default the ‘timb’ and ‘timb-testing’ repo’s will be disabled)
wget ftp://timburgess.net/repo/clearos/5.2/os/timb-release-1-0.noarch.rpm
rpm -Kv timb-release-1-0.noarch.rpm
rpm -Uvh timb-release-1-0.noarch.rpm
ref http://www.clearfoundation.com/docs/howtos/adding_tim_s_repo
yum --enablerepo=timb install kmod-atl1e
ref http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,28/func,view/id,24438/limit,10/limitstart,50/
last you need to edit the /etc/modprobe.conf
it need to contain an alias for every network card in my case I have a TP-link installed as well so
alias eth0 r8169
alias eth1 atl1e
if you fail to get this to work ifconfig -a will have a odd tmp interface

วันเสาร์ที่ 2 มิถุนายน พ.ศ. 2555

Install Driver atheros 8151 on Debian 6



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