|
||||||||
|
|
#1
|
|
hai,
recently i have installed a new NIC with chipset "RTL8139D". i have seen modules named "8139cp.ko" & "8139too.ko" in my "/lib/modules/2.6.8-2-386/kernel/drivers/net" directory of Debian Sarge. "TLDP ethernet how to" told me RTL8139 is supported. but this is what i have: ----------------------------------------------------------------------------------------------------------- debian:/home/hurd# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:13 4:C4:BA:F3inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::213:d4ff:fec4:baf3/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:420 errors:0 dropped:0 overruns:0 frame:0 TX packets:430 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:326657 (319.0 KiB) TX bytes:54292 (53.0 KiB) Interrupt:201 Base address:0xa800 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:17559 errors:0 dropped:0 overruns:0 frame:0 TX packets:17559 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2910200 (2.7 MiB) TX bytes:2910200 (2.7 MiB) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) debian:/home/hurd# -------------------------------------------------------------------------------------------------------------- On-Board ethernet is working fine but i wanted to connect my ADSL modem to "eth1". where is my "eth1" card? how can i install it? "arnuld" arnuld |
|
#2
|
|||
|
|||
|
On 2006-09-14, arnuld <(E-Mail Removed)> wrote:
> where is my "eth1" card? dmesg | grep eth1 will tell you if it's recognized or not, if it is, ifconfig eth2 your.ip.address.here up will activate it. Davide -- Linux: Fast Pane Relief -- From a Slashdot.org post |
|
#3
|
|||
|
|||
|
Hello,
arnuld a écrit : > > recently i have installed a new NIC with chipset "RTL8139D". i have > seen modules named "8139cp.ko" & "8139too.ko" in my > "/lib/modules/2.6.8-2-386/kernel/drivers/net" directory of Debian > Sarge. "TLDP ethernet how to" told me RTL8139 is supported. but this is > what i have: > > debian:/home/hurd# ifconfig -a [no eth1] > > where is my "eth1" card? how can i install it? First, check that the RTL8139 adapter is detected at PCI level with lspci, /proc/ioports or /proc/iomem. Then try to load the module : # modprobe 8139too If it works correctly, an interface eth1 should be created for the NIC. In order to load the module at boot time, if you don't use hotplug (I guess you don't, else hotplug should have detected the NIC and loaded the module automagically), add a line containing "8139too" into the file /etc/modules. |
|
#4
|
|||
|
|||
|
Pascal Hambourg wrote:
> > debian:/home/hurd# ifconfig -a > [no eth1] > First, check that the RTL8139 adapter is detected at PCI level with > lspci, /proc/ioports or /proc/iomem. Then try to load the module : this is the output of "lspci": debian:/home/hurd# lspci 0000:00:00.0 Host bridge: VIA Technologies, Inc.: Unknown device 0204 0000:00:00.1 Host bridge: VIA Technologies, Inc.: Unknown device 1204 0000:00:00.2 Host bridge: VIA Technologies, Inc.: Unknown device 2204 0000:00:00.3 Host bridge: VIA Technologies, Inc.: Unknown device 3204 0000:00:00.4 Host bridge: VIA Technologies, Inc.: Unknown device 4204 0000:00:00.7 Host bridge: VIA Technologies, Inc.: Unknown device 7204 0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800 South] 0000:00:0b.0 Ethernet controller: Unknown device 1904:2031 (rev 01) 0000:00:0f.0 IDE interface: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80) 0000:00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) 0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) 0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) 0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) 0000:00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) 0000:00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86) 0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [K8T800 South] 0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60) 0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78) 0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge 0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge 0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge 0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge 0000:01:00.0 VGA compatible controller: VIA Technologies, Inc.: Unknown device 3108 (rev 01) debian:/home/hurd# > # modprobe 8139too it doesnt do anything. cursor simply goes to next line & if then i try "ifconfig -a" output remains the same as i gave earlier, i mean no "eth1". i tried both "8139cp" & "8139too". > If it works correctly, an interface eth1 should be created for the NIC. > In order to load the module at boot time, if you don't use hotplug (I > guess you don't, else hotplug should have detected the NIC and loaded > the module automagically), add a line containing "8139too" into the file > /etc/modules. |
|
#5
|
|||
|
|||
|
arnuld a écrit :
> >>First, check that the RTL8139 adapter is detected at PCI level with >>lspci, /proc/ioports or /proc/iomem. Then try to load the module : > > this is the output of "lspci": > > debian:/home/hurd# lspci [...] > 0000:00:0b.0 Ethernet controller: Unknown device 1904:2031 (rev 01) [...] >># modprobe 8139too > > it doesnt do anything. It looks like your ethernet card does not have the standard PCI ID for a RTL8139, which is 10EC:8139, nor any known non standard PCI ID. So neither lspci nor the kernel module identify it. You can try to add this PCI ID in the kernel source and recompile the module. In drivers/net/8139too.c, within the rtl8139_pci_tbl definition, you need to add the following line : {0x1904, 0x2031, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, |
|
#6
|
|||
|
|||
|
Pascal Hambourg wrote:
> > 0000:00:0b.0 Ethernet controller: Unknown device 1904:2031 (rev 01) > > It looks like your ethernet card does not have the standard PCI ID for a > RTL8139, which is 10EC:8139, nor any known non standard PCI ID. So > neither lspci nor the kernel module identify it. You can try to add this > PCI ID in the kernel source and recompile the module. > > In drivers/net/8139too.c, within the rtl8139_pci_tbl definition, you > need to add the following line : > > {0x1904, 0x2031, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, i am pretty weak at technical aspects but do you want to say that i need to "recompile the kernel" ? 2nd, my distro Debian Sarge does not have any kernel-source (earlier i sued "Fedora Core" , it has the source & keeps it in one of the directories directories by default) "arnuld" |
|
#7
|
|||
|
|||
|
arnuld a écrit :
> > i am pretty weak at technical aspects but do you want to say that i > need to "recompile the kernel" ? Yes, or at least recompile the module 8139too.ko. As an alternate (and somehow ugly) method, you could replace an existing PCI ID (preferably not the standard one 10ec:8139, you will find the list in 8139too.c) with the PCI ID of your card in the module binary file with a hexadecimal editor. Make a copy of the original 8139too.ko before you try this. > 2nd, my distro Debian Sarge does not have any kernel-source Debian provides packaged kernel sources. In sarge the package for the 2.6 kernel source is kernel-source-2.6.8. I assume your current binary kernel is a 2.6.8 from Debian. See http://packages.debian.org/stable/de...l-source-2.6.8 The package installs a tarball kernel-source-2.6.8.tar.bz2 containing the source files. If you are not comfortable with building kernels, you may try the alternate method with an hex editor. |
|
#8
|
|||
|
|||
|
Pascal Hambourg wrote:
> Yes, or at least recompile the module 8139too.ko. > As an alternate (and somehow ugly) method, you could replace an existing > PCI ID (preferably not the standard one 10ec:8139, you will find the > list in 8139too.c) with the PCI ID of your card in the module binary > file with a hexadecimal editor. Make a copy of the original 8139too.ko > before you try this. i dont have "8139too.c" on my sytsem, all i have are ".ko" files in my "/lib/modules/2.6.8-2-386/kernel/drivers/net/" directory. where i can find ".c" files? > Debian provides packaged kernel sources. In sarge the package for the > 2.6 kernel source is kernel-source-2.6.8. I assume your current binary > kernel is a 2.6.8 from Debian. > See http://packages.debian.org/stable/de...l-source-2.6.8 > The package installs a tarball kernel-source-2.6.8.tar.bz2 containing > the source files. ok, i have 2.6.8-2 kernel, the link you provided points to 2.6.8-4, anyway i will find the kernel-source myself, not a big issue. > If you are not comfortable with building kernels, you may try the > alternate method with an hex editor. i am not comfortable becuase 10-11 months ago i recompiled the kernel of Fedora Core & my system became tooooo slow to respond & it took 8.5 hours to recompile the kernel. that is why i fear BUT your "Hex edit" method looks as intuitive as recompiling the kernel. thanks for your precious time. "arnuld" |
|
#9
|
|||
|
|||
|
arnuld <(E-Mail Removed)> wrote:
> Pascal Hambourg wrote: > i dont have "8139too.c" on my sytsem, all i have are ".ko" files in my > "/lib/modules/2.6.8-2-386/kernel/drivers/net/" directory. where i can > find ".c" files? after installing the kernel-source you will find a tarball in /usr/src. After unpacking create a symlink: ln -s kernel-source-2.6.whatever linux The file is in linux/drivers/net/ Also note that on a Debian system it is best to use make-kpkg to actually build the kernel. That way you get a self compiled debian package which you can install with the usual tools. So you want to do something like this: # edit the file cd /usr/src/linux/ # if desired run make menuconfig to customize things - don't for now make-kpkg --revision custom.1 kernel_image make-kpkg --revision custom.1 modules_image If nothing breaks, you will now have your new kernel: /usr/src/kernel-image-2.6.8_custom.1_i386.deb and possibly some other debs for additional modules. install: dpkg -i kernel-image-2.6.8_custom.1_i386.deb dpkg -i *-modules-2.6.8+custom.1_i386.deb or whatever your exact names are. > i am not comfortable becuase 10-11 months ago i recompiled the kernel > of Fedora Core & my system became tooooo slow to respond & it took 8.5 > hours to recompile the kernel. Wow! What kind of hardware was that? Even my old P3-800 notebook is substantially faster than that... cu Philipp -- Dr. Philipp Pagel Tel. +49-8161-71 2131 Dept. of Genome Oriented Bioinformatics Fax. +49-8161-71 2186 Technical University of Munich http://mips.gsf.de/staff/pagel |
|
#10
|
|||
|
|||
|
Pascal Hambourg wrote:
> Yes, or at least recompile the module 8139too.ko. > As an alternate (and somehow ugly) method, you could replace an existing > PCI ID (preferably not the standard one 10ec:8139, you will find the > list in 8139too.c) with the PCI ID of your card in the module binary > file with a hexadecimal editor. Make a copy of the original 8139too.ko > before you try this. i put a copy of "8139too.ko" on my Desktop & opened it in "Khexedit" & then in "ghex2" & it looked quite weird to me. i never used any hex-editor before, anyway i tried "Khexedit" documentation but still i am not able to compare this ".ko" file with the PCI IDs i have in ".c" file & *where* replace with *what*? can you help with something. > See http://packages.debian.org/stable/de...l-source-2.6.8 > The package installs a tarball kernel-source-2.6.8.tar.bz2 containing > the source files. i downloaded the 34MB kernel-source from this link in ".deb" form. > If you are not comfortable with building kernels, you may try the > alternate method with an hex editor. i prefer it but it is completely alien to me, i cant even understand the meaning of ".ko" file opened in a hex-editor "arnuld" |
![]() |
| Tags |
| eth1, trouble |
| Thread Tools | |
| Display Modes | |
|
|