Hey
Jeg har en pc, der før har drillet med eth0, der er også en eth1, men jeg har brug for begge, da den skal agere router/firewall mv.
Jeg prøver at installere den nyeste driver og planen er at fyre disse kommandoer af, men det fejler ret tidligt:
1 - Downloaded current driver from :
http://www.realtek.com.tw/downloads/...&GetDown=false
2 - Unpacked on the Desktop
3 - $ sudo mv r8168-8.004.00 /usr/src
4 - $ cd /usr/src/r8168-8.004.00
5 - $ sudo make clean modules
6 - $ sudo make install
7 - $ sudo depmod -a
8 - $ sudo insmod ./src/r8168.ko
9 - $ lsmod -a | grep 8186 #just to check it was there
10 - $ cd /etc/modprobe.d
11 - $ sudo touch blacklist-network
12 - $ vi blacklist-network # add "blacklist r8169" to the file
13 - $ sudo update-initramfs -u #to make the change permanent
14 - reboot
15 - ethtool -i eth0 #to see new driver assigned
Pakken er hentet, pakket ud og lagt i /usr/src
emax@gateway:~$ cd /usr/src/r8168-8.014.00/
emax@gateway:/usr/src/r8168-8.014.00$ sudo make clean modules
make -C src/ clean
make[1]: Entering directory `/usr/src/r8168-8.014.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers Module.markers *.order
make[1]: Leaving directory `/usr/src/r8168-8.014.00/src'
make -C src/ modules
make[1]: Entering directory `/usr/src/r8168-8.014.00/src'
make -C /lib/modules/2.6.24-24-generic/build SUBDIRS=/src modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.24-24-generic'
scripts/Makefile.build:41: /src/Makefile: No such file or directory
make[3]: *** No rule to make target `/src/Makefile'. Stop.
make[2]: *** [_module_/src] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-24-generic'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/r8168-8.014.00/src'
make: *** [modules] Error 2
Tjekker linie 41:
# The filename Kbuild has precedence over Makefile
kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src))
kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile)
include $(kbuild-file) # dette er linie 41
Måske kbuntu fucker noget op?
Okay, måske kan jeg gå videre selvom fejlene er der tænker jeg og forsøger:
emax@gateway:/usr/src/r8168-8.014.00$ sudo make install
make -C src/ install
make[1]: Entering directory `/usr/src/r8168-8.014.00/src'
install -m 744 -c r8168.ko /lib/modules/2.6.24-24-generic/kernel/drivers/net/
install: cannot stat `r8168.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/r8168-8.014.00/src'
make: *** [install] Error 2
den .ko fil kan jeg huske voldte mig problemer sidst (det er en 005 driver der er på nu) og der er også kun en r8169.ko:
emax@gateway:~$ ls -al /lib/modules/2.6.24-24-generic/kernel/drivers/net/r81*
-rw-r--r-- 1 root root 41276 2009-08-22 06:36 /lib/modules/2.6.24-24-generic/kernel/drivers/net/r8169.ko
Men jeg læser flere steder at det skulle være et alias for 8168
emax@gateway:~$ lsmod | grep r8168
emax@gateway:~$ lsmod | grep r8169
r8169 34820 0
Ok væk med det:
emax@gateway:~$ sudo rmmod r8169
men stadig samme fejl på både make clean og make install
I dmesg finder jeg dette: [ 48.083017] udev: renamed network interface eth0 to eth1
Så jeg ved ikke om det så betyder at eth0 leger eth1, men ikke kan, da eth1 allerede findes?
emax@gateway:/usr/src/r8168-8.014.00$ sudo lshw -C network
*-network UNCLAIMED
description: Ethernet controller
product: RTL8111/8168B PCI Express Gigabit Ethernet controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd cap_list
configuration: latency=0
*-network
description: Ethernet interface
product: 3c905B 100BaseTX [Cyclone]
vendor: 3Com Corporation
physical id: 1
bus info: pci@0000:04:01.0
logical name: eth1
version: 64
serial: 00:50:04:46:55:15
size: 100MB/s
capacity: 100MB/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=3c59x duplex=full ip=192.168.0.10 latency=64 link=yes maxlatency=10 mingnt=10 module=3c59x multicast=yes port=MII speed=100MB/s
Så det ser ud som om kortet findes, det er vel ikke stået af, når det ses her? Og når det kan findes af lspci?
emax@gateway:/usr/src/r8168-8.014.00$ lspci | grep -i realtek
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
Så jeg er sgu ikke helt med på, hvordan pokker det skal løses. Any ideas?
--
mvh
Kim Emax
R8168 netkort starter ikke op [LØST]
-
- Indlæg: 81
- Tilmeldt: 21. jul 2009, 23:12
R8168 netkort starter ikke op [LØST]
Senest rettet af emax 6. apr 2010, 09:08, rettet i alt 1 gang.
-
- Indlæg: 81
- Tilmeldt: 21. jul 2009, 23:12
Re: R8168 netkort starter ikke op
Beklager den landede her, jeg læste først beskeden om netkort har sin egen gruppe efter postingen.
-
- Indlæg: 81
- Tilmeldt: 21. jul 2009, 23:12
Re: R8168 netkort starter ikke op
nå men så legede jeg for sjov en sidste gang:
sudo modprobe r8169
emax@gateway:/usr/src/r8168-8.014.00$ lsmod | grep r8169
r8169 34820 0
emax@gateway:/usr/src/r8168-8.014.00$ sudo dmesg | tail
[ 6595.470116] r8169 Gigabit Ethernet driver 2.2LK loaded
[ 6595.470392] ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 17 (level, low) -> IRQ 17
[ 6595.470414] PCI: Setting latency timer of device 0000:03:00.0 to 64
[ 6595.471534] eth0: RTL8168c/8111c at 0xf8e54000, 00:1d:7d:3f:19:c5, XID 3c2000c0 IRQ 220
[ 6595.498327] r8169: eth0: link down
[ 6595.498344] r8169: eth0: link down
[ 6595.499663] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6598.235461] r8169: eth0: link up
[ 6598.236980] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 6609.095572] eth0: no IPv6 routers present
men den får ikke en IP:
emax@gateway:/usr/src/r8168-8.014.00$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1d:7d:3f:19:c5
inet6 addr: fe80::21d:7dff:fe3f:19c5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:248 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24340 (23.7 KB) TX bytes:468 (468.0 B)
Interrupt:220 Base address:0x4000
emax@gateway:/usr/src/r8168-8.014.00$ sudo ifup eth0
ifup: interface eth0 already configured
Nå, prøver sidste ting:
sudo /etc/init.d/networking restart
Og så er der sgu hul igennem:
emax@gateway:/usr/src/r8168-8.014.00$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1d:7d:3f:19:c5
inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.252.0
inet6 addr: fe80::21d:7dff:fe3f:19c5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:765 errors:0 dropped:0 overruns:0 frame:0
TX packets:138 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:79144 (77.2 KB) TX bytes:24618 (24.0 KB)
Interrupt:220 Base address:0x4000
Tak for hjælpen
mvh
Kim Emax
sudo modprobe r8169
emax@gateway:/usr/src/r8168-8.014.00$ lsmod | grep r8169
r8169 34820 0
emax@gateway:/usr/src/r8168-8.014.00$ sudo dmesg | tail
[ 6595.470116] r8169 Gigabit Ethernet driver 2.2LK loaded
[ 6595.470392] ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 17 (level, low) -> IRQ 17
[ 6595.470414] PCI: Setting latency timer of device 0000:03:00.0 to 64
[ 6595.471534] eth0: RTL8168c/8111c at 0xf8e54000, 00:1d:7d:3f:19:c5, XID 3c2000c0 IRQ 220
[ 6595.498327] r8169: eth0: link down
[ 6595.498344] r8169: eth0: link down
[ 6595.499663] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6598.235461] r8169: eth0: link up
[ 6598.236980] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 6609.095572] eth0: no IPv6 routers present
men den får ikke en IP:
emax@gateway:/usr/src/r8168-8.014.00$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1d:7d:3f:19:c5
inet6 addr: fe80::21d:7dff:fe3f:19c5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:248 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24340 (23.7 KB) TX bytes:468 (468.0 B)
Interrupt:220 Base address:0x4000
emax@gateway:/usr/src/r8168-8.014.00$ sudo ifup eth0
ifup: interface eth0 already configured
Nå, prøver sidste ting:
sudo /etc/init.d/networking restart
Og så er der sgu hul igennem:
emax@gateway:/usr/src/r8168-8.014.00$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1d:7d:3f:19:c5
inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.252.0
inet6 addr: fe80::21d:7dff:fe3f:19c5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:765 errors:0 dropped:0 overruns:0 frame:0
TX packets:138 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:79144 (77.2 KB) TX bytes:24618 (24.0 KB)
Interrupt:220 Base address:0x4000
Tak for hjælpen
mvh
Kim Emax