LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Fails to initialize network card sometimes (https://www.linuxquestions.org/questions/linux-networking-3/fails-to-initialize-network-card-sometimes-133390/)

jwstric2 01-10-2004 09:48 AM

Fails to initialize network card sometimes
 
I am having problems with my Realtek card. When booting it sometimes fails to initialize properly. When this happen I can not even initialize it manually. I have to restart the computer and it most always initializes fine then. Its not a hardware issue I think because it always works fine in my Windows partition.

Red hat 9 2.4.20 kernel
Realtek pci card on a TYAN 2466N-4M board

I am thinking its something simple hopefully. Here's the log when it fails to initialize:

Jan 10 09:36:01 localhost ifup: PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
Jan 10 09:36:01 localhost ifup:
Jan 10 09:36:01 localhost ifup: --- 192.168.1.1 ping statistics ---
Jan 10 09:36:01 localhost ifup: 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2017ms
Jan 10 09:36:01 localhost ifup: , pipe 3
Jan 10 09:36:01 localhost ifup: failed.
Jan 10 09:36:01 localhost network: Bringing up interface eth1: failed

I've seen threads where people's fails to boot on startup then they can manually boot but nothing like this. By the way eth0 was an onboard lan which I could never get working properly under linux or windows. I'll work on that later though.

Thanks,
Jonathan Strickland

g-rod 01-10-2004 10:09 AM

Can you post the output of
dmesg;
lspci -v;

jwstric2 01-10-2004 10:19 AM

dmesg:

Linux version 2.4.20-8 (bhcompile@stripples.devel.redhat.com) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:18:24 EST 2003
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000ca000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fef0000 (usable)
BIOS-e820: 000000001fef0000 - 000000001feff000 (ACPI data)
BIOS-e820: 000000001feff000 - 000000001ff00000 (ACPI NVS)
BIOS-e820: 000000001ff00000 - 000000001ff80000 (usable)
BIOS-e820: 000000001ff80000 - 0000000020000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec04000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
511MB LOWMEM available.
On node 0 totalpages: 130944
zone(0): 4096 pages.
zone(1): 126848 pages.
zone(2): 0 pages.
Kernel command line: ro root=LABEL=/ hdd=ide-scsi
ide_setup: hdd=ide-scsi
Initializing CPU#0
Detected 1533.392 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 3060.53 BogoMIPS
Memory: 510892k/523776k available (1312k kernel code, 10256k reserved, 996k data, 128k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0383fbff c1cbfbff 00000000 00000000
CPU: Common caps: 0383fbff c1cbfbff 00000000 00000000
CPU: AMD Athlon(tm) MP 1800+ stepping 02
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfd7d0, last bus=2
PCI: Using configuration type 1
PCI: Probing PCI hardware
BIOS failed to enable PCI standards compliance, fixing this error.
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
pty: 2048 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS0 at 0x03f8 (irq = 4) is a 16550A
ttyS1 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10e
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
NET4: Frame Diverter 0.46
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00beta-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
AMD7441: IDE controller at PCI slot 00:07.1
AMD7441: chipset revision 4
AMD7441: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
hda: WDC WD136AA, ATA DISK drive
hdb: TOSHIBA DVD-ROM SD-M1212, ATAPI CD/DVD-ROM drive
blk: queue c03be900, I/O limit 4095Mb (mask 0xffffffff)
hdc: WDC WD800BB-00CAA0, ATA DISK drive
hdd: RW-241040, ATAPI CD/DVD-ROM drive
blk: queue c03bed60, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: host protected area => 1
hda: 26564832 sectors (13601 MB) w/2048KiB Cache, CHS=26354/16/63, UDMA(33)
hdc: host protected area => 1
hdc: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=155061/16/63, UDMA(100)
ide-floppy driver 0.99.newide
Partition check:
hda: hda1 hda2 hda3 hda4
hdc: hdc1 hdc2
ide-floppy driver 0.99.newide
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 146k freed
VFS: Mounted root (ext2 filesystem).
Journalled Block Device driver loaded
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 128k freed
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xe0849000, IRQ 10
usb-ohci.c: usb-02:00.0, Advanced Micro Devices [AMD] AMD-768 [Opus] USB
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 4 ports detected
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,2), internal journal
Adding Swap: 522104k swap-space (priority -1)
hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x84 { DriveStatusError BadCRC }
hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x84 { DriveStatusError BadCRC }
hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x84 { DriveStatusError BadCRC }
hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x84 { DriveStatusError BadCRC }
hdd: DMA disabled
ide1: reset: success
hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x84 { DriveStatusError BadCRC }
hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x84 { DriveStatusError BadCRC }
hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x84 { DriveStatusError BadCRC }
hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x84 { DriveStatusError BadCRC }
ide1: reset: success
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide1(22,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide1(22,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
hdb: ATAPI 32X DVD-ROM drive, 256kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: Model: RW-241040 Rev: 1.02
Type: CD-ROM ANSI SCSI revision: 02
spurious 8259A interrupt: IRQ7.
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
parport0: irq 7 detected
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
ip_tables: (C) 2000-2002 Netfilter core team
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
See Documentation/networking/vortex.txt
02:08.0: 3Com PCI 3c905C Tornado at 0x3400. Vers LK1.1.18-ac
00:e0:81:20:e0:ce, IRQ 10
product code 0000 rev 00.6 date 00-00-00
Internal config register is 1800000, transceivers 0xa.
8K byte-wide RAM 5:3 Rx:Tx split, autoselect/Autonegotiate interface.
MII transceiver found at address 24, status 7809.
Enabling bus-master transmits and whole-frame receives.
02:08.0: scatter/gather enabled. h/w checksums enabled
divert: allocating divert_blk for eth0
8139too Fast Ethernet driver 0.9.26
divert: allocating divert_blk for eth1
eth1: RealTek RTL8139 Fast Ethernet at 0xe08e9000, 00:40:f4:4a:3b:7a, IRQ 5
eth1: Identified 8139 chip type 'RTL-8139C'
eth1: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1.
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
parport0: irq 7 detected
lp0: using parport0 (polling).
lp0: console ready
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected AMD 760MP chipset
agpgart: AGP aperture is 64M @ 0xf4000000
[drm] AGP 0.99 on AMD Irongate @ 0xf4000000 64MB
[drm] Initialized r128 2.2.0 20010917 on minor 0
cdrom: This disc doesn't have any tracks I recognize!


lspci -v:

00:00.0 Host bridge: Advanced Micro Devices [AMD] AMD-760 MP [IGD4-2P] System Controller (rev 11)
Flags: bus master, 66Mhz, medium devsel, latency 32
Memory at f4000000 (32-bit, prefetchable) [size=64M]
Memory at f0400000 (32-bit, prefetchable) [size=4K]
I/O ports at 1010 [disabled] [size=4]
Capabilities: <available only to root>

00:01.0 PCI bridge: Advanced Micro Devices [AMD] AMD-760 MP [IGD4-2P] AGP Bridge (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 99
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 00002000-00002fff
Memory behind bridge: f0000000-f00fffff
Prefetchable memory behind bridge: f8000000-fbffffff

00:07.0 ISA bridge: Advanced Micro Devices [AMD] AMD-768 [Opus] ISA (rev 05)
Flags: bus master, 66Mhz, medium devsel, latency 0

00:07.1 IDE interface: Advanced Micro Devices [AMD] AMD-768 [Opus] IDE (rev 04) (prog-if 8a [Master SecP PriP])
Subsystem: Advanced Micro Devices [AMD] AMD-768 [Opus] IDE
Flags: bus master, medium devsel, latency 0
I/O ports at f000 [size=16]

00:07.3 Bridge: Advanced Micro Devices [AMD] AMD-768 [Opus] ACPI (rev 03)
Subsystem: Advanced Micro Devices [AMD] AMD-768 [Opus] ACPI
Flags: medium devsel

00:10.0 PCI bridge: Advanced Micro Devices [AMD] AMD-768 [Opus] PCI (rev 05) (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 64
Bus: primary=00, secondary=02, subordinate=02, sec-latency=168
I/O behind bridge: 00003000-00003fff
Memory behind bridge: f0100000-f01fffff

01:05.0 VGA compatible controller: ATI Technologies Inc Rage 128 RF/SG AGP (prog-if 00 [VGA])
Subsystem: ATI Technologies Inc Magnum/Xpert128/X99/Xpert2000
Flags: bus master, stepping, fast Back2Back, 66Mhz, medium devsel, latency 66, IRQ 11
Memory at f8000000 (32-bit, prefetchable) [size=64M]
I/O ports at 2000 [size=256]
Memory at f0000000 (32-bit, non-prefetchable) [size=16K]
Expansion ROM at <unassigned> [disabled] [size=128K]
Capabilities: <available only to root>

02:00.0 USB Controller: Advanced Micro Devices [AMD] AMD-768 [Opus] USB (rev 07) (prog-if 10 [OHCI])
Subsystem: Advanced Micro Devices [AMD] AMD-768 [Opus] USB
Flags: bus master, medium devsel, latency 64, IRQ 10
Memory at f0100000 (32-bit, non-prefetchable) [size=4K]

02:04.0 Multimedia audio controller: Ensoniq ES1370 [AudioPCI] (rev 01)
Subsystem: Unknown device 4942:4c4c
Flags: bus master, slow devsel, latency 64, IRQ 9
I/O ports at 3480 [size=64]

02:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: AOPEN Inc.: Unknown device 0027
Flags: bus master, medium devsel, latency 64, IRQ 5
I/O ports at 3000 [size=256]
Memory at f0101000 (32-bit, non-prefetchable) [size=256]
Capabilities: <available only to root>

02:08.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
Subsystem: Tyan Computer: Unknown device 2466
Flags: bus master, medium devsel, latency 80, IRQ 10
I/O ports at 3400 [size=128]
Memory at f0101400 (32-bit, non-prefetchable) [size=128]
Expansion ROM at <unassigned> [disabled] [size=128K]
Capabilities: <available only to root>

g-rod 01-10-2004 10:31 AM

It looks like it is finding it corretly. What is the output of
cat /etc/sysconfig/network-scripts/ifcfg-eth1;
cat /etc/modules.conf;
cat /etc/redhat-release;
lsmod;
ifconfig -a;

jwstric2 01-10-2004 10:44 AM

cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=dhcp
TYPE=Ethernet
USERCTL=no
PEERDNS=no

more /etc/modules.conf

alias usb-controller usb-ohci
alias char-major-188 off
alias eth0 3c59x
alias eth1 8139too
#SOUND
#DISABLED FOR NOW BECAUSE OF LOCKING UP ERRORS: TO BE FIXED LATA
#alias sound-service-0-3 es1370
#alias sound-service-1-0 es1370
#alias sound-slot-0 es1370
#post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
#pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :

more /etc/redhat-release
Red Hat Linux release 9 (Shrike)

/sbin/lsmod
Module Size Used by Not tainted
soundcore 6276 0 (autoclean)
r128 87288 1
agpgart 46752 3
parport_pc 18756 1 (autoclean)
lp 8868 0 (autoclean)
parport 36480 1 (autoclean) [parport_pc lp]
autofs 12948 0 (autoclean) (unused)
8139too 17896 1
mii 3944 0 [8139too]
3c59x 30416 0
ipt_REJECT 3896 6 (autoclean)
iptable_filter 2380 1 (autoclean)
ip_tables 14648 2 [ipt_REJECT iptable_filter]
sg 35980 0 (autoclean)
sr_mod 17912 0 (autoclean)
ide-scsi 11984 0
scsi_mod 106200 3 [sg sr_mod ide-scsi]
ide-cd 35196 0
cdrom 33472 0 [sr_mod ide-cd]
keybdev 2880 0 (unused)
mousedev 5428 1
hid 21700 0 (unused)
input 5792 0 [keybdev mousedev hid]
usb-ohci 21160 0 (unused)
usbcore 77696 1 [hid usb-ohci]
ext3 69984 4
jbd 51220 4 [ext3]

/sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:E0:81:20:E0:CE
BROADCAST MULTICAST 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:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0x3400

eth1 Link encap:Ethernet HWaddr 00:40:F4:4A:3B:7A
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4192 errors:0 dropped:0 overruns:0 frame:0
TX packets:2957 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2088974 (1.9 Mb) TX bytes:555479 (542.4 Kb)
Interrupt:5 Base address:0x9000

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:48268 errors:0 dropped:0 overruns:0 frame:0
TX packets:48268 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3315797 (3.1 Mb) TX bytes:3315797 (3.1 Mb)

I've been trying to reproduce the error with no luck, everything looks good i thought.

g-rod 01-10-2004 11:01 AM

Now I confused. Are you able to ping the router. It looks like eth1 is configured correctly and not showing any errors. Eth0 looks good to, but does not have a IP assigned to it.
Are you still have the trouble that you initial reported?
Sorry I reread you original post. Forget about what I asked above. I understand it does not always happen. Net time it happens try restarting the network and see if you still have trouble?
Get the output from
lsmod;
ifconfig -a;
lspvi -v;
dmesg;
/etc/init.d/network restart;
The test the network if it works get the output of
lsmod;
ifconfig -a;

jwstric2 01-10-2004 11:06 AM

Right now it works good. The trouble is sometimes on bootup, it fails to initialize eth1. When it does fail to intilaize it I can not initialize it manually either. Most threads I have seen point to troubles in the srcipt that initalize eth1 but users are able to usally do it manually or change the scripts. I was curious as to why when Eth1 will not initialize at bootup I can not intialize it manually either. I have to restart the computer and everything usally initializes fine.

Eth0 is not being used at this moment.

g-rod 01-10-2004 11:15 AM

How are you trying to manually starting the network?

Before restarting check to see if the module was loaded and its used count is not 0.
lsmod | grep 8139;
Try
rmmod 8139too;
/etc/init.d/network restart;

What is the output of /etc/sysconfig-scripts/ifcfg-eth0;

jwstric2 01-10-2004 11:20 AM

thanks g-rod, i'l;l end this thread right now until I can reproduce this error again, now its off to work on getting my sound card working right with linux.


All times are GMT -5. The time now is 11:10 PM.