“Hardware Support Account” <hw@qnx.com> wrote in message
news:9r6j8i$1hg$2@nntp.qnx.com…
Hi Ray,
Your best move is really to install to a harddrive then copy the
required files over to the DOC. However lets see what your OS
image is and your sysinit file (please post). Also the output of
sin ar once the system is running.
OS Image (doc2000):
–
sys/boot
$ boot -v
sys/Proc32
$ Proc32 -l 1
sys/Slib16
$ Slib16
sys/Slib32
$ Slib32
/bin/Fsys
$ Fsys
/bin/Fsys.diskonchip
$ Fsys.diskonchip
/bin/mount
$ mount -p/dev/tffs0 /dev/tffs0t77 /
/bin/sinit
$ sinit TERM=qnx
sysinit.1:
–
sleep 1
echo “”
echo “sysinit.1”
echo “New Target CPU”
echo “DiskOnChip Flash File System”
echo “”
set -i
export TZ=est05edt04,M4.1.0/2,M10.5.0/2
rtc -l hw
Dev &
Dev.ansi -Q -n 9 &
reopen //0/dev/con1
Dev.ser &
Dev.par &
Dev.pty &
Serial port parameter settings
stty baud=9600 bits=8 stopb=1 par=none </dev/ser1
stty baud=9600 bits=8 stopb=1 par=none </dev/ser2
Fsys.floppy &
mount /dev/fd0 /fd0 &
Dosfsys a=/dev/fd0 &
Pipe &
emu87 &
#Net -n8 &
#Net.ether1000 -p320 -l1 &
#netmap -f
#license -R1
license -r
nameloc &
export PHWMEXIT=1
echo “”
echo “DiskOnChip: QNX Initialization Completed.”
echo “”
tinit -T /dev/con* -t /dev/con1 &
sin ar output:
–
PID USER NAME ARGUMENTS
1 System Proc32 -l 1
3 System Slib32
4 System Fsys
5 System Fsys.diskonchip
8 System Not available.
16 System Dev
19 System Dev.ansi -Q -n 9
21 System Dev.ser
22 System Dev.par
23 System Dev.pty
27 System Fsys.floppy
30 System Dosfsys a=/dev/fd0
31 System Pipe
39 System nameloc
40 System nameloc
41 System tinit -T /dev/con1 /dev/con2 /dev/con3 /dev/con4
/dev/con5 /dev/con6 /dev/con7 /dev/con8 /dev/con9 -t /dev/con1
42 root -sh
50 root sin ar
Also, just to check, the DOC is only 8Megs? If so you won’t be able
to do a stock install directly to that, esp when you already have the
OS installed on it. How much space is left on the DOC?
442 kbytes (6%)
I know a stock install will not fit, I am copying only what I need, then I
intend to pare that down to what I really need… I have no way to quantify
what I really need w/o experimentation and the few articles I have found in
the knowledge database. I wanted to do the ‘install’ of Photon, then remove
the excess. I am using a script to copy the required QNX files, and realize
that I will have to cull a lot out of there as well.
For some history: we currently have a embedded (flash) system based on a
ZiatechCPU that is obsolete. We are replacing that with a Versalogic, and I
had hoped to have the build be less convoluted than the Ziatech system (what
a mess!!!). So be my desire to ‘install’ what I could then pare it back.
I started by doing the script copy of QNX files, then a script copy of the
Photon files, and a sysinit script that started Photon manually (just like
the Ziatech system) but something was not right there (Ph wouldn’t start
correctly) and I decided to try the ‘clean’ install instead. Maybe I’ll
have to give up on this silly idea and just treat the new system like an
embedded system (VBG).
So just to fill out the histerical stuffL here are the scripts I used for
the QNX and Photon files, as well as the Photon based sysinit:
QNX Files
–
#!/bin/ksh
set -v
#ifdef __USAGE
Copy needed files to DiskOnChip for Generic QNX Installation
No application specific implementations from this script.
#%C [options]
-v verbose
To create a logfile of this script:
use: copy2doc 2>&1 | tee copy2doc.log
#endif
while getopts v opt $*
do
case $opt in
v) set -x;;
*) echo; echo
use $0
exit 1;;
esac
done
Setups Begin
--------------------------------------------------------------------
Node number where input files exist (i.e. the server)
src=//$1
Destination directory
typically: /mnt/doc
dest=$2
--------------------------------------------------------------------
Create target directories
mkdir $dest/bin
mkdir $dest/etc
mkdir $dest/etc/config
mkdir $dest/etc/config/trap
mkdir $dest/etc/config/absf
mkdir $dest/etc/licenses
mkdir $dest/etc/version
mkdir $dest/home
mkdir $dest/usr
mkdir $dest/usr/lib
mkdir $dest/usr/lib/terminfo
mkdir $dest/usr/lib/terminfo/a
mkdir $dest/usr/lib/terminfo/q
mkdir $dest/usr/lib/terminfo/t
mkdir $dest/usr/lib/terminfo/v
mkdir $dest/usr/bin
QNX Required files
cp $src/bin/Dosfsys $dest/bin
cp $src/bin/Fsys.floppy $dest/bin
cp $src/bin/Fsys.ide $dest/bin
cp $src/bin/Input $dest/bin
cp $src/bin/Mouse $dest/bin
cp $src/bin/Pipe $dest/bin
cp $src/bin/cat $dest/bin
cp $src/bin/chkfsys $dest/bin
cp $src/bin/clock $dest/bin
cp $src/bin/cp $dest/bin
cp $src/bin/date $dest/bin
cp $src/bin/df $dest/bin
cp $src/bin/du $dest/bin
cp $src/bin/echo $dest/bin
cp $src/bin/emu387 $dest/bin
cp $src/bin/emu87 $dest/bin
cp $src/bin/emu87_16 $dest/bin
cp $src/bin/emu87_32 $dest/bin
cp $src/bin/fdisk $dest/bin
cp $src/bin/find $dest/bin
cp $src/bin/grep $dest/bin
cp $src/bin/inputtrap $dest/bin
cp $src/bin/license $dest/bin
cp $src/bin/login $dest/bin
cp $src/bin/logout $dest/bin
cp $src/bin/ls $dest/bin
cp $src/bin/pax $dest/bin
cp $src/bin/mkdir $dest/bin
cp $src/bin/more $dest/bin
cp $src/bin/mount $dest/bin
cp $src/bin/mousetrap $dest/bin
cp $src/bin/mv $dest/bin
cp $src/bin/nameloc $dest/bin
cp $src/bin/net* $dest/bin
cp $src/bin/Net* $dest/bin
cp $src/bin/ps $dest/bin
cp $src/bin/pwd $dest/bin
cp $src/bin/rm $dest/bin
cp $src/bin/rmdir $dest/bin
cp $src/bin/rtc $dest/bin
cp $src/bin/sh $dest/bin
cp $src/bin/shutdown $dest/bin
cp $src/bin/sin $dest/bin
cp $src/bin/sinit $dest/bin
cp $src/bin/slay $dest/bin
cp $src/bin/sleep $dest/bin
cp $src/bin/stty $dest/bin
cp $src/bin/sync $dest/bin
cp $src/bin/tinit $dest/bin
cp $src/bin/umask $dest/bin
cp $src/bin/use $dest/bin
cp $src/bin/vedit $dest/bin
cp $src/etc/group $dest/etc
cp $src/etc/issue $dest/etc
cp $src/etc/install $dest/etc
cp $src/etc/logo.F $dest/etc
cp $src/etc/passwd $dest/etc
cp $src/etc/profile $dest/etc
cp $src/etc/shadow $dest/etc
cp $src/etc/termcap $dest/etc
cp $src/etc/config/sysinit $dest/etc/config
cp $src/etc/config/netmap $dest/etc/config
cp $src/etc/config/absf/absf.2 $dest/etc/config/absf/absf.1
Use a slightly modified sysinit file
cp /usr/local/doc/sysinit.tff $dest/etc/config/sysinit.1
cp $src/etc/config/altsysinit $dest/etc/config/altsysinit
Use the ‘new’ license method
license $src/etc/licenses $dest/etc/licenses
cp $src/.licenses $dest/
cp $src/.lastlogin $dest/
cp $src/etc/version/* $dest/etc/version
cp $src/usr/bin/crttrap $dest/usr/bin
cp $src/usr/bin/freeze $dest/usr/bin
cp $src/usr/bin/gunzip $dest/usr/bin
cp $src/usr/bin/id $dest/usr/bin
cp $src/usr/bin/kedit $dest/usr/bin
cp $src/bin/shutdown $dest/usr/bin/sd
cp $src/usr/lib/less.hlp $dest/usr/lib
cp /usr/local/doc/root.profile $dest/.profile
cp /usr/local/doc/.veditrc $dest/home/.veditrc
cp /usr/local/doc/.vedit.cfg $dest/home/.vedir.cfg
cp $src/usr/lib/terminfo/terminfo.src $dest/usr/lib/terminfo
cp $src/usr/lib/terminfo/a/ansi $dest/usr/lib/terminfo/a
cp $src/usr/lib/terminfo/q/qansi $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qansi-g $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qansi-m $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qansi-t $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qansi-w $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qnx $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qnx2 $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qnx4 $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qnxm $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qnxs2 $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qnxt $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qnxt2 $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qnxt4 $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qnxtmono $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qnxw $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qvt101 $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qvt102 $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/q/qvt108 $dest/usr/lib/terminfo/q
cp $src/usr/lib/terminfo/t/test $dest/usr/lib/terminfo/t
cp $src/usr/lib/terminfo/v/vi200-f $dest/usr/lib/terminfo/v
cp $src/usr/lib/terminfo/v/viewpoint $dest/usr/lib/terminfo/v
cp $src/usr/lib/terminfo/v/visual $dest/usr/lib/terminfo/v
cp $src/usr/lib/terminfo/v/vt100 $dest/usr/lib/terminfo/v
cp $src/usr/lib/terminfo/v/vt100-am $dest/usr/lib/terminfo/v
cp $src/usr/lib/terminfo/v/vt102 $dest/usr/lib/terminfo/v
cp $src/usr/lib/terminfo/v/vt102-am $dest/usr/lib/terminfo/v
cp $src/usr/lib/terminfo/v/vt52 $dest/usr/lib/terminfo/v
32 bit drivers…
cp $src/bin/Dev32 $dest/bin
cp $src/bin/Dev32.ansi $dest/bin
cp $src/bin/Dev32.par $dest/bin
cp $src/bin/Dev32.pty $dest/bin
cp $src/bin/Dev32.ser $dest/bin
16 bit drivers…
cp $src/bin/Dev16 $dest/bin
cp $src/bin/Dev16.ansi $dest/bin
cp $src/bin/Dev16.par $dest/bin
cp $src/bin/Dev16.pty $dest/bin
cp $src/bin/Dev16.ser $dest/bin
Remove pre-existing symbolic links
cd $dest/bin
rm -f Dev
rm -f Dev.ansi
rm -f Dev.con
rm -f Dev.ditto
rm -f Dev.par
rm -f Dev.pty
rm -f Dev.ser
(Re)Establish symbolic links
cd $dest/bin
ln -s Dev32 Dev
ln -s Dev32.ansi Dev.ansi
ln -s Dev.ansi Dev.con
ln -s Dev.ansi Dev.ditto
ln -s Dev32.par Dev.par
ln -s Dev32.pty Dev.pty
ln -s Dev32.ser Dev.ser
Photon Files
–
#!/bin/sh
set -v
Copy files required for Photon v1.13c
Mods:
18oct01 rel Genesis from Ziatech op/sys setup files
-
Setups Begin
--------------------------------------------------------------------
Node number where input files exist (i.e. the server)
srcnode=//$1
Destination directory
typically: /mnt/doc
dest=$2
Base directory from Op/Sys part number
typically: 43112012.001
pndir=$3
Where the input files for processes and application support reside
srcpath=$srcnode/englab/prod/OpSys/$pndir
--------------------------------------------------------------------
Create required directories
mkdir $dest/etc/config/trap
mkdir $dest/etc/config/absf
mkdir $dest/usr/bin
mkdir $dest/usr/photon
mkdir $dest/usr/photon/bin
mkdir $dest/usr/photon/bin/crt
mkdir $dest/usr/photon/font
mkdir $DEST/usr/photon/pallette
mkdir $dest/usr/photon/translations
Photon utils and applications
cp $srcnode/qnx4/photon/bin/Photon $dest/usr/photon/bin
cp $srcnode/qnx4/photon/bin/phlib_s11 $dest/usr/photon/bin
cp $srcnode/qnx4/photon/bin/Aplib_s11 $dest/usr/photon/bin
cp $srcnode/qnx4/photon/bin/pwm $dest/usr/photon/bin
cp $srcnode/qnx4/photon/bin/pterm $dest/usr/photon/bin
cp $srcnode/qnx4/photon/bin/phfontphf $dest/usr/photon/bin
cp $srcnode/usr/bin/ph $dest/usr/bin
Elo Touch Screen calibration utility
cp $srcnode/qnx4/photon/bin/calib $dest/usr/photon/bin
Touch screen coordinate data file
#cp $srcpath/560/etc/config/absf/absf.1 $dest/etc/config/absf
cp /etc/config/absf/absf.2
$dest/etc/config/absf/absf.1
Cirrus graphics drivers
#cp $srcnode/qnx4/graphics/drivers/Pg.cirrblit $dest/usr/photon/bin
#cp $srcnode/qnx4/graphics/drivers/cirrusbios.ms $dest/usr/photon/bin/crt
Chips graphics driver and mode switcher
cp $srcnode/qnx4/graphics/drivers/Pg.chipsdc $dest/usr/photon/bin
cp $srcnode/qnx4/graphics/drivers/chipsbios.ms $dest/usr/photon/bin/crt
Font files
cp $srcnode/qnx4/photon/font/* $dest/usr/photon/font
Use a slightly modified sysinit file
cp $dest/etc/config/sysinit.1
$dest/etc/config/sysinit.1.base
cp /usr/local/doc/sysinit.tff.new $dest/etc/config/sysinit.1
sysinit.1 w/Photon
–
echo “”
echo “sysinit.1”
echo “New Target CPU-”
echo “DiskOnChip Flash File System”
echo “”
set -i
export TZ=est05edt04,M4.1.0/2,M10.5.0/2
rtc -l hw
Dev &
Dev.ansi -Q -n 9 &
reopen //0/dev/con1
Dev.ser &
Dev.par &
Dev.pty &
Serial port parameter settings
stty baud=9600 bits=8 stopb=1 par=none </dev/ser1
stty baud=9600 bits=8 stopb=1 par=none </dev/ser2
Fsys.floppy &
mount /dev/fd0 /fd0 &
Dosfsys a=/dev/fd0 &
Pipe &
emu87 &
#Net -n8 &
#Net.ether1000 -p320 -l1 &
#netmap -f
#license -R1
license -r
nameloc &
#tinit -T /dev/con* -t /dev/con1 &
tinit -T /dev/con* -c “login -p root” -t con1 con2 &
sleep 1
Photon setup…
export PHOTON_PATH=/usr/photon
export PHOTON=/dev/photon
export PHFONT=/dev/phfont
export PHSTART=1
export PHWMEXIT=1
export ABLANG=en_US
export ABLPATH=/usr/photon/translations
export PATH=$PATH:$PHOTON_PATH/bin
sleep 3
#/usr/photon/bin/Photon &
Photon &
Input kbd -R fd -d/dev/kbd msoft fd -d/dev/ser1&
Input smartset -b 9600 fd -d/dev/ser2&
/usr/photon/bin/phfontphf -E normal -M &
Settings & mode switcommands w/Versalogic EVGA card
/usr/photon/bin/Pg.chipsdc -HNqnx/crt -g800x600x16 -A0xF8000000,0x1000000 -W
B1600 -WR0 -WM0x0006,5,0,0,0x00100000
/usr/photon/bin/chipsbios.ms -i0x114 -A0xF8000000 -S0x01000000 -M0x0006,5,0,
0,0x00100000
/usr/photon/bin/pwm -SWT &
sleep 1
/usr/photon/bin/pterm
Well, is this posting long enough yet?
Thanks and keep the ideas rolling!!!
Ray L.
Thanks
Erick.
Ray LaBrecque <> ray.labrecque@gretag.imaging.com> > wrote:
At the risk of repeating myself, I am re-posting this request (no flames
please). I think y’all thought I was asking the same question twice
before,
where I really have (had) two separate DiskOnChip issues: Here’s the
second
one:
I have successfully installed QNX 4.25D on a Versalogic VL-586-1 CPU,
EPM-SVGA-2 Video, VL-FD1-1 Floppy, VL-HD1-540 Hard drive and 8 mb
DiskOnChiP
(DOC) (Basically you build a base system on the DOC using a QNX device
driver for access, then copy over the required files and utilities.)
o The DOC boots to QNX cleanly
o Can access /fd0 from DOC w/o ANY errors (set up a script loop to cp &
cmp
a file 1000 times…)
o The hard drive is NOT configured in when I boot to DOC
o I have Photon MicroGui install floppies, NOT a CD
o When I try to install Photon from floppy I get total failure:
I insert Floppy #1 and type: install /dev/fd0 but, when the
install
util should be loading the license I get an error stating: “Unable to
access
drive: No such device or address” then the “Restoring the archive…”
message is displayed followed by continual “pax: Ready for volume x”
“pax:
Type “go” when ready to proceed (or “quit” to abort):” prompts.
o I have confirmed the Photon install floppies by using them to install
Ph
to a hard drive
o Versalogic confirmed that the DOC is an exact simulation of a hard
drive
and their should be NO ifferences.
New info:
o The same problem occurs w/TCP install floppies
o Neither M-Sys nor Versalogic has been able to break ground on this
problem
o I can’t get this system to ‘see’ the CD Rom drive either!!!
Any ideas?
Ray L.