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
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