Hello,

Thank you for your advice.
I applyed appropriate patch and one problem disappeared.
But the second issue is still present.

I have two Ethernet NIC with similar chipsets and I would like use first
adapter with RTnet and second onet with standard Linux networking.
But my system hangs a few seconds after bringing up both interfaces.

First a few details about my hardware and software:
   Linux Fedora Core 1 with 2.4.22 kernel
   RTAI 3.0 r 4
   RTnet 0.6.2 with patch
   two NIC compatible with RTL8139 chipset
      (I'll give more info about NICs further)

Following sequence of commnads makes my system not respond:

   # At boot time init automatically brings up networking.
   # Hence I need bring it down.
   service network stop
   # Removing Linux NIC driver installed at boot time.
   rmmod 8139too

   cd /usr/local/rtai/modules

   # Loading required RTAI modules.
   insmod rtai_hal.o
   insmod rtai_ksched.o
   insmod rtai_sem.o    

   cd /usr/local/rtnet/modules

   # Loading required RTnet module.
   insmod rtnet.o

   # Installing RT driver for first NIC.
   insmod 8139too-rt.o cards=1

   # Installing casual driver for second NIC.
   insmod 8139too

   # Bringing up Linux network interface.
   ifconfig eth0 up 192.168.19.12

   cd /usr/local/rtnet/sbin

   # Bringing up RTnet network interface.
   ./rtifconfig rteth0 up 149.156.105.15 netmask 255.255.255.0

A few second after issuing last command system hung (no reaction to any
keyboard action including Num_Lock and Ctrl+Alt+Del).
The time between last command and crash varies from almost instant to
several seconds.

If I load both drivers without bringing up any interfaces system works
properly.

If I load both drivers and bring up only ONE interface (RT xor Linux)
system works properly, too.

But after loading and bringing up BOTH interfaces (RT and Linux) the
problem arises.

Computer behaves in the same manner with newer version of RTnet - 0.7.0.

And one more question.
Maybe it makes little sense but I tryed to use both NICs with RTnet.
I loaded 8139too-rt.o driver for both of them.
But it's possible to bring up only one interface (say rteth0).
When I issue 'rtifconfig' command against second one (rteth1) I get
'Device or resource busy' message.
Is there a way to overcome this?

And this is output of handful of commands issued in my system:

   lsmod | grep 8139

8139too                18120   0  (unused)
8139too-rt             10412   0  (unused)
rtnet                  68680   0  [8139too 8139too-rt]
rtai_sem               20384   0  [8139too-rt rtnet]
rtai_ksched            48057   0  [8139too-rt rtnet rtai_sem]
rtai_hal               13868   1  [8139too-rt rtnet rtai_sem rtai_ksched]
mii                     3604   0  [8139too]

The list above reveals that '8139too' driver (like 8139too-rt) use 'rtnet' module.
Should it?


   cat /proc/iomem

00000000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000f0000-000fffff : System ROM
00100000-1ffeffff : System RAM
  00100000-0026570b : Kernel code
  0026570c-002e4903 : Kernel data
1fff0000-1fff2fff : ACPI Non-volatile Storage
1fff3000-1fffffff : ACPI Tables
d0000000-d7ffffff : VIA Technologies, Inc. VT8377 [KT400 AGP] Host Bridge
d8000000-dfffffff : PCI Bus #01
  d8000000-dfffffff : nVidia Corporation NV11 [GeForce2 MX/MX 400]
e0000000-e1ffffff : PCI Bus #01
  e0000000-e0ffffff : nVidia Corporation NV11 [GeForce2 MX/MX 400]
e2000000-e20000ff : D-Link System Inc RTL8139 Ethernet
  e2000000-e20000ff : rtnet8139too
e2001000-e20010ff : VIA Technologies, Inc. USB 2.0
  e2001000-e20010ff : ehci_hcd
e2002000-e20020ff : Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
  e2002000-e20020ff : 8139too
fec00000-fec00fff : reserved
fee00000-fee00fff : reserved
ffff0000-ffffffff : reserved

   cat /proc/ioports

0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
02f8-02ff : serial(auto)
0376-0376 : ide1
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0cf8-0cff : PCI conf1
d000-d0ff : D-Link System Inc RTL8139 Ethernet
  d000-d0ff : rtnet8139too
d400-d41f : VIA Technologies, Inc. USB
  d400-d41f : usb-uhci
d800-d81f : VIA Technologies, Inc. USB (#2)
  d800-d81f : usb-uhci
dc00-dc1f : VIA Technologies, Inc. USB (#3)
  dc00-dc1f : usb-uhci
e000-e00f : VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C
PIPC Bus Master IDE
  e000-e007 : ide0
  e008-e00f : ide1
e400-e4ff : VIA Technologies, Inc. VT8233/A/8235 AC97 Audio Controller
e800-e8ff : Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
  e800-e8ff : 8139too

   lspci

00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400 AGP] Host
Bridge (rev 80)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
00:0a.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80)
00:10.2 USB Controller: VIA Technologies, Inc. USB (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 06)
00:11.5 Multimedia audio controller: VIA Technologies, Inc.
VT8233/A/8235 AC97 Audio Controller (rev 50)
00:13.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 10)
01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2
MX/MX 400] (rev b2)

   lspci -v

00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400 AGP] Host
Bridge (rev 80)
        Subsystem: Giga-byte Technology GA-7VAX Mainboard
        Flags: bus master, 66Mhz, medium devsel, latency 8
        Memory at d0000000 (32-bit, prefetchable) [size=128M]
        Capabilities: [80] AGP version 3.5
        Capabilities: [c0] Power Management version 2

00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge (prog-if 00
[Normal decode])
        Flags: bus master, 66Mhz, medium devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        Memory behind bridge: e0000000-e1ffffff
        Prefetchable memory behind bridge: d8000000-dfffffff
        Capabilities: [80] Power Management version 2

00:0a.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
        Subsystem: D-Link System Inc: Unknown device 1303
        Flags: bus master, medium devsel, latency 32, IRQ 5
        I/O ports at d000 [size=256]
        Memory at e2000000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2

00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 00
[UHCI])
        Subsystem: Giga-byte Technology GA-7VAX Mainboard
        Flags: bus master, medium devsel, latency 32, IRQ 5
        I/O ports at d400 [size=32]
        Capabilities: [80] Power Management version 2

00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 00
[UHCI])
        Subsystem: Giga-byte Technology GA-7VAX Mainboard
        Flags: bus master, medium devsel, latency 32, IRQ 10
        I/O ports at d800 [size=32]
        Capabilities: [80] Power Management version 2

00:10.2 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 00
[UHCI])
        Subsystem: Giga-byte Technology GA-7VAX Mainboard
        Flags: bus master, medium devsel, latency 32, IRQ 5
        I/O ports at dc00 [size=32]
        Capabilities: [80] Power Management version 2

00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) (prog-if
20 [EHCI])
        Subsystem: Giga-byte Technology GA-7VAX Mainboard
        Flags: bus master, medium devsel, latency 32, IRQ 11
        Memory at e2001000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [80] Power Management version 2

00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
        Subsystem: Giga-byte Technology GA-7VAX Mainboard
        Flags: bus master, stepping, medium devsel, latency 0
        Capabilities: [c0] Power Management version 2

00:11.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 06)
(prog-if 8a [Master SecP PriP])
        Subsystem: Giga-byte Technology GA-7VAX Mainboard
        Flags: bus master, medium devsel, latency 32, IRQ 5
        I/O ports at e000 [size=16]
        Capabilities: [c0] Power Management version 2

00:11.5 Multimedia audio controller: VIA Technologies, Inc.
VT8233/A/8235 AC97 Audio Controller (rev 50)
        Subsystem: Giga-byte Technology GA-7VAX Onboard Audio (Realtek ALC650)
        Flags: medium devsel, IRQ 5
        I/O ports at e400 [size=256]
        Capabilities: [c0] Power Management version 2

00:13.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RT8139
        Flags: bus master, medium devsel, latency 32, IRQ 5
        I/O ports at e800 [size=256]
        Memory at e2002000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2

01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2
MX/MX 400] (rev b2) (prog-if 00 [VGA])
        Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 5
        Memory at e0000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d8000000 (32-bit, prefetchable) [size=128M]
        Expansion ROM at <unassigned> [disabled] [size=64K]
        Capabilities: [60] Power Management version 2
        Capabilities: [44] AGP version 2.0



Andrzej






-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
RTnet-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to