How to install Network Driver in Linux system
Introduction –
“Attansic Technology Corp. L1 Gigabit Ethernet Adapte” network (NIC) card or Adapter was not detected by RHEL4 (redhat) system. I tried running kudzu and other commands to detect device, but no use. So finally I have to install drivers for my network card…
Step 1] Device status (network card) –
* See below device status from hardware conf file ~ “/etc/sysconfig/hwconf”
* Attansic Technology Corp. L1 Gigabit Ethernet Adapter not detected – Unknown device 8226
03:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)
Subsystem: ASUSTeK Computer Inc.: Unknown device 8226
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR+ <PERR-
Latency: 0, Cache Line Size 10
Interrupt: pin A routed to IRQ 201
…
…..
[root@desktop ~]# lspci
03:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)
…
…..
[root@desktop ~]# lspci -n
03:00.0 Class 0200: 1969:1048 (rev b0)
…
…..
[root@desktop ~]#
* Make sure to download drivers for above venderID & deviceId “1969:1048″….
Step 2] download and extract the source –
First, download vendor* driver from here
ftp://ftp.hogchain.net/pub/linux/attansic/vendor_driver/l1-linux-v1.2.40.3.tar.gz
OR
open-source (http://atl1.sourceforge.net/)
[root@desktop ~]# tar xvfz l1-linux-v1.2.40.3.tar.gz
[root@desktop ~]# cd l1-linux-v1.2.40.3
[root@desktop src]# ls
at_ethtool.c at.h at_hw.c at_hw.h at_main.c at_osdep.h at_param.c kcompat.c kcompat_ethtool.c kcompat.h Makefile
[root@desktop src]#
* Now compile and install the drivers
[root@desktop src]# make
make -C /lib/modules/2.6.9-78.ELsmp/build SUBDIRS=/root/l1-linux-v1.2.40.3/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-78.EL-smp-i686′
…
…..
make[1]: Leaving directory `/usr/src/kernels/2.6.9-78.EL-smp-i686′
[root@desktop src]# echo $?
0
[root@desktop src]# make install
make -C /lib/modules/2.6.9-78.ELsmp/build SUBDIRS=/root/l1-linux-v1.2.40.3/src modules
…
…..
man -c -P’cat > /dev/null’ atl1 || true
[root@desktop src]# echo $?
0
* Now load the kernel module….
[root@desktop src]# modprobe atl1
Step 3] Now verify whether kernel driver is working or not –
[root@desktop src]# modinfo atl1
filename: /lib/modules/2.6.9-78.ELsmp/kernel/drivers/net/atl1/atl1.ko
author: Atheros Corporation, <xiong.huang@atheros.com>
description: Atheros 1000M Ethernet Network Driver
license: GPL
version: 1.2.40.3 1FC4E58EBDF31F49BFD33E8
parm: TxDescriptors:Number of transmit descriptors
parm: RxDescriptors:Number of receive descriptors
parm: MediaType:MediaType Select
parm: IntModTimer:Interrupt Moderator Timer
parm: FlashVendor:SPI Flash Vendor
vermagic: 2.6.9-78.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4
depends:
alias: pci:v00001969d00001048sv*sd*bc*sc*i*
[root@desktop src]#
[root@desktop src]# netconfig
[root@desktop src]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:AD:54:0A:XX:WW
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::223:54ff:fe0a:616b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:498 (498.0 b)
Memory:feac0000-feb00000
…
…..
[root@desktop src]#
[root@desktop ~]# vi /etc/sysconfig/hwconf
class: NETWORK
bus: PCI
detached: 0
device: eth0
driver: atl1
desc: “Attansic Technology Corp. L1 Gigabit Ethernet Adapter”
network.hwaddr: 00:AD:54:0A:XX:WW
vendorId: 1969
deviceId: 1048
subVendorId: 1043
subDeviceId: 8226
pciType: 1
pcidom: 0
pcibus: 3
pcidev: 0
pcifn: 0
[root@desktop ~]#
Enjoy,
Arun Bagul
3 Replies to “How to install Network Driver in Linux system”
To Arun Bagul,
“Attansic Technology Corp. L1 Gigabit Ethernet Adapter”
when i typed make command i got the following error
[root@localhost src]# make
Makefile:63: *** Linux kernel source not found. Stop.
[root@localhost src]# make install
Makefile:63: *** Linux kernel source not found. Stop.
how to solve this error
thanks,
m.rajesh
Hi! Rajesh,
Please install kernel dev package for your distro OS.
how to install nic card drivers on rhel 5