Full Tcpip

Dear all
I wnat to use full “tcpip” for my boot image. My boot program is follow.
It has a error message

ifconfig:socket:Address family not supported by protocol family
Unable to access “/dev/socket” (2)

I don’t know what is the question?
How can I be to alter! help me!

[virtual=x86,bios +compress] .bootstrap = {
#[virtual=x86,bios] .bootstrap = {
startup-bios
PATH=/proc/boot procnto -smp
}

[+script] startup-script = {
display_msg “Welcome to QNX Neutrino on an PC compatible BIOS system for SMP”
seedres
pci-bios &
waitfor /dev/pci
# Start 1 keyboard console
devc-con -n8 &
# Start serial A driver
waitfor /dev/con1
reopen /dev/con1
#reopen
devc-ser8250 -e -b38400
waitfor /dev/ser1
pipe
#touch /tmp/syslog
syslogd
slogger
# scan IDE machine
devb-eide
#devb-eide blk cache=5M
waitfor /dev/hd0
mount /dev/hd0 /
devc-pty

/USB driver*/

display_msg “Start USB driver…”
io-usb -duhci -dohci -dehci
waitfor /dev/io-usb/io-usb 4

/USB adepter*/

#io-net -dasix verbose -pttcpip if=en0:10.153.29.101 &

#####/end USB driver*/

display_msg "Start network interface"

#**************************************************************************************************
[b]#test mount on the tcpip
#d-link
io-net -i1 -dvia-rhine -ptcpip prefix=/alt
SOCK=/alt ifconfig en0 10.153.29.95 netmask 255.255.255.0

 #USB adapter
  io-net -i1 -dasix -ptcpip prefix=/esb 
 SOCK=/esb ifconfig en0 10.153.29.94 netmask 255.255.255.0
 
 #on board two net chip
 #io-net -i2 -di82544 -ptcpip prefix=/epc0 
 #SOCK=/epc0 ifconfig en0 192.168.0.124 netmask 255.255.255.0
 
 #io-net -i3 -di82544 -ptcpip prefix=/epc1 
 #SOCK=/epc1 ifconfig en0 10.153.29.124 netmask 255.255.255.0[/b]         

#*******************************************************************************************************

waitfor /dev/socket 
qconn port=8000
inetd &
qconn &
display_msg "Startup Finish"
[+session] PATH=/bin:/proc/boot esh &

}

Make /tmp point to the shared memory area…

[type=link] /tmp=/dev/shmem

Programs require the runtime linker (ldqnx.so) to be at

a fixed location

[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
#[type=link] /bin/sh=/bin/ksh

[type=link] /bin/sh=/bin/esh
#[type=link] /dev/socket=/dev/socket

We use the “c” shared lib (which also contains the

runtime linker)

libc.so
libm.so
libsocket.so
npm-tcpip.so
npm-tcpip-v4.so
#npm-ttcpip.so
#npm-pppmgr.so

#devn-ne2000.so
#D-link net card LIB
devn-via-rhine.so

#RTL net card LIB
devn-rtl.so

devn-i82544.so
io-blk.so
fs-qnx4.so
cam-disk.so
libcam.so

#####/uncomment for USB driver/
libusbdi.so
devu-uhci.so
devu-ohci.so
devu-ehci.so
devn-asix.so
######/end USB driver/

The files above this line can be shared by multiple

processes

[data=c]
devc-con
devc-ser8250
devc-pty
pci-bios
seedres
mqueue
pipe
io-net
/bin/echo=echo
/bin/stty=stty
#/dev/socket=/dev/socket
cat
tail
pci
#chat
ifconfig
ping
syslogd
#touch
slogger
ls
qconn
pidin
pdebug
slay
mount
devb-eide
ftp
inetd
shutdown
sin
use
esh
mount
sloginfo
telnet

#####/USB/
io-usb
usb
#####/end USB/

#./modem_ans_ppp.sh

#Services (telnetd etc) config

/usr/sbin/telnetd=telnetd
/usr/sbin/ftpd=ftpd
#/usr/sbin/pppd=pppd
/bin/login=login
/bin/sh=esh

/etc/ppp/chap-secrets = {

Client Server Secret Addrs

#########################################

  •       *           "password"  *
    

}
/etc/syslog.conf = {
. /tmp/syslog
. /…/…
}

Inetd config Files

/etc/services= /etc/services
/etc/protocols= /etc/protocols
/etc/termcap= /etc/termcap
/etc/passwd= /etc/passwd
/etc/default/login= /etc/default/login
/etc/resolv.conf= /etc/resolv.conf
/etc/shadow = /etc/shadow
#061218-ftp
#/home/sam = /home/sam

/etc/inetd.conf = {
telnet stream tcp nowait root /usr/sbin/telnetd in.telnetd
#tftp dgram udp wait root /usr/sbin/tftpd in.tftpd
ftp stream tcp nowait root /usr/sbin/ftpd in.ftpd
-l
}

#061218-ftp deline
/etc/services={
ftp 21/tcp
telnet 23/tcp
}

#061218-ftp deline
/etc/ftpusers={

}

/etc/shadow={
root:CDIdxOja3k5lk:1166770462:0:0
}

/etc/passwd={
root::0:0:Superuser:/:/bin/sh
ftp:x:14:80:FTP User:/:
ftplogin:x:0:0::/:/bin/sh
}

I’m don’t understand what you want to do, but you must do, for examle, somthing like this:

io-net -dvia-rhine -dasix -ptcpip
waitfor /dev/socket
waitfor /dev/io-net/en0
waitfor /dev/io-net/en1

ifconfig en0 10.0.86.XX netmask 255.255.255.0
ifconfig en1 10.0.87.XX netmask 255.255.255.0

Thanks your ans:
but I still have a question:
If my mother board has two same network chipset. How do I set the enX?
If my program is :

  [b]io-net -i3 -di82544 -ptcpip prefix=/epc0 
  waitfor /epc0/dev/socket/3
  SOCK=/epc0 ifconfig en0 192.168.0.124 netmask 255.255.255.0

  io-net -i4 -di82544 -ptcpip prefix=/epc1 
  waitfor /epc1/dev/socket/4
  SOCK=/epc1 ifconfig en0 10.153.29.124 netmask 255.255.255.0[/b]

And the chipset Info is:
Class = Network (Ethernet)
Vendor ID = 8086h, Intel Corporation
Device ID = 108ch, Unknown Unknown
PCI index = 0h
PCI Mem Address = fdbe0000h enabled
PCI Mem Address = fdb00000h enabled
PCI IO Address = df00h enabled
PCI Int Pin = INT A
Interrupt line = 15
CPU Interrupt = fh

Class = Network (Ethernet)
Vendor ID = 8086h, Intel Corporation
Device ID = 108ch, Unknown Unknown
PCI index = 1h
PCI Mem Address = fdde0000h enabled
PCI Mem Address = fdd00000h enabled
PCI IO Address = cf00h enabled
PCI Int Pin = INT A
Interrupt line = 11
CPU Interrupt = bh

May be so?

io-net -i3 -di82544 -ptcpip prefix=/epc0
waitfor /epc0/dev/socket/3
SOCK=/epc0 ifconfig /dev/io-net3/en0 192.168.0.124 netmask 255.255.255.0

io-net -i4 -di82544 -ptcpip prefix=/epc1
waitfor /epc1/dev/socket/4
SOCK=/epc1 ifconfig /dev/io-net4/en0 10.153.29.124 netmask 255.255.255.0

but the path “/dev/io-net3” has en0 and en1 then the path “/dev/io-net4” don’t have any enX .
so I can’t set the IP in the io-net4 . How do I set the i82544 to “/dev/io-net3/en0” and the other i82544 to “/dev/io-net/en0”

o-net -i3 -di82544 -ptcpip prefix=/epc0
waitfor /epc0/dev/socket/3
SOCK=/epc0 ifconfig /dev/io-net3/en0 192.168.0.124 netmask 255.255.255.0

io-net -i4 -di82544 -ptcpip prefix=/epc1
waitfor /epc1/dev/socket/4
SOCK=/epc1 ifconfig /dev/io-net3/en1 10.153.29.124 netmask 255.255.255.0

my boot program:
[b]io-net -i1 -di82544 -ptcpip prefix=/epc0
waitfor /epc0/dev/socket/1
SOCK=/epc0 ifconfig en0 192.168.0.124 netmask 255.255.255.0
waitfor /dev/io-net1/en0

  io-net -i2 -di82544 -ptcpip prefix=/epc1 
  waitfor /epc1/dev/socket/2
  SOCK=/epc1 ifconfig /dev/io-net1/en1 10.153.29.124 netmask 255.255.255.0
 waitfor /dev/io-net1/en1
 
  io-net -i3 -dvia-rhine -ptcpip prefix=/alt
  waitfor /alt/dev/socket/3
  SOCK=/alt ifconfig en0 10.153.29.95 netmask 255.255.255.0
  waitfor /dev/io-net3/en0
  
  io-net -i4 -dasix -ptcpip prefix=/esb 
  waitfor /esb/dev/socket/4
  SOCK=/esb ifconfig en0 10.153.29.94 netmask 255.255.255.0
  waitfor /dev/io-net4/en0[/b]

but error message:
unable to init dll devn-i82544 : Resource busy
Ifconfig:SIOCGIFFLAGS /dev/io-net1/en1: No such device or address
Unable to access “/alt/dev/socket/3" (2)
Unable to access “/esb/dev/socket/3" (2)
Couldn’t initialize listen service: Address family not supported by protocol family

and the path “/alt/dev/socket” and path “/esb/dev/socket” only have “1”,“2”,“17”,“config”,“autoconnect”,“netmanager”


and the path “/alt/dev/socket” and path “/esb/dev/socket” only have “1”,“2”,“17”,“config”,“autoconnect”,“netmanager”

This is “Address families”:
1 - AF_LOCAL
2 - AF_INET
17 - AF_ROUTE
So - waitfor /alt/dev/socket/3 , waitfor /esb/dev/socket/4 not right!

What you see when do next:

io-net -i0 -di82544 -ptcpip prefix=/epc0
waitfor /epc0/dev/socket
SOCK=/epc0 ifconfig /dev/io-net0/en0 192.168.0.124 netmask 255.255.255.0

io-net -i1 -di82544 -ptcpip prefix=/epc1
waitfor /epc1/dev/socket
SOCK=/epc1 ifconfig /dev/io-net1/en0 10.153.29.124 netmask 255.255.255.0

What you see when:
ls /dev/io-net0
ls /dev/io-net1

ls /epc0/dev/socket
ls /epc1/dev/socket
?

Let’s try…

io-net -i1 -di82544 pci=0 -ptcpip prefix=/epc0
waitfor /epc0/dev/socket/1
SOCK=/epc0 ifconfig en0 192.168.0.124 netmask 255.255.255.0
waitfor /dev/io-net1/en0

io-net -i2 -di82544 pci=1-ptcpip prefix=/epc1
waitfor /epc1/dev/socket/1
SOCK=/epc1 ifconfig en0 10.153.29.124 netmask 255.255.255.0
waitfor /dev/io-net2/en0

pci=0, pci=1 – realy good idea!
maybe it remove this error:
unable to init dll devn-i82544 : Resource busy

Thanks! now I can ping to every net port.but I can’t use the “telnet” and “ftp”.
I use “forword”,but it still don’t action.
1ã€

From the program you can’t set a MAC.


How can I enable “telnet” and “ftp”


How you disable it’s? (joke)

[quote=“milk_2000kimo”]
Thanks! now I can ping to every net port.but I can’t use the “telnet” and “ftp”.
I use “forword”,but it still don’t action.
1ã€

How do I get the i82544’s mac number from QNX host?
I don’t know the command!
Can you tell me ?
thanks!

“ifconfig” tell you.
string: “address: 00:13:8f:5b:cb:e4” - you MAC.