Hi,
I am trying to access a remote target system (PC104) and I just want to set
up a boot image that will let me ping, telnet and ftp my target (i.e. Just
get the servers running on the target). My bootscript is below. I get the
error message “Unable to access /x86 (2)” and I cannot make contact with the
target through the network. I tried not waiting for bin and although I get
no errors it still does not allow me access. As I am new to QNX I may have
made some fundamental errors. Any help/explanations are much appreciated!
RK
[+compress]
[virtual=x86,bios] .bootstrap = {
startup-bios -Nmachine-name
PATH=/proc/boot:/x86/bin
LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/x86/lib:/x86/dll procnto
}
[+script] .script = {
Start up some consoles
devc-con -n4 &
reopen /dev/con1
display_msg
display_msg Welcome to the the PC104 ! SMALL_OS VER 0.1
\
Start the pci server
seedres
pci-bios &
waitfor /dev/pci
\
Disk drivers - Not needed for the moment
devb-eide blk automount=hd0t79:/,cache=2m,automount=hd0t77:/usr/qnx4 &
\
Set up the Network so we can log-in to the target. Realtek PCI Network
card
io-net -d rtl -p ttcpip \
if=en0:140.203.8.251:255.255.0.0 default=140.203.7.1 &
\
Wait for the socket to be established
waitfor /dev/socket
display_msg Socket Established
\
Start inetd for telnetd , ftpd
inetd &
Wait up to 30 seconds for a bin for the rest of the commands
waitfor /x86 30
\
Some common servers
pipe &
mqueue &
devc-pty &
\
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] esh &
reopen /dev/con3
[+session] esh &
Start a high priority shell just in case…
reopen /dev/con4
[pri=25 +session] esh &
Start the main shell
reopen /dev/con1
[+session] esh
[+session] login -p
}
[dperms=0777 uid=0 gid=0]
[type=link] /tmp = /dev/shmem
[type=link] /usr/lib/ldqnx.so.2 = /proc/boot/libc.so
[type=link] /bin = x86/bin
[type=link] /lib = x86/lib
[type=link] /dll = x86/dll
[type=link] /sys = x86/sys
[gid=0 uid=0 perms=777 data=uip code=uip] /proc/boot/libc.so =
F:\QNXsdk\target\qnx6\x86\lib\libc.so
[gid=0 uid=0 perms=777 data=uip code=uip] /proc/boot/fpemu.so.2 =
F:\QNXsdk\target\qnx6\x86\lib\dll\fpemu.so.2
[gid=0 uid=0 perms=777 data=uip code=uip] /proc/boot/libcam.so =
F:\QNXsdk\target\qnx6\x86\lib\libcam.so
[gid=0 uid=0 perms=777 data=uip code=uip] /proc/boot/io-blk.so =
F:\QNXsdk\target\qnx6\x86\lib\dll\io-blk.so
[gid=0 uid=0 perms=777 data=uip code=uip] /proc/boot/cam-disk.so =
F:\QNXsdk\target\qnx6\x86\lib\dll\cam-disk.so
[gid=0 uid=0 perms=777 data=uip code=uip] /proc/boot/fs-qnx4.so =
F:\QNXsdk\target\qnx6\x86\lib\dll\fs-qnx4.so
[gid=0 uid=0 perms=777 data=uip code=uip] /proc/boot/cam-cdrom.so =
F:\QNXsdk\target\qnx6\x86\lib\dll\cam-cdrom.so
[gid=0 uid=0 perms=777 data=uip code=uip] /proc/boot/fs-cd.so =
F:\QNXsdk\target\qnx6\x86\lib\dll\fs-cd.so
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/devc-con =
F:\QNXsdk\target\qnx6\x86\sbin\devc-con
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/devb-eide =
F:\QNXsdk\target\qnx6\x86\sbin\devb-eide
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/pci-bios =
F:\QNXsdk\target\qnx6\x86\sbin\pci-bios
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/seedres =
F:\QNXsdk\target\qnx6\x86\sbin\seedres
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/devc-pty =
F:\QNXsdk\target\qnx6\x86\sbin\devc-pty
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/esh =
F:\QNXsdk\target\qnx6\x86\bin\esh
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/io-net =
F:\QNXsdk\target\qnx6\x86\sbin\io-net
[gid=0 uid=0 perms=777 data=uip code=copy] /proc/boot/devn-rtl.so =
F:\QNXsdk\target\qnx6\x86\lib\dll\devn-rtl.so
[gid=0 uid=0 perms=777 data=uip code=copy] /proc/boot/npm-ttcpip.so =
F:\QNXsdk\target\qnx6\x86\lib\dll\npm-ttcpip.so
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/ls =
F:\QNXsdk\target\qnx6\x86\bin\ls
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/pwd =
F:\QNXsdk\target\qnx6\x86\bin\pwd
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/telnetd =
F:\QNXsdk\target\qnx6\x86\usr\sbin\telnetd
[gid=0 uid=0 perms=777 data=uip code=uip] /proc/boot/libsocket.so.2 =
F:\QNXsdk\target\qnx6\x86\lib\libsocket.so.2
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/ftpd =
F:\QNXsdk\target\qnx6\x86\usr\sbin\ftpd
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/inetd =
F:\QNXsdk\target\qnx6\x86\usr\sbin\inetd
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/pipe =
F:\QNXsdk\target\qnx6\x86\sbin\pipe
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/mqueue =
F:\QNXsdk\target\qnx6\x86\sbin\mqueue
[gid=0 uid=0 perms=777 data=copy code=uip] /proc/boot/ping =
F:\QNXsdk\target\qnx6\x86\usr\bin\ping