Search This Blog

Tuesday, October 26, 2010

LAN CARD trouble shooting

take the output for "lspci -k".
It'll show you the kernel driver is being used by your system for
ethernet, possibly at last entry.

It looks something like (for my system) :

"02:0f.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8110SC/8169SC Gigabit Ethernet (rev 10)
Subsystem: Giga-byte Technology GA-MA69G-S3H Motherboard
Kernel driver in use: r8169"

So the driver for the ethernet controller is ' r8169'.
Now check :

"lsmod | grep r8169"

It shows something like (for my system) :

"root@debian[~]#lsmod | grep r8169
r8169 28765 0
mii 3210 1 r8169"

If it doesn't show any entry for the driver present as per your
system.
Then do :

"modprobe r8169"

It'll install the ethernet driver in your system.
Restart the system and check it.

------------
-------------
Issue the below command in the terminal.

ifconfig eth0 netmask up


then ping with other system. if it is working, then put the proper entry in /etc/network/interface . After that restart the system.
------------------
---------------
if system is showing as "Unknown device" for the ethernet controller, that
means the driver is missing for the same. So we need to check the
drivers available for that over internet/host site/vendor site. Following command will help to find out vendor ID / Device ID:

"lspci -nn"
----------------------------

Ethernet controller: Attansic Technology Corp. Unknown device 1063 (rev c0)
you need atl1e / atl1c driver module to make this ethernet card work.

Download AR81Family-linux-v1.0.0.10.
tar.gz from http://partner.atheros.com/Drivers.aspx
and compile the source to get the kernel module.
then modrpobe the obtained "ko" file .

---------------------------------------------
-------------------------------------------
The o/p for lspci -nn is for Ethernet entry as per your's attached file is

"02:00.0 Ethernet controller [0200]: Broadcom Corporation Unknown device [14e4:1698] (rev 10)"

That means the driver is not present for the same.
Kindly click on the following link

http://www.broadcom.com/support/ethernet_nic/driver-sla.php?driver=570x-Linux&archive=0


and download the driver.
You'll get a zip file as linux-3.110g.zip.
Right click and click on extract here option.
It'll extract a folder named Server.
cd to Server/Linux/Driver.

Right click on tg3-3.110g.tar.gz and click on extract here option.

It'll extract a folder named tg3-3.110g.

cd to tg3-3.110g.

Go through the README.TXT
Compile the driver using make command.
You'll obtain an object file(.ko).
Now insert the module using.....

modprobe .ko file.

Restart the system and check.

--------------------------------------------------------------------
Before running any command check whether r8168.ko is there in /lib/modules/2.6.22-3-486/
kernel/drivers/net. If its there then run the below cmnds :

1. #lsmod | grep r8169
if it shows r8169 in the output, then run
2. #rmmod r8169
3. #depmod -a
4. #mkinitramfs -o /boot/initrd.img-2.6.22-486 2.6.22-486
5. Append the line in /etc/modprobe.d/aliases
alias r8168 eth0
6. Restart system

Now configure the n/w.

No comments:

Post a Comment