buildfile for telnetd on embedded platform

Subject:
bringing up telnetd on embedded sys
Date:
Thu, 21 Aug 2003 15:39:14 -0400
From:
Jeff Strickrott <jstric01@cs.fiu.edu>
Newsgroups:
qdn.public.qnxrtp.embedded




Hi All:

I have been trying to bring up a telnetd and ftpd server on a PC a test
platform. I am running RTP 6.1 NC (so that I can play with mkifs) and
booting my image from floppy.

I originally started off with a buildfile example from the deeply
embedded section of the Help file. I have included the modified version
below.

Problem: When I start telnetd (i.e., telnetd -debug -D report) manually

from a shell on the test platform I get the message “going down on
signal 18” from the slog file. I disabled inetd to narrow the problem
down. What am I missing in my buildfile? Any suggestions?

Thanks in advance for the help.

Regards,
–Jeff Strickrott

====== Buildfile

Svr Builfile

Aim: To make a network-enabled debug server using telnet, ftp to

pdebug

Target: x86,bios

[virtual=x86,bios +compress] .bootstrap={
startup-bios -s 64k
PATH=/proc/boot LD_LIBRARY_PATH=/proc/boot:/usr/lib procnto
}

[+script] startup-script = {
display_msg Welcome to QNX on a PC-compatible BIOS system
seedres

display_msg “Starting slogger”
slogger &
waitfor /dev/slog

display_msg “Starting PCI BIOS”
pipe &
pci-bios &
waitfor /dev/pci

put in your actual IP,netmask and gateway

display_msg “Starting Network Driver”
io-net -dne2000 -ptcpip
waitfor /dev/io-net/en0
waitfor /dev/socket

ifconfig en0 192.168.0.200 netmask 255.255.255.0
route add default 192.168.0.1

display_msg “Starting inetd”

inetd &

pdebug needs devc-pty and esh

devc-pty &
waitfor /dev/ttyp0

display_msg “Starting Console”
devc-con -n1 &
reopen /dev/con1
[+session] HOME=/ TERM=qansi-m ksh &

[+session] esh &

}

file links

[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so

[type=link] /tmp=/dev/shmem # tmp points to shared memory

binary files to include in image

libc.so
libsocket.so
npm-tcpip.so
devn-ne2000.so
pci-bios
seedres

devc-con
io-net
pipe
devc-pty
inetd
ftpd
telnetd
pdebug
# esh
ksh
ping
ls
more
hostname
ifconfig
route
/etc/hosts=/etc/hosts
/etc/termcap=/etc/termcap
/bin/login=/bin/login
/bin/termdef=/bin/termdef
/etc/passwd=/etc/passwd
/etc/group=/etc/group
# /etc/shadow=/etc/shadow
/ect/shells=/etc/shells
slay
ps
telnet
ftp
slogger
sloginfo

# Data files are created in the named  directory.
# /etc/hosts = {
# 127.0.0.1 localhost
# 192.168.0.200 Qdebug
# 192.168.0.1 scrunch
# 192.168.0.25 Q1
#}

/etc/services = {
ftp  21/tcp
telnet 23/tcp
pdebug 8000/tcp
}

/etc/inetd.conf = {
ftp     stream    tcp    nowait    root    /bin/fdtpd      fdtpd
telnet  stream    tcp    nowait    root    /bin/telnetd    telnetd
pdebug  stream    tcp    nowait    root    /bin/pdebug     pdebug -
}

/etc/resolv.conf = {
nameserver 131.94.128.2
nameserver 131.94.64.4
}


====== Trace of debug from MS Windows Telent client
td: send do TERMINAL TYPE
td: send do TSPEED
td: send do XDISPLOC
td: send do OLD-ENVIRON
td: ttloop
td: netflush 118 chars
td: ttloop read 6 chars
td: recv will TERMINAL TYPE
td: recv will NAWS
td: send do NAWS
td: ttloop
td: netflush 107 chars
td: ttloop read 9 chars
td: recv wont TSPEED
td: recv wont XDISPLOC
td: recv wont OLD-ENVIRON
td: ttloop
td: netflush 116 chars
td: ttloop read 12 chars
td: recv will NAWS
td: netflush 46 chars
td: recv suboption NAWS 0 80 (8
td: netflush 45 chars
td: ttloop
td: netflush 12 chars
td: ttloop read 10 chars
td: netflush 26 chars
td: recv suboption TERMINAL-TYP
td: ttloop
td: netflush 62 chars
td: ttloop read 11 chars
td: netflush 26 chars
td: recv suboption TERMINAL-TYP
td: ttloop
td: netflush 63 chars
td: ttloop read 10 chars
td: netflush 26 chars

==> the the terminal stops at this point (no login prompt) and will drop

the conection when I hit return.

Connection to host lost.

C:\WINNT\system32>