Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hw setup

Status
Not open for further replies.

piti

Technical User
Apr 12, 2001
627
SK
i'm trying to replicate our linux box (mandrake 8.0, kernel 2.4.9)
i don't know why, but our administrator has not installed linuxconf, setup or anything else that i could use to help me through

i ran kudzu and it just removed the hardware which was in the original machine and, i think, did not found the new hardware, but in the /etc/sysconfig/hwconf file, there is all the new hardware listed

what i need is to configure the new nic (realtek rtl-8139 - onboard) to act as eth0

when i was doing the same thing on my home linux box, the kudzu asked me if i want to configure the new nic and maintain the net configuration, it was so easy, so i thought i could do the same without the support of any linux guru on this machine

during boot or when i run ifup i got : delaying eth0 initialization

can anyone help me configure the net card properly?
thanx
 
Hi,



With the rtl8139, there are two drivers available. With the 2.4.x series kernels there is a driver called 8139too based on the original ttl8139 driver by Donald Becker which has been 'updated' by Jeff Garzik. There are some differences of view, shall we say, as to which is best.



If you have the 8139too.o driver module on your system (ls /lib/modules/2.4.9/kernel/drivers/net/ ) then the easiest is to edit /etc/modules.conf to ensure that it says :


alias eth0 8139too



There is almost certainly a way to do this via the 'HardDrak' gui tool ( .)



If you want the 'pure' rtl8139 driver you will have to download and compile/install yourself. See --> .



Hope this helps.
 
well, although i have never done this before, my progress was rather quick, i think

i had no 8139too driver, so i downloaded the pure one
the compilation was sucessful
(gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c rtl8139.c -I/usr/src/linux/include `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`)
according to the info on the web site i also compiled the pci-scan driver

the insmod comand returns:
insmod: QM_MODULES: Function not implemented
(on both drivers)

but the install (install -m 644 pci-scan.o rtl8139.o /lib/modules/2.4.9-grsecurity-1.7.2/kernel/drivers/net/) did not return any problem

so i added
alias eth0 /lib/modules/2.4.9-grsecurity-1.7.2/kernel/drivers/net/rtl8139.o
to the /etc/modules.conf file

but it's stil not working
any idea how to make the network working?

krischrist:
here are the results what you have suggested to do
ifconfig -a returned:
dummy0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST NOARP MTU:1500 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

gre0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1476 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

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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

tunl0 Link encap:IPIP Tunnel HWaddr
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

the pci file looks like this:

PCI devices found:
Bus 0, device 0, function 0:
Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 3).
Prefetchable 32 bit memory at 0xd0000000 [0xd1ffffff].
Bus 0, device 1, function 0:
PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP] (rev 0).
Master Capable. No bursts. Min Gnt=12.
Bus 0, device 7, function 0:
ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 34).
Bus 0, device 7, function 1:
IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 16).
Master Capable. Latency=32.
I/O at 0xe000 [0xe00f].
Bus 0, device 7, function 4:
Host bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 48).
Bus 0, device 11, function 0:
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 16).
IRQ 11.
Master Capable. Latency=32. Min Gnt=32.Max Lat=64.
I/O at 0xec00 [0xecff].
Non-prefetchable 32 bit memory at 0xd7000000 [0xd70000ff].
Bus 1, device 0, function 0:
VGA compatible controller: nVidia Corporation Vanta [NV6] (rev 21).
IRQ 10.
Master Capable. Latency=32. Min Gnt=5.Max Lat=1.
Non-prefetchable 32 bit memory at 0xd4000000 [0xd4ffffff].
Prefetchable 32 bit memory at 0xd2000000 [0xd3ffffff].

and the interrupts:

CPU0
0: 166530 XT-PIC timer
1: 2280 XT-PIC keyboard
2: 0 XT-PIC cascade
14: 1023551 XT-PIC ide0
NMI: 0
ERR: 0
MIS: 0

i don't know what to do with this information
 
if anyone is interrested how to solve this - then the answer is kernel compilation
i had to add the realtek to the netcard modules and "alias eth0 8139too" in the /etc/modules.conf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top