Brian K. Hlady wrote:
Is it possible for you to post your build file, and inetd.conf, please?
Cheers,
-Brian
Dear Brian,
OK, here is a bunch of stuff. Not everything (by a long
shot) is in the build file. More information is posted here
after the build file. Also, I am starting some things by hand
during the initial set up and testing phase (see the sin output
at the end…)
Thanks!
Rich
First the base build file:
###########################################################################
Neutrino on an PC BIOS compatible system
This is for building a bootable neutrino image that will run from its
own filesystem partition on M-Systems DiskOnChip.
Note that the default image links at 4M. If you have 4M or less,
uncomment the line below
[image=1m]
###########################################################################
[virtual=x86,bios +compress] boot = {
startup-bios -Nst5ka
PATH=/proc/boot:/bin
:/sbin LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/lib:/lib/dll procnto
}
[+script] startup-script = {
Start up some consoles
devc-con -n 1 &
reopen /dev/con1
display_msg “”
display_msg Welcome to Neutrino on the ST5000
Disk drivers (The default one and some fun others for your pleasure…)
display_msg Start the DiskOnChip driver
devb-doc doc addr=0xe8000 blk automount=hd0t77:/
Wait for a bin for the rest of the commands (up to 30 secs)
waitfor /bin 30
Some common servers
display_msg Start common servers
pipe &
mqueue &
devc-ser8250 -b 38400 -e -f &
waitfor /dev/ser1 30
These env variables inherited by all the programs which follow
SYSNAME=nto
HOME=/
TERM=qansi
PATH=/proc/boot:/bin:/sbin:/usr/bin:/home/jwp
LIBRARY_PATH=/proc/boot:/dev/shmem:/lib:/lib/dll
LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/lib:/lib/dll
TCL_LIBRARY=/home/jwp/
tcl_library=/home/jwp/
Start the network -rlb
display_msg Start the network
io-net -d ne2000 -p qnet -p ttcpip if=en0:144.92.179.68:255.255.255.0 &
Start tinit
display_msg Start tinit
/sbin/tinit TCL_LIBRARY=/home/jwp/ tcl_library=/home/jwp/
Start the main shell
display_msg Start the main shell
reopen /dev/con1
[+session] sh
[+session] login -p
}
Cheat and make the /temp point to the shared memory area…
[type=link] /tmp=/dev/shmem
Redirect console messages for syslog
[type=link] /dev/console=/dev/con1
Programs require the runtime linker (ldqnx.so) to be at a fixed location
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
We use the “c” shared lib (which also contains the runtime linker)
libc.so
Include the socket library
libsocket.so
Include the hard disk files so we can access files on the disk
libcam.so
io-blk.so
filesystem required shared libs
cam-disk.so
fs-qnx4.so
The files above this line can be shared by mutiple processes
Executables must currently be below this line
[data=copy]
Include DiskOnChip driver.
…/doc.6.2/devb-doc
Include a console driver
devc-con
/etc/config/ttys {
ser2 “/bin/sh” ansi on
}
listing of selected directories and files on target
bin
dev
etc
lib
net
proc
sbin
usr
directory bin
cat
chgrp
chmod
chown
cp
dd
df
du
echo
false
hostname
kill
ln
login
logout
ls
mkdir
more
mount
mv
ps
pwd
rm
sh
shutdown
sin
slay
stty
true
umount
directory dev
con1
hd0
hd0t77
io-net
kbd
mem
netmgr
null
pipe
ptyp0
ptyp1
ptyp2
ptyp3
ptyp4
ptyp5
ptyp6
ptyp7
ser1
ser2
shmem
socket
text
tty
ttyp0
ttyp1
ttyp2
ttyp3
ttyp4
ttyp5
ttyp6
ttyp7
zero
directory etc
config
inetd.conf
services
directory lib
dll
libc.a
libc.so
libc.so.1
libc.so.2
libcS.a
libcam.so
libcam.so.1
libcam.so.2
libcpp.a
libcpp.so
libcpp.so.2
libcpp.so.2a
libcppS.a
libm.so
libm.so.2
libsocket.so
libsocket.so.2
directroy lib/dll
devn-ne2000.so
npm-qnet.so
npm-tcpip-v4.so
npm-tcpip-v6.so
npm-tcpip.so
npm-ttcpip.so
directory proc
1
10
12300
2
3
4
5
6
7
8
8203
9
boot
ipstats
qnetstats
directory sbin
devc-pty
devc-ser8250
ifconfig
io-net
mqueue
pipe
tinit
directory usr
bin
lib
sbin
bin
lib
sbin
directory usr/sbin
ftpd
inetd
telnetd
output of sin
procnto 1 0 0 0 0 4331226
devc-con 2 44K 56K 4K 516K 568
devb-doc 3 128K 5253K 32K 608K 12968
pipe 4 16K 52K 20K 912K 75
mqueue 5 12K 36K 4K 516K 67
devc-ser8250 6 28K 56K 4K 516K 81
io-net 7 56K 460K 48K 1581K 23872
tinit 8 8K 36K 8K 516K 73
sh 9 148K 72K 8K 516K 158
sh 10 148K 72K 4K 516K 81
devc-pty 8203 28K 68K 4K 516K 88
inetd 12300 36K 68K 8K 516K 121
sin 53261 84K 44K 8K 516K 92