Hi,
I am trying to get telnet working on my BSP image using QNX SDK 6.5. I include
my build file below, there are only slight changes from the original.
I have disabled the firewall on my Windows PC. And I’m using tsec1.
When I try to telnet from Windows to the target it trys to connect and says
“Could not open connection to the host, on port 23: Connect failed”.
Telnet from QNX to windows gives:
telnet 192.168.0.70
Trying 192.168.0.70…
telnet: Unable to connect to remote host: Connection refused
Can anyone give any advice as to what I need to do to get this working
correctly?
Thanks
ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
inet 127.0.0.1 netmask 0xff000000
tsec0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
capabilities rx=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
capabilities tx=0
enabled=0
address: 00:00:12:34:56:78
media: Ethernet autoselect (1000baseT full-duplex)
status: active
inet 1.2.3.4 netmask 0xff000000 broadcast 1.255.255.255
tsec1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
capabilities rx=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
capabilities tx=0
enabled=0
address: 00:00:12:34:56:7a
media: Ethernet autoselect (1000baseT full-duplex)
status: active
inet 192.168.0.80 netmask 0xffffff00 broadcast 192.168.0.255
###########################################################################
QNX Neutrino 6.4.0 on the Freescale MPC8313E RDB board
###########################################################################
SUPPORTED DEVICES:
SERIAL: DUART
NETWORK: eTSEC1( five Vitesse VSC7385) and eTSEC2 (Marvell 88E1111 PHY)
I2C:
FLASH: (SPANSION S29GL054A90TFIR3)
NAND:
SPI:
PCI:
USB:
- For detailed instructions on the default example configuration for
these devices see the “CONFIGURING ON-BOARD SUPPORTED HARDWARE”
section below the build script section, or refer to the BSP docs.
- Tip: Each sub-section which relates to a particular device is marked
with its tag (ex. SERIAL). You can use the search features of
your editor to quickly find and add or remove support for
these devices.
- For details on how build files work, please refer to the help
documentation for “mkifs” in the QNX Neutrino Utilities Reference.
###########################################################################
NOTES:
###########################################################################
###########################################################################
START OF BUILD SCRIPT
###########################################################################
[image=0x200000]
[+compress]
[virtual=ppcbe,raw] .bootstrap = {
startup-mpc8313e-rdb -vvvv
#######################################################################
## PATH set here is the safe path for executables.
## LD_LIBRARY_PATH set here is the safe path for libraries.
## i.e. These are the paths searched by setuid/setgid binaries.
## (confstr(_CS_PATH…) and confstr(_CS_LIBPATH…))
#######################################################################
PATH=:/proc/boot:/bin:/usr/bin LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll procnto-600 -vvvv
}
[+script] startup.script = {
procmgr_symlink …/…/proc/boot/libc.so.3 /usr/lib/ldqnx.so.2
display_msg Welcome to QNX Neutrino 6.4.0 on the Freescale MPC8313E RDB board
#######################################################################
## SERIAL driver
#######################################################################
devc-ser8250 -e -F -c166000000 -b115200 0xe0004500,0x09 0xe0004600,0x0A
waitfor /dev/ser1
reopen /dev/ser1
slogger
pipe
#######################################################################
## Network driver
#
## Please note:
#<1> the Vitesse switch firmware must first be loaded before the QNX image is run. This must be done after every reset of the board.
# Add the following to the U-boot environment:
# setenv ldswitch 'cp.b fe710000 40000 11000; go 40004'
# setenv bootcmd 'tftpboot $loadaddr $bootfile; run ldswitch; go $loadaddr'
#
# <2>tsec0 must always be forced to GigE because of a known issue with the Vitesse chip.
#ifconfig tsec0 media 1000BaseT mediaopt full-duplex
#
# This procedure is explained in the Freescale MPC8313E-RDB BSP User's Manual.
#
#######################################################################
# To start the driver on TSEC0 (five 10/100/100 BaseT RJ-45 interface using Vitesse VSC7385 L2 switch) and
# on TSEC1 (one 10/100/100 BaseT RJ-45 interface using Marvell 88E1111 PHY)
display_msg starting TSEC0
io-pkt-v4 -dmpc85xx pci=0,syspage,emu_phy=0,irq_tx=32,irq_rx=33,irq_err=34
display_msg starting TSEC1
io-pkt-v4 -d mpc85xx pci=1,ioport=0xe0025000,irq_tx=35,irq_rx=36,irq_err=37
display_msg starting TSEC0 and TSEC1
io-pkt-v4 -dmpc85xx pci=0,syspage,emu_phy=0,irq_tx=32,irq_rx=33,irq_err=34 -d mpc85xx pci=1,ioport=0xe0025000,irq_tx=35,irq_rx=36,irq_err=37
#io-pkt-v4 -dmpc85xx pci=0,syspage,emu_phy=0,irq_tx=32,irq_rx=33,irq_err=34 -pttcpip -d mpc85xx pci=1,ioport=0xe0025000,irq_tx=35,irq_rx=36,irq_err=37 -pttcpip
#ifconfig tsec0 1.2.3.4
#ifconfig tsec1 192.168.0.80
dhcp.client tsec1
#io-pkt-v4 -d mpc85xx pci=1,ioport=0xe0025000,irq_tx=35,irq_rx=36,irq_err=37
#ifconfig tsec0 192.168.0.80
#tcp/ip
#io-net -d mpc85xx -p ttcpip if=ndi0:192.168.0.80 &
waitfor /dev/socket
inetd &
#######################################################################
## REMOTE_DEBUG (gdb or Momentics)
## - refer to the help documentation for the gdb, qconn and the IDE
## for more information on remote debugging
## - the commands shown require that NETWORK is enabled too
#######################################################################
devc-pty
waitfor /dev/ptyp0 4
waitfor /dev/socket 4
qconn port=8000
#######################################################################
## NOR FLASH driver
#######################################################################
#display_msg Starting flash driver...
devf-generic -s 0xFE000000,8M
#######################################################################
## NAND FLASH driver
## - supports 1 bank of NAND flash (32 MB), selected by the
## 'cs=x' driver-specific option, where x=0,1 are the allowable
## values.
#######################################################################
#display_msg Starting ETFS driver for NAND flash...
#fs-etfs-mpc8313erdb512 -D cs=1 -m /fs/etfs
#######################################################################
## USB driver
#######################################################################
#display_msg Starting USB driver...
#io-usb -d ehci-8313 ioport=0xe0023100,irq=38 &
#waitfor /dev/io-usb/io-usb 4
#######################################################################
## I2C driver
#######################################################################
#display_msg Starting i2c driver...
# For I2C channel 1
#i2c-mpc5200 -p0xe0003000 -c88000000 -i14 --u1
# For I2C channel 2
#i2c-mpc5200 -p0xe0003100 -c88000000 -i15 --u0
#######################################################################
## SPI driver
#######################################################################
#display_msg Starting SPI driver...
#spi-master -d mpc8349
#######################################################################
## PCI server
#######################################################################
#display_msg Starting PCI server...
#pci-mpc8313 &
#waitfor /dev/pci 4
#######################################################################
## These env variables are inherited by all the programs which follow
#######################################################################
SYSNAME=nto
TERM=qansi
HOME=/
PATH=:/proc/boot:/bin:/usr/bin:/opt/bin
LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll:/opt/lib
[+session] ksh &
}
[type=link] /bin/sh=/proc/boot/ksh
[type=link] /dev/console=/dev/ser1
[type=link] /tmp=/dev/shmem
libc.so
this link is required for debugging
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
#[type=link] /bin/telnetd=/proc/boot/telnetd
###########################################################################
uncomment for NETWORK driver
###########################################################################
devnp-mpc85xx.so
libsocket.so
[data=c]
devc-ser8250
###########################################################################
uncomment for NETWORK driver
###########################################################################
io-pkt-v4
nicinfo
ifconfig
ping
cat
netstat
fs-cifs
ftp
dhcp.client
io-net
###########################################################################
uncomment for REMOTE_DEBUG (gdb or Momentics)
###########################################################################
devc-pty
qconn
/usr/bin/pdebug=pdebug
###########################################################################
uncomment for NOR FLASH driver
###########################################################################
devf-generic
flashctl
###########################################################################
general commands
###########################################################################
ls
cp
ksh
pipe
pidin
uname
slogger
sloginfo
slay
mount
umount
shutdown
kill
find
inetd
telnet
telnetd
vi
ps
/etc/hosts = {
127.0.0.1 localhost
}
/etc/services = {
ftp 21/tcp
telnet 23/tcp
finger 79/tcp
pdebug 8000/tcp
}
/etc/inetd.conf = {
ftp stream tcp nowait root /bin/fdtpd fdtpd
telnet stream tcp nowait root /bin/telnetd telnetd
finger stream tcp nowait root /bin fingerd
pdebug stream tcp nowait root /bin/pdebug pdebug -
}