Problem with PCMCIA & ne2000 driver

Hi,

I have installed QNXRTP on an ACER laptop with a Fiber-line FL4680
PCMCIA-Network-Card .
The system is running fine except for the network.

A “sin” shows me, that
devp-pccard and
enum-pccard
is running.

A “pin” gives me the answer:
Sock Func Type Flags PID Base Size IRQ
1 0 Network C—I-±–X----- 69647 0x200 32 3
1 Empty ----MF---------- None

and a “pin con” gives me:
; socket 1
[device]
manufacturer = “Ethernet”
product = “Adapter”
info1 = “2.0”
regbase = 0xfd0
config = 0x00, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io any+32
(width=16)
config = 0x01, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io 0x300-0x31f
(width=16)
config = 0x02, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io 0x320-0x33f
(width=16)
config = 0x03, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io 0x340-0x35f
(width=16)
config = 0x04, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io 0x380-0x39f
(width=16)
config = 0x05, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io 0x200-0x21f
(width=16)
register = 0, 0x40, 0x40 ; level mode interrupts


“nettrap” gives me:
io-net -dne2000



So I start the network with the following commands:
io-net -dne2000 -ptcpip
ifconfig en0 192.168.0.130


Finally a “nicinfo” gives me the following output

NE2000 Ethernet Controller
Physical Node ID … 00E098 1E1BB2
Current Physical Node ID … 00E098 1E1BB2
Media Rate … 10.00 Mb/s half-duplex UTP
MTU … 1514
Lan … 0
I/O Port Range … 0x200 → 0x21E
Hardware Interrupt … 0x5

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

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


Well, it seems to me that everything is running fine,
I can “ping” my own address, but, and that is my problem,

I can’t ping any other machine (e.g. ping 192.168.0.26)

I also think that this cannot be any hardware problem, since the network is
running fine under QNX4.25.


Thanks for any sugestions for solving the problem,

Norbert

Previously, Norbert Feulner wrote in qdn.public.qnxrtp.installation:

Hi,

I have installed QNXRTP on an ACER laptop with a Fiber-line FL4680
PCMCIA-Network-Card .
The system is running fine except for the network.

A “sin” shows me, that
devp-pccard and
enum-pccard
is running.

A “pin” gives me the answer:
Sock Func Type Flags PID Base Size IRQ
1 0 Network C—I-±–X----- 69647 0x200 32 3
1 Empty ----MF---------- None

and a “pin con” gives me:
; socket 1
[device]
manufacturer = “Ethernet”
product = “Adapter”
info1 = “2.0”
regbase = 0xfd0
config = 0x00, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io any+32
(width=16)
config = 0x01, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io 0x300-0x31f
(width=16)
config = 0x02, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io 0x320-0x33f
(width=16)
config = 0x03, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io 0x340-0x35f
(width=16)
config = 0x04, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io 0x380-0x39f
(width=16)
config = 0x05, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io 0x200-0x21f
(width=16)
register = 0, 0x40, 0x40 ; level mode interrupts


“nettrap” gives me:
io-net -dne2000



So I start the network with the following commands:
io-net -dne2000 -ptcpip
ifconfig en0 192.168.0.130


Finally a “nicinfo” gives me the following output

NE2000 Ethernet Controller
Physical Node ID … 00E098 1E1BB2
Current Physical Node ID … 00E098 1E1BB2
Media Rate … 10.00 Mb/s half-duplex UTP
MTU … 1514
Lan … 0
I/O Port Range … 0x200 → 0x21E
Hardware Interrupt … 0x5

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

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


Well, it seems to me that everything is running fine,
I can “ping” my own address, but, and that is my problem,

I can’t ping any other machine (e.g. ping 192.168.0.26)

I also think that this cannot be any hardware problem, since the network is
running fine under QNX4.25.


Thanks for any sugestions for solving the problem,

The problem is that devp-pccard is assigning irq 3 to the adapter and
io-net is assigning irq 5. Try the following:

  1. slay io-net
  2. io-net -dne2000 ioport=0x200,irq=3 -ptcpip

It should now work.

Norbert


\

Hugh Brown (613) 591-0931 ext. 209 (voice)
QNX Software Systems Ltd. (613) 591-3579 (fax)
175 Terence Matthews Cres. email: hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8

Hugh Brown <hsbrown@qnx.com> schrieb in im Newsbeitrag:
Voyager.001030082819.8577C@qnx.com

Previously, Norbert Feulner wrote in qdn.public.qnxrtp.installation:
Hi,

I have installed QNXRTP on an ACER laptop with a Fiber-line FL4680
PCMCIA-Network-Card .
The system is running fine except for the network.

A “sin” shows me, that
devp-pccard and
enum-pccard
is running.

A “pin” gives me the answer:
Sock Func Type Flags PID Base Size IRQ
1 0 Network C—I-±–X----- 69647 0x200 32 3
1 Empty ----MF---------- None

and a “pin con” gives me:
; socket 1
[device]
manufacturer = “Ethernet”
product = “Adapter”
info1 = “2.0”
regbase = 0xfd0
config = 0x00, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io any+32
(width=16)
config = 0x01, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io
0x300-0x31f
(width=16)
config = 0x02, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io
0x320-0x33f
(width=16)
config = 0x03, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io
0x340-0x35f
(width=16)
config = 0x04, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io
0x380-0x39f
(width=16)
config = 0x05, 0x0600, irq 2|3|4|5|6|7|9|10|11|12|13|15, io
0x200-0x21f
(width=16)
register = 0, 0x40, 0x40 ; level mode interrupts


“nettrap” gives me:
io-net -dne2000



So I start the network with the following commands:
io-net -dne2000 -ptcpip
ifconfig en0 192.168.0.130


Finally a “nicinfo” gives me the following output

NE2000 Ethernet Controller
Physical Node ID … 00E098 1E1BB2
Current Physical Node ID … 00E098 1E1BB2
Media Rate … 10.00 Mb/s half-duplex UTP
MTU … 1514
Lan … 0
I/O Port Range … 0x200 → 0x21E
Hardware Interrupt … 0x5

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

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


Well, it seems to me that everything is running fine,
I can “ping” my own address, but, and that is my problem,

I can’t ping any other machine (e.g. ping 192.168.0.26)

I also think that this cannot be any hardware problem, since the network
is
running fine under QNX4.25.


Thanks for any sugestions for solving the problem,


The problem is that devp-pccard is assigning irq 3 to the adapter and
io-net is assigning irq 5. Try the following:

  1. slay io-net
  2. io-net -dne2000 ioport=0x200,irq=3 -ptcpip

It should now work.

Norbert

Well I have followed your advice (setting ioport and irq), but I still
cannot ping other machines.
(Actually I have tried to change the irq before I wrote that news,
but for some reason it did not work.
I think I put a white-space between the comma and the irq.)

I also tried to set the connector!

The output of nicinfo now looks like this:

NE2000 Ethernet Controller
Physical Node ID … 00E098 1E1BB2
Current Physical Node ID … 00E098 1E1BB2
Media Rate … 10.00 Mb/s half-duplex UTP
MTU … 1514
Lan … 0
I/O Port Range … 0x200 → 0x21E
Hardware Interrupt … 0x3

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

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


The pcmcia.cfg-File looks like this:
;
; Minimal resource set
;

[resources]
memory = 0xd4000-0xd5fff
ports = 0x320-0x33f
rports = 0x2e8+8, 0x3e8+8, 0x170+8, 0x376+2
irqs = 5,7,11,12

Could it be that I have to change some addresses there ?

Under QNX4.25 I also had a file /etc/config/pcmcia.cards with the supported
cards,
that I could not find under RTP. Is that still needed?

Regards
Norbert

Hugh Brown wrote:

No, the pcmcia.cfg file is no longer used. This still has to be updated
in the docs.

That explains some of my own problems I have had trying to PCMCIA
going.
So where is this info stored now? (And on a side note, what was wrong
with using /etc/pcmcia.cfg).

Previously, Norbert Feulner wrote in qdn.public.qnxrtp.installation:

Hugh Brown <> hsbrown@qnx.com> > schrieb in im Newsbeitrag:
Voyager.001030082819.8577C@qnx.com> …
Previously, Norbert Feulner wrote in qdn.public.qnxrtp.installation:
Hi,

I have installed QNXRTP on an ACER laptop with a Fiber-line FL4680
PCMCIA-Network-Card .
The system is running fine except for the network.

[snip]

Well I have followed your advice (setting ioport and irq), but I still
cannot ping other machines.
(Actually I have tried to change the irq before I wrote that news,
but for some reason it did not work.
I think I put a white-space between the comma and the irq.)

I also tried to set the connector!

The output of nicinfo now looks like this:

NE2000 Ethernet Controller
Physical Node ID … 00E098 1E1BB2
Current Physical Node ID … 00E098 1E1BB2
Media Rate … 10.00 Mb/s half-duplex UTP
MTU … 1514
Lan … 0
I/O Port Range … 0x200 → 0x21E
Hardware Interrupt … 0x3

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

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


The pcmcia.cfg-File looks like this:
;
; Minimal resource set
;

[resources]
memory = 0xd4000-0xd5fff
ports = 0x320-0x33f
rports = 0x2e8+8, 0x3e8+8, 0x170+8, 0x376+2
irqs = 5,7,11,12

Could it be that I have to change some addresses there ?

No, the pcmcia.cfg file is no longer used. This still has to be updated
in the docs. It looks as though the ethernet adapter has been setup
correctly. Have you ever had this adapter working under QNX4 or RTP? It
could be that it is one of those quirky adapters that need to be tweaked!
Do you have any other PCMCIA cards you can try, such as a modem?

Under QNX4.25 I also had a file /etc/config/pcmcia.cards with the supported
cards,
that I could not find under RTP. Is that still needed?

Regards
Norbert

Hugh Brown (613) 591-0931 ext. 209 (voice)
QNX Software Systems Ltd. (613) 591-3579 (fax)
175 Terence Matthews Cres. email: hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8

Previously, Alex Cellarius wrote in qdn.public.qnxrtp.installation:

Hugh Brown wrote:

No, the pcmcia.cfg file is no longer used. This still has to be updated
in the docs.

That explains some of my own problems I have had trying to PCMCIA
going.
So where is this info stored now? (And on a side note, what was wrong
with using /etc/pcmcia.cfg).

We are trying to get away from configuration files and make the system
more “user friendly”, so at startup the system detects all assigned
resources and allocates these in the resource database manager. These
used resources will then no longer be available to applications, so
that when the applcations request resources from the database manager,
they will receive “free” resources. “seedres” is the program that
currently does most of this detection and allocation.

Hugh.

Hugh Brown (613) 591-0931 ext. 209 (voice)
QNX Software Systems Ltd. (613) 591-3579 (fax)
175 Terence Matthews Cres. email: hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8

Well I have followed your advice (setting ioport and irq), but I still
cannot ping other machines.
(Actually I have tried to change the irq before I wrote that
news,
but for some reason it did not work.
I think I put a white-space between the comma and the irq.)

I also tried to set the connector!

The output of nicinfo now looks like this:

NE2000 Ethernet Controller
Physical Node ID … 00E098 1E1BB2
Current Physical Node ID … 00E098 1E1BB2
Media Rate … 10.00 Mb/s half-duplex UTP
MTU … 1514
Lan … 0
I/O Port Range … 0x200 → 0x21E
Hardware Interrupt … 0x3

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

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


The pcmcia.cfg-File looks like this:
;
; Minimal resource set
;

[resources]
memory = 0xd4000-0xd5fff
ports = 0x320-0x33f
rports = 0x2e8+8, 0x3e8+8, 0x170+8, 0x376+2
irqs = 5,7,11,12

Could it be that I have to change some addresses there ?


No, the pcmcia.cfg file is no longer used. This still has to be updated
in the docs. It looks as though the ethernet adapter has been setup
correctly. Have you ever had this adapter working under QNX4 or RTP? It
could be that it is one of those quirky adapters that need to be tweaked!
Do you have any other PCMCIA cards you can try, such as a modem?

I have QNX4.25 on the same machine but an other partition running, and there
the adapter works.
But it uses ne1000, ioport=0x320 and irq=7.

Sorry, I do not have any other PCMCIA cards except of that.


Regards
Norbert

Previously, Norbert Feulner wrote in qdn.public.qnxrtp.installation:

Well I have followed your advice (setting ioport and irq), but I still
cannot ping other machines.
(Actually I have tried to change the irq before I wrote that
news,
but for some reason it did not work.
I think I put a white-space between the comma and the irq.)

I also tried to set the connector!

The output of nicinfo now looks like this:

NE2000 Ethernet Controller
Physical Node ID … 00E098 1E1BB2
Current Physical Node ID … 00E098 1E1BB2
Media Rate … 10.00 Mb/s half-duplex UTP
MTU … 1514
Lan … 0
I/O Port Range … 0x200 → 0x21E
Hardware Interrupt … 0x3

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

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


The pcmcia.cfg-File looks like this:
;
; Minimal resource set
;

[resources]
memory = 0xd4000-0xd5fff
ports = 0x320-0x33f
rports = 0x2e8+8, 0x3e8+8, 0x170+8, 0x376+2
irqs = 5,7,11,12

Could it be that I have to change some addresses there ?


No, the pcmcia.cfg file is no longer used. This still has to be updated
in the docs. It looks as though the ethernet adapter has been setup
correctly. Have you ever had this adapter working under QNX4 or RTP? It
could be that it is one of those quirky adapters that need to be tweaked!
Do you have any other PCMCIA cards you can try, such as a modem?


I have QNX4.25 on the same machine but an other partition running, and there
the adapter works.
But it uses ne1000, ioport=0x320 and irq=7.

Sorry, I do not have any other PCMCIA cards except of that.

I am busy working on this problem and will get back to you when I have it
resolved.

Regards
Norbert

Hugh Brown (613) 591-0931 ext. 209 (voice)
QNX Software Systems Ltd. (613) 591-3579 (fax)
175 Terence Matthews Cres. email: hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8

Hi Hugh,

I’m also having a PCMCIA problem. The parallel port uses IRQ 7, yet, when I
insert a PCMCIA card, “pin” reports that it has assigned IRQ 7 to it.

Apparently the pci manager thinks that IRQ 7 is available.

Any thoughts on this?

Thanks
Kevin
“Hugh Brown” <hsbrown@qnx.com> wrote in message
news:Voyager.001103081730.26641C@qnx.com

Previously, Alex Cellarius wrote in qdn.public.qnxrtp.installation:
Hugh Brown wrote:

No, the pcmcia.cfg file is no longer used. This still has to be
updated
in the docs.

That explains some of my own problems I have had trying to PCMCIA
going.
So where is this info stored now? (And on a side note, what was wrong
with using /etc/pcmcia.cfg).


We are trying to get away from configuration files and make the system
more “user friendly”, so at startup the system detects all assigned
resources and allocates these in the resource database manager. These
used resources will then no longer be available to applications, so
that when the applcations request resources from the database manager,
they will receive “free” resources. “seedres” is the program that
currently does most of this detection and allocation.

Hugh.

Hugh Brown (613) 591-0931 ext. 209 (voice)
QNX Software Systems Ltd. (613) 591-3579 (fax)
175 Terence Matthews Cres. email: > hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8

Previously, Kevin Stallard wrote in qdn.public.qnxrtp.installation:

Hi Hugh,

I’m also having a PCMCIA problem. The parallel port uses IRQ 7, yet, when I
insert a PCMCIA card, “pin” reports that it has assigned IRQ 7 to it.

Apparently the pci manager thinks that IRQ 7 is available.

Any thoughts on this?

Thanks
Kevin

Although IRQ 7 is assigned to the parallel port, it is still available
for use as QNX doesn’t use interrupts on this port. So what is your
problem? Please let us know what type of PCCard controller your machine
has, what type of PCMCIA card you are trying to get working and what
the symptoms are. Also post the output from ‘pin’ and ‘pin cis’.

Thanks, Hugh.

“Hugh Brown” <> hsbrown@qnx.com> > wrote in message
news:> Voyager.001103081730.26641C@qnx.com> …
Previously, Alex Cellarius wrote in qdn.public.qnxrtp.installation:
Hugh Brown wrote:

No, the pcmcia.cfg file is no longer used. This still has to be
updated
in the docs.

That explains some of my own problems I have had trying to PCMCIA
going.
So where is this info stored now? (And on a side note, what was wrong
with using /etc/pcmcia.cfg).


We are trying to get away from configuration files and make the system
more “user friendly”, so at startup the system detects all assigned
resources and allocates these in the resource database manager. These
used resources will then no longer be available to applications, so
that when the applcations request resources from the database manager,
they will receive “free” resources. “seedres” is the program that
currently does most of this detection and allocation.

Hugh.

Hugh Brown (613) 591-0931 ext. 209 (voice)
QNX Software Systems Ltd. (613) 591-3579 (fax)
175 Terence Matthews Cres. email: hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8