I am having problem getting telnet to work on my x86 target. The message I get is:
Trying to connect to 192.168.1.221…
Connected to 192.168.1.221.
Escape character is ‘^]’.
Connection closed by foreign host.
Here is the buildfile I’m using:
[virtual=x86,bios +compress] boot = {
startup-bios
PATH=/proc/boot procnto
}
[+script] startup-script = {
# Start up some consoles
devc-con -n4 &
reopen /dev/con1
display_msg Welcome to QNX
# Start the PCI server
seedres
pci-bios &
waitfor /dev/pci
# Start IDE and mount the flash disk in /usr/hdd
devb-eide blk automount=hd0t77:/usr/hdd &
# Start Networking
io-net -d ns83815 duplex=0 -p tcpip
waitfor /dev/socket
ifconfig en0 192.168.1.222 netmask 255.255.255.0
route add default 192.168.1.1
inetd
Some common servers
pipe &
mqueue &
devc-ser8250 &
devc-pty &
# Start a debug server for debugging programs
waitfor /dev/ser1
[+session] pdebug /dev/ser1 &
# These env variables inherited by all the programs which follow
SYSNAME=nto
TERM=qansi
# Start some extra shells on other consoles
reopen /dev/con2
[+session] sh &
reopen /dev/con3
[+session] sh &
# Start a high priority shell just in case
reopen /dev/con4
[pri=25 +session] sh &
# Start the main shell
reopen /dev/con1
[+session] sh
}
Make the /temp 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
libc.so
Libraries
[type=link] /lib/stdc++.so.2.2.10.0=/proc/boot/libstdc++.so
[type=link] /lib/libm.so.2=/proc/boot/libm.so
libstdc++.so
libm.so
[data=c]
Executables must currently be below this line
Include a console driver
devc-con
Include pci server
pci-bios
seedres
Network related items
/lib/dll/devn-ns83815.so # National Semiconductor DP83815 “Macphyter”
/lib/dll/npm-tcpip.so
libsocket.so
/etc/termcap=/etc/termcap
/etc/hosts=/etc/hosts
/etc/resolv.conf=/etc/resolv.conf
/etc/inetd.conf=/etc/inetd.conf
/etc/services=/etc/services
/etc/protocols=/etc/protocols
/etc/ftpusers=/etc/ftpusers
Use the “public domain korn shell” as the default shell “sh”
sh=ksh
Other executables
libcam.so
io-blk.so
cam-disk.so
fs-qnx4.so
pdebug
pipe
mqueue
devc-ser8250
devc-pty
devb-eide
ls
cat
ps
pidin
uname
find
/sbin/io-net
/sbin/ifconfig
/sbin/route
/usr/bin/telnet
/usr/bin/ftp
/usr/bin/ping
/usr/sbin/inetd
/usr/sbin/telnetd
/usr/sbin/ftpd
My application
/root/test
If anyone can help me get this working I will greatly appreciate it. I can show the contents of other files if you need me to.
Thanks in advance!!!