Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Using two network cards with QNX 6.2.1: Page 1 of 2 (27 Items)
   
Using two network cards with QNX 6.2.1  
Hi,

I have a embedded system (PC/104+ based) running on QNX 6.2.1 which has a Ethernet adapter (AMD PCNET (AMD-79c97x)), and
 the QNX boot script looks like

io-net -d pcnet transmit=64,reveive=32,verbose=2 -p tcpip &
waitfor /dev/socket

this works fine.

Now I need to expand the function of this embedded system by adding another Ethernet adapter. I have added a PC/104+ 
Ethernet module (http://www.dpie.com/pc104/mercator.html) and made the following change to the QNX boot script

io-net -d pcnet transmit=64,reveive=32,verbose=2 -p tcpip &
waitfor /dev/socket
mount -T io-net devn-ns83815.so
waitfor /dev/socket 5

clearly this doesn't work. I have the following message on the terminal
mount: Can't mount / (type io-net)
mount: Possible reason: No such device

Any help will be appreciated.

Thanks
Thanushan
Re: Using two network cards with QNX 6.2.1  
If you run the commands below manually, does it work? If not, please post
the output of 'pci -v'.
Also, your waitfor commands should wait for the specific interface to
become active. e.g. 'waitfor /dev/io-net/en0'




On 2013-05-17 5:23 AM, "Thanushan Balakrishnan"
<community-noreply@qnx.com> wrote:

>Hi,
>
>I have a embedded system (PC/104+ based) running on QNX 6.2.1 which has a
>Ethernet adapter (AMD PCNET (AMD-79c97x)), and the QNX boot script looks
>like
>
>io-net -d pcnet transmit=64,reveive=32,verbose=2 -p tcpip &
>waitfor /dev/socket
>
>this works fine.
>
>Now I need to expand the function of this embedded system by adding
>another Ethernet adapter. I have added a PC/104+ Ethernet module
>(http://www.dpie.com/pc104/mercator.html) and made the following change
>to the QNX boot script
>
>io-net -d pcnet transmit=64,reveive=32,verbose=2 -p tcpip &
>waitfor /dev/socket
>mount -T io-net devn-ns83815.so
>waitfor /dev/socket 5
>
>clearly this doesn't work. I have the following message on the terminal
>mount: Can't mount / (type io-net)
>mount: Possible reason: No such device
>
>Any help will be appreciated.
>
>Thanks
>Thanushan
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post101508
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com

Re: Using two network cards with QNX 6.2.1  
Hi,

waitfor /dev/io-net/en0
works. But the second card is not detected.
I've added 'pci -v' to the bootscript after the
pci-bios &
waitfor /dev/pci
but I don't see anything different. 

Thanks for your help

Thanushan
Re: Using two network cards with QNX 6.2.1  
Hi,

I've run the pci -v. The new card is not showing up.

I think, the new card is not on the PCI bus. I'm bit confused because the new board sits between the CPU module and the 
existing board, and the existing board is still working!

Any help will be appreciated,

Thanks,
Thanushan
Re: Using two network cards with QNX 6.2.1  
If the device doesn't show up with the pci utility, then there is some
electrical problem.




On 2013-05-21 5:45 AM, "Thanushan Balakrishnan"
<community-noreply@qnx.com> wrote:

>Hi,
>
>I've run the pci -v. The new card is not showing up.
>
>I think, the new card is not on the PCI bus. I'm bit confused because the
>new board sits between the CPU module and the existing board, and the
>existing board is still working!
>
>Any help will be appreciated,
>
>Thanks,
>Thanushan
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post101564
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com

Re: Using two network cards with QNX 6.2.1  
Hi Hugh,

Your were right. Changing the motherboard to a newer version makes the new card to appear on the PCI bus.

what should I do to QNX to make the driver functioning?
I've tried the following but it didn't work

io-net -d pcnet transmit=64,receive=32,verbose=2 -p tcpip &
waitfor /dev/socket
mount -T io-net devn-ns83815.so
waitfor /dev/io-net/en1 5

any suggestion?

Thanks,
Thanushan
Re: Using two network cards with QNX 6.2.1  
Are there any error messages in the sloginfo output?
You can also change the 'waitfor /dev/socket' to 'waitfor /dev/io-net/en0'.



On 2013-05-29 6:14 AM, "Thanushan Balakrishnan"
<community-noreply@qnx.com> wrote:

>Hi Hugh,
>
>Your were right. Changing the motherboard to a newer version makes the
>new card to appear on the PCI bus.
>
>what should I do to QNX to make the driver functioning?
>I've tried the following but it didn't work
>
>io-net -d pcnet transmit=64,receive=32,verbose=2 -p tcpip &
>waitfor /dev/socket
>mount -T io-net devn-ns83815.so
>waitfor /dev/io-net/en1 5
>
>any suggestion?
>
>Thanks,
>Thanushan
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post101801
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com

Re: Using two network cards with QNX 6.2.1  
Hi,

I've done the following

io-net -d pcnet transmit=64,receive=32,verbose=2 -d ns83815 vid=0x100,did=0x20 -p tcpip &
waitfor /dev/socket 8

then used the ifconfig utility to configure the IP address for en1
ifconfig en1 10.0.0.3

When I run the "natstat -in" i'm seeing the following

Name  Mtu   Network       Address              Ipkts Ierrs    Opkts Oerrs Colls
lo0   33212 <Link>                          
       0     0        0     0     0
lo0   33212 127           127.0.0.1                0     0        0     0     0
en0   1500  <Link>        00:05:e5:00:19:9d     3448     0     3465     0     0
en0   1500  10            10.0.0.2              3448     0     3465     0     0
en1   1500  <Link>        00:06:d5:20:63:33      129     0       15     0     0
en1   1500  10            10.0.0.3               129     0       15     0     0

The Ethernet port (en0) is connected to a PC, when I run "ping 10.0.0.3" from the PC, its not getting any response.

Do I need to configure anything else?

Thanks,
Thanushan
Re: Using two network cards with QNX 6.2.1  
You cannot have 2 interfaces on the same subnet, so you will have to use a
different subnet for en1 or setup routing tables.



On 2013-05-29 9:25 AM, "Thanushan Balakrishnan"
<community-noreply@qnx.com> wrote:

>Hi,
>
>I've done the following
>
>io-net -d pcnet transmit=64,receive=32,verbose=2 -d ns83815
>vid=0x100,did=0x20 -p tcpip &
>waitfor /dev/socket 8
>
>then used the ifconfig utility to configure the IP address for en1
>ifconfig en1 10.0.0.3
>
>When I run the "natstat -in" i'm seeing the following
>
>Name  Mtu   Network       Address              Ipkts Ierrs    Opkts Oerrs
>Colls
>lo0   33212 <Link>                                 0     0        0     0
>    0
>lo0   33212 127           127.0.0.1                0     0        0     0
>    0
>en0   1500  <Link>        00:05:e5:00:19:9d     3448     0     3465     0
>    0
>en0   1500  10            10.0.0.2              3448     0     3465     0
>    0
>en1   1500  <Link>        00:06:d5:20:63:33      129     0       15     0
>    0
>en1   1500  10            10.0.0.3               129     0       15     0
>    0
>
>The Ethernet port (en0) is connected to a PC, when I run "ping 10.0.0.3"
>from the PC, its not getting any response.
>
>Do I need to configure anything else?
>
>Thanks,
>Thanushan
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post101811
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com

Re: Using two network cards with QNX 6.2.1  
Hi Hugh,

How do I set different subnet? sorry, this must be very basic, but this is all new to me.
could you give an example?

Thanks,
Thanushan
Re: Using two network cards with QNX 6.2.1  
It all depends on your netmask. The default netmask is 0xfffff000, which
you can see with ifconfig. So, to change to a different subnet when your
first IP address is on 10.0.0.X, another subnet would be on address
10.1.0.X or 10.0.241.X.



On 2013-05-29 10:46 AM, "Thanushan Balakrishnan"
<community-noreply@qnx.com> wrote:

>Hi Hugh,
>
>How do I set different subnet? sorry, this must be very basic, but this
>is all new to me.
>could you give an example?
>
>Thanks,
>Thanushan
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post101818
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com

Re: Using two network cards with QNX 6.2.1  
I've changed the ip address, here is the ifconfig

en0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	address: 00:05:e5:00:19:9d
	media: Ethernet 100baseTX full-duplex
	status: active
	inet 10.0.0.2 netmask 0xfffff000 broadcast 10.0.15.255

en1: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> mtu 1500
	address: 00:06:d5:20:63:33
	media: Ethernet 100baseTX full-duplex
	status: active
	inet 10.1.0.3 netmask 0xfffff000 broadcast 10.1.15.255


still unable to ping 10.1.0.3.
on the above ifconfig output for en1 is "OACTIVE", what does it mean?

Thanks,
Thanushan
Re: Using two network cards with QNX 6.2.1  
Is the 10.1.0.3 connection also connected to the same network as the
10.0.0.2? If so, this will not work. You have to have the 10.1.0.3
interface connected on a separate network to another machine that is also
on the 10.1.x.x network.




On 2013-05-30 5:39 AM, "Thanushan Balakrishnan"
<community-noreply@qnx.com> wrote:

>I've changed the ip address, here is the ifconfig
>
>en0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>	address: 00:05:e5:00:19:9d
>	media: Ethernet 100baseTX full-duplex
>	status: active
>	inet 10.0.0.2 netmask 0xfffff000 broadcast 10.0.15.255
>
>en1: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> mtu 1500
>	address: 00:06:d5:20:63:33
>	media: Ethernet 100baseTX full-duplex
>	status: active
>	inet 10.1.0.3 netmask 0xfffff000 broadcast 10.1.15.255
>
>
>still unable to ping 10.1.0.3.
>on the above ifconfig output for en1 is "OACTIVE", what does it mean?
>
>Thanks,
>Thanushan
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post101861
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com

Re: Using two network cards with QNX 6.2.1  
Hi Hugh,

The 10.0.0.2 and 10.1.0.3 are connected to different machines.

The 10.0.0.2 was connected to a machine with ipaddress 10.0.0.1, subnetmask 255.0.0.0
The 10.1.0.3 was connected to a machine with ipadderss 10.1.0.2, subnetmask 255.255.240.0

This failed on ping test.

now I've changed to

The 10.0.0.2 is connected to a machine with ipaddress 10.0.0.1, subnetmask 255.255.240.0
The 10.1.0.3 is connected to a machine with ipadderss 10.1.0.2, subnetmask 255.255.240.0

this has some success. When I ping the 10.1.0.3 from 10.1.0.2, response 1 out of 4 to 3 out of 4 received (25% to 75% 
success).

I guess, Intermittent failures means something wrong in the hardware?

Thanks,
Thanushan
Re: Using two network cards with QNX 6.2.1  
This could be due to an interrupt issue. Yes, check the hardware.



On 2013-05-30 8:43 AM, "Thanushan Balakrishnan"
<community-noreply@qnx.com> wrote:

>Hi Hugh,
>
>The 10.0.0.2 and 10.1.0.3 are connected to different machines.
>
>The 10.0.0.2 was connected to a machine with ipaddress 10.0.0.1,
>subnetmask 255.0.0.0
>The 10.1.0.3 was connected to a machine with ipadderss 10.1.0.2,
>subnetmask 255.255.240.0
>
>This failed on ping test.
>
>now I've changed to
>
>The 10.0.0.2 is connected to a machine with ipaddress 10.0.0.1,
>subnetmask 255.255.240.0
>The 10.1.0.3 is connected to a machine with ipadderss 10.1.0.2,
>subnetmask 255.255.240.0
>
>this has some success. When I ping the 10.1.0.3 from 10.1.0.2, response 1
>out of 4 to 3 out of 4 received (25% to 75% success).
>
>I guess, Intermittent failures means something wrong in the hardware?
>
>Thanks,
>Thanushan
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post101873
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com

Re: Using two network cards with QNX 6.2.1  
Hi Hugh,

I start to think it's not a hardware issue. I did a simple test by ping the Network card (ip address 10.1.0.3) from the 
PC (ip address 10.1.0.2) while a Ethernet protocol analyzer software running on the PC (Ethereal). The software reports 
that the 10.1.0.3 did not reply to some of the pings.
However, when I ping the PC from QNX (ip address 10.1.0.3) the Ethereal shows that the PC receives all the pings and 
responds to it. This implies the Network card or QNX driver not getting the received packets.

When I run the ifconfig, I see the following

lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33212
	capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
	enabled=0<>
	inet 127.0.0.1 netmask 0xff000000
en0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	address: 00:05:e5:00:19:9d
	media: Ethernet 100baseTX full-duplex
	status: active
	inet 10.0.0.2 netmask 0xff000000 broadcast 10.255.255.255
en1: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> mtu 1500
	address: 00:06:d5:20:63:33
	media: Ethernet 100baseTX full-duplex
	status: active
	inet 10.1.0.3 netmask 0xfffff000 broadcast 10.1.15.255


What does the OACTIVE flag on en1 means?

Thanks for your help

Thanushan
Re: Using two network cards with QNX 6.2.1  
The OACTIVE flag means that the driver is either busy transmitting or that
the driver doesn't have any transmit space left. The fact that the driver
is seeing all the packets from the QNX machine, tells me that the driver
is working. Why it doesn't see all the packets from the other machine, I'm
not sure. Both of these drivers have been working for years.



On 2013-06-03 9:58 AM, "Thanushan Balakrishnan"
<community-noreply@qnx.com> wrote:

>Hi Hugh,
>
>I start to think it's not a hardware issue. I did a simple test by ping
>the Network card (ip address 10.1.0.3) from the PC (ip address 10.1.0.2)
>while a Ethernet protocol analyzer software running on the PC (Ethereal).
>The software reports that the 10.1.0.3 did not reply to some of the pings.
>However, when I ping the PC from QNX (ip address 10.1.0.3) the Ethereal
>shows that the PC receives all the pings and responds to it. This implies
>the Network card or QNX driver not getting the received packets.
>
>When I run the ifconfig, I see the following
>
>lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33212
>	capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
>	enabled=0<>
>	inet 127.0.0.1 netmask 0xff000000
>en0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>	address: 00:05:e5:00:19:9d
>	media: Ethernet 100baseTX full-duplex
>	status: active
>	inet 10.0.0.2 netmask 0xff000000 broadcast 10.255.255.255
>en1: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> mtu 1500
>	address: 00:06:d5:20:63:33
>	media: Ethernet 100baseTX full-duplex
>	status: active
>	inet 10.1.0.3 netmask 0xfffff000 broadcast 10.1.15.255
>
>
>What does the OACTIVE flag on en1 means?
>
>Thanks for your help
>
>Thanushan
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post101982
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com

Re: Using two network cards with QNX 6.2.1  
Hi Hugh,

I found this article on QNX website
http://www.qnx.org.uk/developers/docs/6.3.2/neutrino/technotes/finetune_net.html

which lists "National Semiconductor ne83815" as a low-performance NIC. I could not find a ne83815 anywhere (on the web 
or from National Semiconductor), does this actually means ns83815? this is the one I'm using. If so, may be the problem 
I'm facing is down to the fact that the NIC is a low-performance one.

Thanks,
Thanushan
Re: Using two network cards with QNX 6.2.1  
Yes, it is a low performance ns83815, but it should still work. You should
be able to run a 'ping -fs2048 io.address' to the machine with the ns83815
without losing any packets. That is a typo on our web site - it should
read ns83815.




On 2013-06-04 3:37 AM, "Thanushan Balakrishnan"
<community-noreply@qnx.com> wrote:

>Hi Hugh,
>
>I found this article on QNX website
>http://www.qnx.org.uk/developers/docs/6.3.2/neutrino/technotes/finetune_ne
>t.html
>
>which lists "National Semiconductor ne83815" as a low-performance NIC. I
>could not find a ne83815 anywhere (on the web or from National
>Semiconductor), does this actually means ns83815? this is the one I'm
>using. If so, may be the problem I'm facing is down to the fact that the
>NIC is a low-performance one.
>
>Thanks,
>Thanushan
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post101992
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com

Re: Using two network cards with QNX 6.2.1  
Mmm

tried 'ping -fs2048 10.1.0.3' still same issue. Intermittent time out!

Thanks for the info

Thanushan
Re: Using two network cards with QNX 6.2.1  
By switching the network card on the PC end made the 'ping' command 100% successful.

Thanks for your help
Thanushan
Re: Using two network cards with QNX 6.2.1  
Thanks for letting me know.




On 2013-06-05 10:12 AM, "Thanushan Balakrishnan"
<community-noreply@qnx.com> wrote:

>By switching the network card on the PC end made the 'ping' command 100%
>successful.
>
>Thanks for your help
>Thanushan
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post102018
>To cancel your subscription to this discussion, please e-mail
>general-community-unsubscribe@community.qnx.com

Re: Using two network cards with QNX 6.2.1  
Hi,

How can I make my QNX machine as a router?

My QNX machine has two NICs, en0 and en1.
en0 associated with IP address 10.0.0.2, subnetmask 255.255.240.0 and connected to 10.0.0.1
en1 is associated with IP address 10.1.0.3, subnetmask 255.255.240.0 and connected to 10.1.0.4

I believe it is possible for 10.1.0.4 to ping 10.0.0.1 (routing through QNX machine).

When I run the 'route show' command, I get the following output

Routing tables

Internet:
Destination      Gateway            Flags 
default          link#2             U      
10.0.0.0         link#2             U      
10.0.0.1         0:17:3f:cf:3:95    UH     
10.1.0.0         link#3             U      
10.1.0.4         2c:27:d7:26:fd:91  UH     
127.0.0.1        127.0.0.1          UH  

I tried to 'ping 10.0.0.1' from 10.1.0.4, but that failed.
So, I did
route add -net 10.0 -interface 10.0.0.2
route add -net 10.1 -interface 10.1.0.3

but that didn't make any difference.

I don't know what I'm doing wrong, Can you help?

Thanks,
Thanushan
Re: Using two network cards with QNX 6.2.1  
Hi,
Below is an extract from my "/etc/system/sysinit" on QNX 6.3.0 :

#-------------------------------------------------------------------------
# Note : Start the protocol stack for LAN B before LAN A since the rtl8169
# driver seems to 'grab' both interfaces even though pci=0 is specified.
# This approach works, but the second io-net command generates an error
# message.
#-------------------------------------------------------------------------
io-net -i 1 -d rtl8169 pci=1,duplex=1,speed=100 -p tcpip prefix=/lanb
waitfor /lanb/dev/socket
SOCK=/lanb ifconfig en0 test_rtu_b netmask 255.255.255.0
SOCK=/lanb route add -net default router_b
SOCK=/lanb inetd &

io-net -d rtl8169 pci=0,duplex=1,speed=100 -d i82544 
vid=0x8086,did=0x107C -p tcpip
waitfor /dev/socket
ifconfig en0 test_rtu_a netmask 255.255.255.0
route add -net default router_a
inetd &
hostname test_rtu_a
#-------------------------------------------------------------------------

Here,  I am using two similar network cards and the scripts allows me to 
configure each one. I hope this helps somewhat.

Regards,
Nonso Anyaegbunam

> Thanushan Balakrishnan <mailto:community-noreply@qnx.com>;
> 17 May 2013 10:23 AM
> Hi,
>
> I have a embedded system (PC/104+ based) running on QNX 6.2.1 which 
> has a Ethernet adapter (AMD PCNET (AMD-79c97x)), and the QNX boot 
> script looks like
>
> io-net -d pcnet transmit=64,reveive=32,verbose=2 -p tcpip &
> waitfor /dev/socket
>
> this works fine.
>
> Now I need to expand the function of this embedded system by adding 
> another Ethernet adapter. I have added a PC/104+ Ethernet module 
> (http://www.dpie.com/pc104/mercator.html) and made the following 
> change to the QNX boot script
>
> io-net -d pcnet transmit=64,reveive=32,verbose=2 -p tcpip &
> waitfor /dev/socket
> mount -T io-net devn-ns83815.so
> waitfor /dev/socket 5
>
> clearly this doesn't work. I have the following message on the terminal
> mount: Can't mount / (type io-net)
> mount: Possible reason: No such device
>
> Any help will be appreciated.
>
> Thanks
> Thanushan
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post101508
> To cancel your subscription to this discussion, please e-mail 
> general-community-unsubscribe@community.qnx.com
Attachment: HTML sf-attachment-mime12896 5.47 KB Image sf-attachment-mime12897 792 bytes
Re: Using two network cards with QNX 6.2.1  
Hi,
Thanks for the response.

I've tried the following
io-net -i 1 -d ns83815 pci=1 -p tcpip prefix=/lanb
waitfor /lanb/dev/socket
SOCK=/lanb ifconfig en0 test_rtu_b netmask 255.255.255.0
SOCK=/lanb route add -net default router_b
SOCK=/lanb inetd &
       
io-net -d pcnet transmit=64,receive=32,verbose=2 -p tcpip &
waitfor /dev/socket

which didn't make any different.

In your script the rtl8169 is used twice, once in
'io-net -i 1 -d rtl8169 pci=1,duplex=1,speed=100 -p tcpip prefix=/lanb'
and again in
'io-net -d rtl8169 pci=0,duplex=1,speed=100 -d i82544 vid=0x8086,did=0x107C -p tcpip'

do you have two rtl8169 and a i82544?

Thanks,
Thanushan