LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-10-2005, 06:09 AM   #1
jagabe
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: Fedora 4
Posts: 11

Rep: Reputation: 0
Question Problem in installing RTL 8139D Ethernet adaptor in FC4


Hai all,
Iam using FC4 along with windows XP. I installed RTL8139D fast ethernet adaptor and its working fine in XP. But iam not able to install the same in Fedora core 4 which is having 2.6.11-1.1369 kernel.
The output that i get with the command lspci and lspci -n is as below. I need ur help and suggestion

The output of lspci is:

[root@localhost ~]# lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
00:10.0 Multimedia audio controller: Yamaha Corporation YMF-724F [DS-1 Audio Controller] (rev 03)
00:12.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:12.1 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:12.3 USB Controller: ALi Corporation USB 2.0 Controller (rev 01)
00:14.0 Ethernet controller: Unknown device 1904:8139 (rev 01)
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 86C326 5598/6326 (rev 92)

[root@localhost ~]# lspci -n
00:00.0 Class 0600: 8086:7190 (rev 03)
00:01.0 Class 0604: 8086:7191 (rev 03)
00:07.0 Class 0601: 8086:7110 (rev 02)
00:07.1 Class 0101: 8086:7111 (rev 01)
00:07.2 Class 0c03: 8086:7112 (rev 01)
00:07.3 Class 0680: 8086:7113 (rev 02)
00:10.0 Class 0401: 1073:000d (rev 03)
00:12.0 Class 0c03: 10b9:5237 (rev 03)
00:12.1 Class 0c03: 10b9:5237 (rev 03)
00:12.3 Class 0c03: 10b9:5239 (rev 01)
00:14.0 Class 0200: 1904:8139 (rev 01)
01:00.0 Class 0300: 1039:6326 (rev 92)
10ec
 
Old 12-10-2005, 08:20 AM   #2
jagabe
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: Fedora 4
Posts: 11

Original Poster
Rep: Reputation: 0
the output of some other commands is as given below

[root@localhost ~]# ifconfig eth0 192.168.1.3
SIOCSIFADDR: No such device
eth0: unknown interface: No such device

[root@localhost ~]# modprobe 8139too media=0x02

[root@localhost ~]# lsmod
Module Size Used by
8139too 30017 0
mii 5441 1 8139too
vfat 13377 1
fat 54621 1 vfat
sermouse 5441 0
parport_pc 28933 1
lp 13001 0
parport 40585 2 parport_pc,lp
autofs4 29253 2
rfcomm 42333 0
l2cap 30661 5 rfcomm
bluetooth 56133 4 rfcomm,l2cap
sunrpc 167813 1
dm_mod 58101 0
md5 4033 1
ipv6 268097 8
uhci_hcd 35152 0
ohci_hcd 26849 0
ehci_hcd 41037 0
i2c_piix4 8657 0
i2c_core 21569 1 i2c_piix4
snd_ymfpci 70913 1
gameport 18633 1 snd_ymfpci
snd_ac97_codec 75961 1 snd_ymfpci
snd_seq_dummy 3653 0
snd_seq_oss 37057 0
snd_seq_midi_event 9153 1 snd_seq_oss
snd_seq 62289 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss 51185 0
snd_mixer_oss 17857 1 snd_pcm_oss
snd_pcm 100169 3 snd_ymfpci,snd_ac97_codec,snd_pcm_oss
snd_opl3_lib 12353 1 snd_ymfpci
snd_timer 33605 4 snd_ymfpci,snd_seq,snd_pcm,snd_opl3_lib
snd_hwdep 9057 1 snd_opl3_lib
snd_page_alloc 9669 2 snd_ymfpci,snd_pcm
snd_mpu401_uart 10049 1 snd_ymfpci
snd_rawmidi 30305 1 snd_mpu401_uart
snd_seq_device 8781 5 snd_seq_dummy,snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmidi
snd 57157 15 snd_ymfpci,snd_ac97_codec,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_opl3_lib,snd_tim er,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 10913 1 snd
floppy 65269 0
ext3 132553 1
jbd 86233 1 ext3

[root@localhost ~]# dhcpd eth0
Internet Systems Consortium DHCP Server V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit isc.org/sw/dhcp/
Can't open /etc/dhcpd.conf: No such file or directory

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.

[root@localhost ~]# dmesg|grep -i eth0

[root@localhost ~]# dmesg|grep -i eth

8139too Fast Ethernet driver 0.9.27
8139too Fast Ethernet driver 0.9.27

[root@localhost ~]# cat /proc/interrupts
CPU0
0: 3665471 XT-PIC timer
1: 3217 XT-PIC i8042
2: 0 XT-PIC cascade
3: 61065 XT-PIC serial
8: 1 XT-PIC rtc
9: 0 XT-PIC ehci_hcd:usb1
10: 5 XT-PIC YMFPCI
11: 0 XT-PIC ohci_hcd:usb2, uhci_hcd:usb4
12: 0 XT-PIC ohci_hcd:usb3
14: 18645 XT-PIC ide0
15: 32092 XT-PIC ide1
NMI: 0
ERR: 0

[root@localhost ~]# cat /proc/iomem
00000000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000dc000-000dffff : reserved
000f0000-000fffff : System ROM
00100000-11fcffff : System RAM
00100000-00375ab5 : Kernel code
00375ab6-004223ff : Kernel data
11fd0000-11ff7fff : ACPI Tables
11ff8000-11ffffff : ACPI Non-volatile Storage
e6c00000-e7cfffff : PCI Bus #01
e7000000-e77fffff : 0000:01:00.0
e8000000-ebffffff : 0000:00:00.0
efe00000-efefffff : PCI Bus #01
efef0000-efefffff : 0000:01:00.0
effe8000-effeffff : 0000:00:10.0
effe8000-effeffff : YMFPCI
efff9000-efff9fff : 0000:00:12.0
efff9000-efff9fff : ohci_hcd
efffa000-efffafff : 0000:00:12.1
efffa000-efffafff : ohci_hcd
efffbe00-efffbeff : 0000:00:14.0
efffbf00-efffbfff : 0000:00:12.3
efffbf00-efffbfff : ehci_hcd
fffc0000-ffffffff : reserved
 
Old 12-10-2005, 08:52 AM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Go through this..
http://www.cs.helsinki.fi/linux/linu...2-46/0485.html

..amit..
 
Old 12-10-2005, 09:29 AM   #4
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Also check out more results at this page..
http://www.google.co.in/linux?q=RTL8...=&start=0&sa=N

..amit..
 
Old 12-10-2005, 12:44 PM   #5
jagabe
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: Fedora 4
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for the link you provided.
I have a doubt with the solution provided in the link. Where they given

I went into drivers/net/8139too.c and added a line

{0x00ec, 0x8139, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 },

to the pci_id table with the 00ec:8139 address, and now the card works
with 8139too.
.

Here in the above lines they given drivers/net/8139too.c. which i think represents /lib/modules/2.6.xx/kernel/drivers/net/8139too.ko i hope so.
But since 8139too.ko is an object file, i dont know how to edit this one.

And there is also no pci_id table in FC4.

guide me please!
 
Old 12-10-2005, 01:36 PM   #6
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
So you need a source file of that.

Download 8139too.c from here & modify as per your needs & compile it.
http://joshua.raleigh.nc.us/docs/lin...ml/286454.html

Or you could refer RTL site for that.. or GOOGLE it.

Go thru this also
https://www.redhat.com/archives/fedo.../msg00282.html
& then read this
https://www.redhat.com/archives/fedo.../msg00283.html

As for an overall view..
Go through this http://www.linuxforum.com/forums/ind...owtopic=113593 for complete story.

..amit..
 
Old 12-11-2005, 03:27 AM   #7
jagabe
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: Fedora 4
Posts: 11

Original Poster
Rep: Reputation: 0
I added the line which i specified below in bold in the source file 8139too_n.c . I got the driver from realtek support team and i here given below a part of that C program.


static struct pci_device_id rtl8139_pci_tbl[] __devinitdata = {
{0x10ec, 0x8139, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 },
{0x1904, 0x8139, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 },
{0x10ec, 0x8138, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139_CB },
{0x1113, 0x1211, PCI_ANY_ID, PCI_ANY_ID, 0, 0, SMC1211TX },
/* {0x1113, 0x1211, PCI_ANY_ID, PCI_ANY_ID, 0, 0, MPX5030 },*/
{0x1500, 0x1360, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DELTA8139 },
{0x4033, 0x1360, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ADDTRON8139 },
{0x1186, 0x1300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DFE538TX },
{0x10ec, 0x8129, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8129 },

/* some crazy cards report invalid vendor ids like
* 0x0001 here. The other ids are valid and constant,
* so we simply don't match on the main vendor id.
*/
{PCI_ANY_ID, 0x8139, 0x10ec, 0x8139, 0, 0, RTL8139 },

{0,}

and i also added 0x1904:0x8139 (which is the ethernet card detail) in the file /usr/share/hwdata/pcitable.

After that based on the instruction from the README file of the driver , i run the following commands. But its shows some error which is shown below

[root@localhost 8139too]# make clean modules

make -C src/ clean
make[1]: Entering directory `/usr/src/8139too/src'
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
make[1]: Leaving directory `/usr/src/8139too/src'
make -C src/ modules
make[1]: Entering directory `/usr/src/8139too/src'
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/usr/src/8139too/src modules
make[2]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
CC [M] /usr/src/8139too/src/8139too_n.o
/usr/src/8139too/src/8139too_n.c: In function ‘rtl8139_init_board’:
/usr/src/8139too/src/8139too_n.c:1087: error: ‘struct pci_dev’ has no member named ‘slot_name’
/usr/src/8139too/src/8139too_n.c:1088: error: ‘struct pci_dev’ has no member named ‘slot_name’
make[3]: *** [/usr/src/8139too/src/8139too_n.o] Error 1
make[2]: *** [_module_/usr/src/8139too/src] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/8139too/src'
make: *** [modules] Error 2

[root@localhost 8139too]# make install
make -C src/ install
make[1]: Entering directory `/usr/src/8139too/src'
install -m 644 -c 8139too.ko /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net/
install: cannot stat `8139too.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/8139too/src'
make: *** [install] Error 2


what i have to do now, guide me.
 
Old 12-12-2005, 05:31 AM   #8
jagabe
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: Fedora 4
Posts: 11

Original Poster
Rep: Reputation: 0
Hello i had recompiled the kernel with the changes as you specified in the soucefile 8139too.c .
After this compilation, now in the partition of 9GB that i alloted for fedora i have only 500Mb remaining.
I restarted my system and now iam getting 2 options in the GRUB Boot loader.They are as given below

Fedora Core(2.6.11-prep) -----> (which is the new one)

Fedora 4 (Existing option)

what i have to do now to remove this extra option and also to free the memory of the partition?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RTL 8029 problem with kernel 2.6.10 ae1 Linux - Networking 1 06-28-2006 01:56 AM
problem installing FC4 please help... golpemortal Fedora - Installation 4 06-28-2005 06:27 AM
rtl 8100 problem orouwk Linux - Hardware 0 01-31-2005 04:31 PM
PPPoE ethernet adaptor gentoo. Nz_Boy_2004 Linux - Networking 1 11-29-2004 12:40 AM
installing a RTL-8169 gigabit NexGen^MarK Linux - Hardware 1 09-15-2004 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration