poniedziałek, 12 listopada 2007

OnBoard Ethernet Gigabyte 8i945GCMX-S2 in CentOS5

Situation:

- CeontOS5.0 with Xen installed on machine with Gigabyte 8i945GCMX-S2
- No ethernet card discovered

Resolution:

try:

#lspci

for this device there should be:

01:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169SC Gigabit Ethernet (rev 10)

if so, then download linux 2.6 driver from here and untar it. Next steps are described in its readme file but i'll put short in here.

on CentOS5.0 with Xen type (as root):

#yum install kernel-xen-devel

(If your kernel is without xen it will be #yum install kernel-devel).
Now change directory to this unpacked driver previously downloaded and type:

# make clean modules

# make install

# depmod -a

# insmod ./src/r8169.ko


Now it should work. Try dmesg. It should show something like:

r8169 Gigabit Ethernet driver 6.003.00-NAPI loaded
ACPI: PCI Interrupt 0000:01:05.0[A] -> GSI 21 (level, low) -> IRQ 20
eth1: RTL8169SC/8110SC at 0xee62e000, 00:1a:4d:3c:42:e2, IRQ 20

You can also try ifconfig -a. There should be eth0 (or ethN where N is number)

Brak komentarzy: