network setup

Hi,

I installed QNX 6.2.0 NC and I tried to setup the network using DHCP.
This is working fine for local websites.
But as soon as I try to have access to a webpage outside the local ring I
have problems.
Is there a firewall that needs configuration?
Is this related to IP4 vs. IP6 ?
Is this a bug, or is there a workaround available?

Thanks.

“jdl” <fkroket@mail.be> wrote in message news:b4l14h$7bj$1@inn.qnx.com

Hi,

I installed QNX 6.2.0 NC and I tried to setup the network using DHCP.
This is working fine for local websites.
But as soon as I try to have access to a webpage outside the local ring I
have problems.
Is there a firewall that needs configuration?
Is this related to IP4 vs. IP6 ?
Is this a bug, or is there a workaround available?

Check with config utility if you were given a gateway, if you were then it
is possible there is a firewall that is not letting you go through. Check
with you network admin.

Thanks.

Check with config utility if you were given a gateway, if you were then it
is possible there is a firewall that is not letting you go through.
Check
with you network admin.

Yes, there is a gateway and no, there is no firewall.
I’m able to access some websites through the gateway, but not all of them.
nslookup is working, so I’m able to deduce the IP address of the none
working websites.
traceroute is also working up to a certain level (somewhere between 15 and
20 steps)
and then is not responding anymore (busy loop?)

Someone else who has experienced this problem before?
Or has a clue to perform some tests?

Thanks,
Jo

What to look at next?

This PCMCIA card is supposed to be a generic Ne2000.

It was not auto detected so I attempted to hand configure everything.
Basically it doesn’t seem to be receiving anything (or sending anything
out either, as indicated by the TX light on a hub.)

Here is everything I did to test it and the results.
I tried to think of everything to look at. If I forgot something please
let me know.

pin

Sock Func Type Flags PID Base Size IRQ
1 0 Network C—I-±–X----- 65551 0x200 32 7
1 Empty ----MF---------- None
2 Empty ----MF---------- None
2 Empty ----MF---------- None

pin cis

Socket : 1 - Function : 0
Device : Function Specific 0k
Attribute Device : EEPROM 0k
PC Card function : Network LAN Adapter
POST : 0x3
Card tuple version : 4.01
Manufacturer : PCMCIA
Name of Product : Ethernet Card
Add’nl info (lot #) :
Add’nl info (programming):
Link Target : ‘CIS’
Configuration base/st : 0x3f8 0-subtuples
Configuration Index : 0x20 Default
Interface : MWait Req’d, I/O
Feature : 0x1d
Timing Info : Wait
IO Space : Bus16 Bus8 0x0-0x1F(5 lines)
IRQ Description : Level 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Configuration Index : 0x20
Feature : 0x8
IO Space : Bus16 0x300-0x31F
Configuration Index : 0x21
Feature : 0x8
IO Space : Bus16 0x320-0x33F
Configuration Index : 0x22
Feature : 0x8
IO Space : Bus16 0x340-0x35F
Configuration Index : 0x23
Feature : 0x8
IO Space : Bus16 0x360-0x37F
Manufacturer ID : 0x8a01 0x100

io-net -ptcpip -d ne2000 ioport=0x200,irq=7 &

pidin -Pio-net

pid tid name prio STATE code data stack
552976 1 sbin/io-net 10o SIGWAITINFO 56K 96K 8192(516K)*
552976 2 sbin/io-net 10o RECEIVE 56K 96K 4096(68K)
552976 3 sbin/io-net 10o RECEIVE 56K 96K 4096(68K)
552976 4 sbin/io-net 10o RECEIVE 56K 96K 4096(68K)
552976 5 sbin/io-net 20o RECEIVE 56K 96K 4096(132K)
ldqnx.so.2 @b0300000 300K 16K
npm-tcpip.so @b8200000 220K 52K
devn-ne2000.so @b8244000 52K 8192

netstat -in

Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Colls
lo0 33220 0 0 0 0 0
lo0 33220 127 127.0.0.1 0 0 0 0 0
en0 1500 00:a0:0c:14:d1:2d 0 0 2 0 0
en0 1500 192.168.2 192.168.2.7 0 0 2 0 0

netstat -rn

Routing tables

Internet:
Destination Gateway Flags Refs Use Mtu Interface
default 192.168.2.5 UG 0 0 1500 en0
127.0.0.1 127.0.0.1 UH 0 0 33220 lo0
192.168.2 link#2 UC 1 0 1500 en0
192.168.2.5 link#2 UHL 1 0 1500 en0

ping 192.168.2.5

PING 192.168.2.5 (192.168.2.5): 56 data bytes
ping: wrote 192.168.2.5 64 chars, ret=-1
ping: wrote 192.168.2.5 64 chars, ret=-1

— 192.168.2.5 ping statistics —
8 packets transmitted, 0 packets received, 100% packet loss

#nicinfo
NE2000 Ethernet Controller
Physical Node ID … 00A00C 14D12D
Current Physical Node ID … 00A00C 14D12D
Media Rate … 10.00 Mb/s half-duplex UTP
MTU … 1514
Lan … 0
I/O Port Range … 0x200 → 0x21E
Hardware Interrupt … 0x7
Promiscuous … Disabled
Multicast … Enabled

Total Packets Txd OK … 0
Total Packets Txd Bad … 0
Total Packets Rxd OK … 0
Total Rx Errors … 0

Total Bytes Txd … 360
Total Bytes Rxd … 0

Tx Collision Errors … 0
Tx Collisions Errors (aborted) … 0
Carrier Sense Lost on Tx … 0
FIFO Underruns During Tx … 0
Tx deferred … 0
Out of Window Collisions … 0
FIFO Overruns During Rx … 0
Alignment errors … 0
CRC errors … 0

pci -v

PCI version = 2.10

Class = Bridge (Host/PCI)
Vendor ID = 8086h, Intel Corporation
Device ID = 7190h, 82443BX/ZX 440BX/ZX AGPset Host Bridge
PCI index = 0h
Class Codes = 060000h
Revision ID = 2h
Bus number = 0
Device number = 0
Function num = 0
Status Reg = 2210h
Command Reg = 106h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 40h
Cache Line Size= 0h
Max Lat = 0ns
Min Gnt = 0ns
PCI Int Pin = NC
Interrupt line = 0
Capabilities Pointer = a0h
Capability ID = 2h
Capabilities = 10h - 1f000202h

Class = Bridge (PCI/PCI)
Vendor ID = 8086h, Intel Corporation
Device ID = 7191h, 82443BX/ZX 440BX/ZX AGPset PCI-to-PCI bridge
PCI index = 0h
Class Codes = 060400h
Revision ID = 2h
Bus number = 0
Device number = 1
Function num = 0
Status Reg = 220h
Command Reg = 1fh
Header type = 1h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 80h
Cache Line Size= 0h
Primary Bus Number = 0h
Secondary Bus Number = 1h
Subordinate Bus Number = 1h
Secondary Latency Timer = 40h
I/O Base = e0h
I/O Limit = e0h
Secondary Status = 22a0h
Memory Base = fd00h
Memory Limit = fed0h
Prefetchable Memory Base = fff0h
Prefetchable Memory Limit= 0h
Prefetchable Base Upper 32 Bits = 0h
Prefetchable Limit Upper 32 Bits = 0h
I/O Base Upper 16 Bits = ffffh
I/O Limit Upper 16 Bits = ffffh
Bridge Control = 140ns
PCI Int Pin = NC
Interrupt line = 0

Class = Bridge (CardBus)
Vendor ID = 104ch, Texas Instruments
Device ID = ac17h, PCI1220 CardBus Controller
PCI index = 0h
Class Codes = 060700h
Revision ID = 2h
Bus number = 0
Device number = 4
Function num = 0
Status Reg = 210h
Command Reg = 7h
Header type = 2h Multi-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 20h
Cache Line Size= 0h
ExCA Base Address = ffeff000h
Capabilities Pointer = ffh
Secondary Status = ffffh
Primary Bus Number = 0
Secondary Bus Number = 2
Subordinate Bus Number = 2
Secondary Latency Timer = 20h
Memory Base 0 = 0h
Memory Limit 0 = 0h
Memory Base 1 = 0h
Memory Limit 1 = 0h
I/O Base 0 = 0h
I/O Limit 0 = 0h
I/O Base 1 = 0h
I/O Limit 1 = 0h
PCI Int Pin = 1
PCI Int Pin = INT A
Interrupt line = no connection
Bridge Control = 7c0h
Subsystem Vendor ID = 1028h
Subsystem ID = 85h
Legacy Mode Base Address = 3e0h
System Control = 844b021h
Retry Status = c0h
Card Control = 1h
Device Control = 66h
Buffer Control = 60h
Socket DMA Register 0 = 0h
Socket DMA Register 1 = 0h

Class = Bridge (CardBus)
Vendor ID = 104ch, Texas Instruments
Device ID = ac17h, PCI1220 CardBus Controller
PCI index = 1h
Class Codes = 060700h
Revision ID = 2h
Bus number = 0
Device number = 4
Function num = 1
Status Reg = 210h
Command Reg = 7h
Header type = 2h Multi-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 20h
Cache Line Size= 0h
ExCA Base Address = ffefe000h
Capabilities Pointer = ffh
Secondary Status = ffffh
Primary Bus Number = 0
Secondary Bus Number = 3
Subordinate Bus Number = 3
Secondary Latency Timer = 20h
Memory Base 0 = 0h
Memory Limit 0 = 0h
Memory Base 1 = 0h
Memory Limit 1 = 0h
I/O Base 0 = 0h
I/O Limit 0 = 0h
I/O Base 1 = 0h
I/O Limit 1 = 0h
PCI Int Pin = 2
PCI Int Pin = INT B
Interrupt line = 11
Bridge Control = 7c0h
Subsystem Vendor ID = 1028h
Subsystem ID = 85h
Legacy Mode Base Address = 3e0h
System Control = 8449021h
Retry Status = c0h
Card Control = 0h
Device Control = 66h
Buffer Control = 60h
Socket DMA Register 0 = 0h
Socket DMA Register 1 = 0h

Class = Bridge (Unknown)
Vendor ID = 8086h, Intel Corporation
Device ID = 7110h, 82371AB/EB PIIX4 ISA Bridge
PCI index = 0h
Class Codes = 068000h
Revision ID = 2h
Bus number = 0
Device number = 7
Function num = 0
Status Reg = 280h
Command Reg = fh
Header type = 0h Multi-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 0h
Cache Line Size= 0h
Max Lat = 0ns
Min Gnt = 0ns
PCI Int Pin = NC
Interrupt line = 0

Class = Mass Storage (IDE)
Vendor ID = 8086h, Intel Corporation
Device ID = 7111h, 82371AB/EB PIIX4 IDE Controller
PCI index = 0h
Class Codes = 010180h
Revision ID = 1h
Bus number = 0
Device number = 7
Function num = 1
Status Reg = 280h
Command Reg = 5h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 40h
Cache Line Size= 0h
PCI IO Address = fcd0h length 16 enabled
Max Lat = 0ns
Min Gnt = 0ns
PCI Int Pin = NC
Interrupt line = 0

Class = Serial Bus (Universal Serial Bus)
Vendor ID = 8086h, Intel Corporation
Device ID = 7112h, 82371AB/EB PIIX4 USB Interface
PCI index = 0h
Class Codes = 0c0300h
Revision ID = 1h
Bus number = 0
Device number = 7
Function num = 2
Status Reg = 280h
Command Reg = 1h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 40h
Cache Line Size= 0h
PCI IO Address = fce0h length 32 enabled
Max Lat = 0ns
Min Gnt = 0ns
PCI Int Pin = INT D
Interrupt line = 11

Class = Bridge (Unknown)
Vendor ID = 8086h, Intel Corporation
Device ID = 7113h, 82371AB/EB PIIX4 Power Management Controller
PCI index = 0h
Class Codes = 068000h
Revision ID = 2h
Bus number = 0
Device number = 7
Function num = 3
Status Reg = 280h
Command Reg = 3h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 0h
Cache Line Size= 0h
Max Lat = 0ns
Min Gnt = 0ns
PCI Int Pin = NC
Interrupt line = 0

Class = Multimedia (Audio)
Vendor ID = 125dh, ESS Technology
Device ID = 1968h, ES1968 Maestro-2 PCI audio accelerator
PCI index = 0h
Class Codes = 040100h
Revision ID = 0h
Bus number = 0
Device number = 8
Function num = 0
Status Reg = 290h
Command Reg = 7h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 40h
Cache Line Size= 0h
PCI IO Address = f800h length 256 enabled
Subsystem Vendor ID = 1028h
Subsystem ID = 85h
Max Lat = 24ns
Min Gnt = 2ns
PCI Int Pin = INT A
Interrupt line = 5
Capabilities Pointer = c0h
Capability ID = 1h
Capabilities = 7621h - 0h

Class = Display (VGA)
Vendor ID = 1002h, ATI Technologies
Device ID = 4c42h, Rage 3D LT Pro AGP 133 MHz
PCI index = 0h
Class Codes = 030000h
Revision ID = dch
Bus number = 1
Device number = 0
Function num = 0
Status Reg = 290h
Command Reg = 86h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 42h
Cache Line Size= 8h un-cacheable
PCI Mem Address = fd000000h 32bit length 16777216 enabled
PCI IO Address = e800h length 256 disabled
PCI Mem Address = fedfe000h 32bit length 4096 enabled
Subsystem Vendor ID = 1028h
Subsystem ID = 85h
Max Lat = 0ns
Min Gnt = 8ns
PCI Int Pin = INT A
Interrupt line = 11
Capabilities Pointer = 50h
Capability ID = 2h
Capabilities = 10h - ff000203h
Capability ID = 1h
Capabilities = 601h - 0h

You can try playing around with different I/O addresses and IRQs.

eg. ‘devp-pccard -a0x300,0x340’ will assign address 0x300 to socket 0
and 0x340 to socket 1.
'devp-pccard -l3,9 -a0x300,0x340 will do as above, but will assign IRQ
3 to socket 0 and IRQ 9 to socket 1.

Failing that, you can run Windows and use the device manager to see
what resources it assigns, and then use these to devp-pccard.

Previously, Bill Caroselli wrote in qdn.public.qnxrtp.installation:

What to look at next?

This PCMCIA card is supposed to be a generic Ne2000.

It was not auto detected so I attempted to hand configure everything.
Basically it doesn’t seem to be receiving anything (or sending anything
out either, as indicated by the TX light on a hub.)

Here is everything I did to test it and the results.
I tried to think of everything to look at. If I forgot something please
let me know.

pin

Sock Func Type Flags PID Base Size IRQ
1 0 Network C—I-±–X----- 65551 0x200 32 7
1 Empty ----MF---------- None
2 Empty ----MF---------- None
2 Empty ----MF---------- None

pin cis

Socket : 1 - Function : 0
Device : Function Specific 0k
Attribute Device : EEPROM 0k
PC Card function : Network LAN Adapter
POST : 0x3
Card tuple version : 4.01
Manufacturer : PCMCIA
Name of Product : Ethernet Card
Add’nl info (lot #) :
Add’nl info (programming):
Link Target : ‘CIS’
Configuration base/st : 0x3f8 0-subtuples
Configuration Index : 0x20 Default
Interface : MWait Req’d, I/O
Feature : 0x1d
Timing Info : Wait
IO Space : Bus16 Bus8 0x0-0x1F(5 lines)
IRQ Description : Level 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Configuration Index : 0x20
Feature : 0x8
IO Space : Bus16 0x300-0x31F
Configuration Index : 0x21
Feature : 0x8
IO Space : Bus16 0x320-0x33F
Configuration Index : 0x22
Feature : 0x8
IO Space : Bus16 0x340-0x35F
Configuration Index : 0x23
Feature : 0x8
IO Space : Bus16 0x360-0x37F
Manufacturer ID : 0x8a01 0x100

io-net -ptcpip -d ne2000 ioport=0x200,irq=7 &

pidin -Pio-net

pid tid name prio STATE code data stack
552976 1 sbin/io-net 10o SIGWAITINFO 56K 96K 8192(516K)*
552976 2 sbin/io-net 10o RECEIVE 56K 96K 4096(68K)
552976 3 sbin/io-net 10o RECEIVE 56K 96K 4096(68K)
552976 4 sbin/io-net 10o RECEIVE 56K 96K 4096(68K)
552976 5 sbin/io-net 20o RECEIVE 56K 96K 4096(132K)
ldqnx.so.2 @b0300000 300K 16K
npm-tcpip.so @b8200000 220K 52K
devn-ne2000.so @b8244000 52K 8192

photon network configuration

netstat -in

Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Colls
lo0 33220 0 0 0 0 0
lo0 33220 127 127.0.0.1 0 0 0 0 0
en0 1500 00:a0:0c:14:d1:2d 0 0 2 0 0
en0 1500 192.168.2 192.168.2.7 0 0 2 0 0

netstat -rn

Routing tables

Internet:
Destination Gateway Flags Refs Use Mtu Interface
default 192.168.2.5 UG 0 0 1500 en0
127.0.0.1 127.0.0.1 UH 0 0 33220 lo0
192.168.2 link#2 UC 1 0 1500 en0
192.168.2.5 link#2 UHL 1 0 1500 en0

ping 192.168.2.5

PING 192.168.2.5 (192.168.2.5): 56 data bytes
ping: wrote 192.168.2.5 64 chars, ret=-1
ping: wrote 192.168.2.5 64 chars, ret=-1

— 192.168.2.5 ping statistics —
8 packets transmitted, 0 packets received, 100% packet loss

#nicinfo
NE2000 Ethernet Controller
Physical Node ID … 00A00C 14D12D
Current Physical Node ID … 00A00C 14D12D
Media Rate … 10.00 Mb/s half-duplex UTP
MTU … 1514
Lan … 0
I/O Port Range … 0x200 → 0x21E
Hardware Interrupt … 0x7
Promiscuous … Disabled
Multicast … Enabled

Total Packets Txd OK … 0
Total Packets Txd Bad … 0
Total Packets Rxd OK … 0
Total Rx Errors … 0

Total Bytes Txd … 360
Total Bytes Rxd … 0

Tx Collision Errors … 0
Tx Collisions Errors (aborted) … 0
Carrier Sense Lost on Tx … 0
FIFO Underruns During Tx … 0
Tx deferred … 0
Out of Window Collisions … 0
FIFO Overruns During Rx … 0
Alignment errors … 0
CRC errors … 0

pci -v

PCI version = 2.10

Class = Bridge (Host/PCI)
Vendor ID = 8086h, Intel Corporation
Device ID = 7190h, 82443BX/ZX 440BX/ZX AGPset Host Bridge
PCI index = 0h
Class Codes = 060000h
Revision ID = 2h
Bus number = 0
Device number = 0
Function num = 0
Status Reg = 2210h
Command Reg = 106h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 40h
Cache Line Size= 0h
Max Lat = 0ns
Min Gnt = 0ns
PCI Int Pin = NC
Interrupt line = 0
Capabilities Pointer = a0h
Capability ID = 2h
Capabilities = 10h - 1f000202h

Class = Bridge (PCI/PCI)
Vendor ID = 8086h, Intel Corporation
Device ID = 7191h, 82443BX/ZX 440BX/ZX AGPset PCI-to-PCI bridge
PCI index = 0h
Class Codes = 060400h
Revision ID = 2h
Bus number = 0
Device number = 1
Function num = 0
Status Reg = 220h
Command Reg = 1fh
Header type = 1h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 80h
Cache Line Size= 0h
Primary Bus Number = 0h
Secondary Bus Number = 1h
Subordinate Bus Number = 1h
Secondary Latency Timer = 40h
I/O Base = e0h
I/O Limit = e0h
Secondary Status = 22a0h
Memory Base = fd00h
Memory Limit = fed0h
Prefetchable Memory Base = fff0h
Prefetchable Memory Limit= 0h
Prefetchable Base Upper 32 Bits = 0h
Prefetchable Limit Upper 32 Bits = 0h
I/O Base Upper 16 Bits = ffffh
I/O Limit Upper 16 Bits = ffffh
Bridge Control = 140ns
PCI Int Pin = NC
Interrupt line = 0

Class = Bridge (CardBus)
Vendor ID = 104ch, Texas Instruments
Device ID = ac17h, PCI1220 CardBus Controller
PCI index = 0h
Class Codes = 060700h
Revision ID = 2h
Bus number = 0
Device number = 4
Function num = 0
Status Reg = 210h
Command Reg = 7h
Header type = 2h Multi-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 20h
Cache Line Size= 0h
ExCA Base Address = ffeff000h
Capabilities Pointer = ffh
Secondary Status = ffffh
Primary Bus Number = 0
Secondary Bus Number = 2
Subordinate Bus Number = 2
Secondary Latency Timer = 20h
Memory Base 0 = 0h
Memory Limit 0 = 0h
Memory Base 1 = 0h
Memory Limit 1 = 0h
I/O Base 0 = 0h
I/O Limit 0 = 0h
I/O Base 1 = 0h
I/O Limit 1 = 0h
PCI Int Pin = 1
PCI Int Pin = INT A
Interrupt line = no connection
Bridge Control = 7c0h
Subsystem Vendor ID = 1028h
Subsystem ID = 85h
Legacy Mode Base Address = 3e0h
System Control = 844b021h
Retry Status = c0h
Card Control = 1h
Device Control = 66h
Buffer Control = 60h
Socket DMA Register 0 = 0h
Socket DMA Register 1 = 0h

Class = Bridge (CardBus)
Vendor ID = 104ch, Texas Instruments
Device ID = ac17h, PCI1220 CardBus Controller
PCI index = 1h
Class Codes = 060700h
Revision ID = 2h
Bus number = 0
Device number = 4
Function num = 1
Status Reg = 210h
Command Reg = 7h
Header type = 2h Multi-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 20h
Cache Line Size= 0h
ExCA Base Address = ffefe000h
Capabilities Pointer = ffh
Secondary Status = ffffh
Primary Bus Number = 0
Secondary Bus Number = 3
Subordinate Bus Number = 3
Secondary Latency Timer = 20h
Memory Base 0 = 0h
Memory Limit 0 = 0h
Memory Base 1 = 0h
Memory Limit 1 = 0h
I/O Base 0 = 0h
I/O Limit 0 = 0h
I/O Base 1 = 0h
I/O Limit 1 = 0h
PCI Int Pin = 2
PCI Int Pin = INT B
Interrupt line = 11
Bridge Control = 7c0h
Subsystem Vendor ID = 1028h
Subsystem ID = 85h
Legacy Mode Base Address = 3e0h
System Control = 8449021h
Retry Status = c0h
Card Control = 0h
Device Control = 66h
Buffer Control = 60h
Socket DMA Register 0 = 0h
Socket DMA Register 1 = 0h

Class = Bridge (Unknown)
Vendor ID = 8086h, Intel Corporation
Device ID = 7110h, 82371AB/EB PIIX4 ISA Bridge
PCI index = 0h
Class Codes = 068000h
Revision ID = 2h
Bus number = 0
Device number = 7
Function num = 0
Status Reg = 280h
Command Reg = fh
Header type = 0h Multi-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 0h
Cache Line Size= 0h
Max Lat = 0ns
Min Gnt = 0ns
PCI Int Pin = NC
Interrupt line = 0

Class = Mass Storage (IDE)
Vendor ID = 8086h, Intel Corporation
Device ID = 7111h, 82371AB/EB PIIX4 IDE Controller
PCI index = 0h
Class Codes = 010180h
Revision ID = 1h
Bus number = 0
Device number = 7
Function num = 1
Status Reg = 280h
Command Reg = 5h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 40h
Cache Line Size= 0h
PCI IO Address = fcd0h length 16 enabled
Max Lat = 0ns
Min Gnt = 0ns
PCI Int Pin = NC
Interrupt line = 0

Class = Serial Bus (Universal Serial Bus)
Vendor ID = 8086h, Intel Corporation
Device ID = 7112h, 82371AB/EB PIIX4 USB Interface
PCI index = 0h
Class Codes = 0c0300h
Revision ID = 1h
Bus number = 0
Device number = 7
Function num = 2
Status Reg = 280h
Command Reg = 1h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 40h
Cache Line Size= 0h
PCI IO Address = fce0h length 32 enabled
Max Lat = 0ns
Min Gnt = 0ns
PCI Int Pin = INT D
Interrupt line = 11

Class = Bridge (Unknown)
Vendor ID = 8086h, Intel Corporation
Device ID = 7113h, 82371AB/EB PIIX4 Power Management Controller
PCI index = 0h
Class Codes = 068000h
Revision ID = 2h
Bus number = 0
Device number = 7
Function num = 3
Status Reg = 280h
Command Reg = 3h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 0h
Cache Line Size= 0h
Max Lat = 0ns
Min Gnt = 0ns
PCI Int Pin = NC
Interrupt line = 0

Class = Multimedia (Audio)
Vendor ID = 125dh, ESS Technology
Device ID = 1968h, ES1968 Maestro-2 PCI audio accelerator
PCI index = 0h
Class Codes = 040100h
Revision ID = 0h
Bus number = 0
Device number = 8
Function num = 0
Status Reg = 290h
Command Reg = 7h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 40h
Cache Line Size= 0h
PCI IO Address = f800h length 256 enabled
Subsystem Vendor ID = 1028h
Subsystem ID = 85h
Max Lat = 24ns
Min Gnt = 2ns
PCI Int Pin = INT A
Interrupt line = 5
Capabilities Pointer = c0h
Capability ID = 1h
Capabilities = 7621h - 0h

Class = Display (VGA)
Vendor ID = 1002h, ATI Technologies
Device ID = 4c42h, Rage 3D LT Pro AGP 133 MHz
PCI index = 0h
Class Codes = 030000h
Revision ID = dch
Bus number = 1
Device number = 0
Function num = 0
Status Reg = 290h
Command Reg = 86h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 42h
Cache Line Size= 8h un-cacheable
PCI Mem Address = fd000000h 32bit length 16777216 enabled
PCI IO Address = e800h length 256 disabled
PCI Mem Address = fedfe000h 32bit length 4096 enabled
Subsystem Vendor ID = 1028h
Subsystem ID = 85h
Max Lat = 0ns
Min Gnt = 8ns
PCI Int Pin = INT A
Interrupt line = 11
Capabilities Pointer = 50h
Capability ID = 2h
Capabilities = 10h - ff000203h
Capability ID = 1h
Capabilities = 601h - 0h

Hugh Brown <hsbrown@qnx.com> wrote:

You can try playing around with different I/O addresses and IRQs.

eg. ‘devp-pccard -a0x300,0x340’ will assign address 0x300 to socket 0
and 0x340 to socket 1.
'devp-pccard -l3,9 -a0x300,0x340 will do as above, but will assign IRQ
3 to socket 0 and IRQ 9 to socket 1.

Failing that, you can run Windows and use the device manager to see
what resources it assigns, and then use these to devp-pccard.

I’m not a big fan of guessing. So I went the Windows route. It reports
PCI-1220 CardBus Controller
PCI bus 0, device 4, function 0
Resources
Many Memory Range lines
I/O Range FE00 - FEFF
I/O Range FD00 - FDFF
I/O Range 03E0 - 03E1
IRQ 11
PCI-1220 CardBus Controller
PCI bus 0, device 4, function 1
Resources
Many Memory Range lines
I/O Range FA00 - FAFF
I/O Range F900 - F9FF
I/O Range FFFE - FFFF
IRQ 11

So I tried:

slay io-net

slay devp-pccard

devp-pccard -l11,11 -a0x3e0,0xfffe

pin seemed to display the appropriate information

io-net -ptcpip -dne2000 ioport=0x3e0,irq=11

after hitting return I got a new ‘#’ command prompt.
Then the system hung. By hung I mean:

  • if I typed no characters showed up on the screen
  • if I moved the mouse the mouse pointer didn’t move
  • I couldn’t change consoles
  • The clock stopped
  • the System monitor froze with liek 2-3% CPU usage and now dosen’t
    change.

Is there anything else to try?

Net try:

I have two laptops and three ethernet cards. So, I tried using an
ethernet card that is working in the other laptop.

It worked in this laptop. Yippie!

Below is what I saw in the working system.

Now I’d like to get one of the other cards working in either of these
laptops. They both use the TI PCI-1220 Cardbus controller.

BTW, this all worked without me having to hand load anything. So,

QUESTION: Can I safely assume that the CardBus is being configured
correctly, even with another card inserted? (I.e. it shouldn’t be
necessary to use command line options to devp-pccard)


pidin -Pdevp-pccard ar

pid Arguments
65550 devp-pccard

pidin -Pdevp-pccard me

pid tid name prio STATE code data stack
65550 1 sbin/devp-pccard 21o RECEIVE 84K 24K 8192(516K)*
ldqnx.so.2 @b0300000 300K 16K
/dev/mem @40100000 (ffeff000) 8192
/dev/mem @40102000 (ffefe000) 8192
/dev/mem @40104000 ( d4000) 4096
pid Arguments

pidin -Pio-net ar

81938 io-net -ptcpip

pidin -Pio-net me

pid tid name prio STATE code data stack
81938 1 sbin/io-net 10o SIGWAITINFO 56K 484K 8192(516K)*
81938 2 sbin/io-net 10o RECEIVE 56K 484K 4096(68K)
81938 3 sbin/io-net 10o RECEIVE 56K 484K 4096(68K)
81938 4 sbin/io-net 10o RECEIVE 56K 484K 4096(68K)
81938 5 sbin/io-net 10o RECEIVE 56K 484K 4096(68K)
81938 6 sbin/io-net 20o RECEIVE 56K 484K 4096(132K)
81938 7 sbin/io-net 21r RECEIVE 56K 484K 4096(132K)
81938 8 sbin/io-net 10o RECEIVE 56K 484K 4096(132K)
81938 11 sbin/io-net 21r CONDVAR 56K 484K 4096(132K)
ldqnx.so.2 @b0300000 300K 16K
npm-tcpip.so @b8200000 220K 52K
devn-ne2000.so @b8244000 52K 8192

pin

Sock Func Type Flags PID Base Size IRQ
1 0 Network C—I-±–X----- 65551 0x200 32 7
1 Empty ----MF---------- None
2 Empty ----MF---------- None
2 Empty ----MF---------- None

nicinfo

NE2000 Ethernet Controller
Physical Node ID … 00E098 8227A9
Current Physical Node ID … 00E098 8227A9
Media Rate … 10.00 Mb/s half-duplex UTP
MTU … 1514
Lan … 0
I/O Port Range … 0x200 → 0x21E
Hardware Interrupt … 0x7
Promiscuous … Disabled
Multicast … Enabled

Total Packets Txd OK … 1839
Total Packets Txd Bad … 0
Total Packets Rxd OK … 2523
Total Rx Errors … 0

Total Bytes Txd … 177603
Total Bytes Rxd … 567588

Tx Collision Errors … 10
Tx Collisions Errors (aborted) … 0
Carrier Sense Lost on Tx … 0
FIFO Underruns During Tx … 0
Tx deferred … 0
Out of Window Collisions … 0
FIFO Overruns During Rx … 0
Alignment errors … 0
CRC errors … 0

Previously, Bill Caroselli wrote in qdn.public.qnxrtp.installation:

Hugh Brown <> hsbrown@qnx.com> > wrote:
You can try playing around with different I/O addresses and IRQs.

eg. ‘devp-pccard -a0x300,0x340’ will assign address 0x300 to socket 0
and 0x340 to socket 1.
'devp-pccard -l3,9 -a0x300,0x340 will do as above, but will assign IRQ
3 to socket 0 and IRQ 9 to socket 1.

Failing that, you can run Windows and use the device manager to see
what resources it assigns, and then use these to devp-pccard.

I’m not a big fan of guessing. So I went the Windows route. It reports
PCI-1220 CardBus Controller
PCI bus 0, device 4, function 0
Resources
Many Memory Range lines
I/O Range FE00 - FEFF
I/O Range FD00 - FDFF
I/O Range 03E0 - 03E1
IRQ 11
PCI-1220 CardBus Controller
PCI bus 0, device 4, function 1
Resources
Many Memory Range lines
I/O Range FA00 - FAFF
I/O Range F900 - F9FF
I/O Range FFFE - FFFF
IRQ 11

You should look at the device manager for the NE2000 device and see
what resources it has been assigned. The resources assigned to the
CardBus controller are for its use, not for the inserted cards. The
address 0x3e0 is for the CardBus controller, so that is most probably
why you system hung when you used this address.

So I tried:

slay io-net

slay devp-pccard

devp-pccard -l11,11 -a0x3e0,0xfffe

IRQ 11 is for CardBus (PCI) devices. The NE2000 uses an ISA interrupt
which won’t be shown in the PCI output. The addreses for ISA devices
should be in the 0x300-0xfff range. If the BIOS is reporting its
devices correctly, you shouldn’t have to specify any command line
arguments to devp-pccard. You can try I/O addresses in the 0x400 range
and try different interrupts. On my Toshiba laptop, I have to start
‘devp-pccard 0x400,0x440’ as there seems to be a problem with addresses
in the 0x300 range.

pin seemed to display the appropriate information

io-net -ptcpip -dne2000 ioport=0x3e0,irq=11

after hitting return I got a new ‘#’ command prompt.
Then the system hung. By hung I mean:

  • if I typed no characters showed up on the screen
  • if I moved the mouse the mouse pointer didn’t move
  • I couldn’t change consoles
  • The clock stopped
  • the System monitor froze with liek 2-3% CPU usage and now dosen’t
    change.

Is there anything else to try?