Hi Freddy,
Thanks for your help. I have not tried your suggested procedures for boot a DOM. First, I have a question that the DOC is same as DOM? Since DOC is a chip on target board, DOM is a module card connect to target via IDE bus. Second, I did a simple process for a bootable image on DOM. The followings are the procedures.
- Get script file for building image. please find attach script file at bottom.
- In a Qnx 6.3 development station, build the script, “mkifs cpu1450.build cpu1450.ifs”.
- Connect a 128M disk on module (DOM) to secondary IDE port on development station. It will show /dev/hd1.
- fdisk /dev/hd1 to create a partition of type 77 (qnx).
- reboot development station and saw /dev/hd1t77 created.
- dinit -h -f cpu1450.ifs /dev/hd1t77, which copy image over .boot. (Is it a correct process? I am not sure.)
- Shutdown station, took out DOM and connect it to target system and boot it.
![Cool 8)]()
The errores are
Unable to access /etc (2)
Unable to access /dev/ser1 (2)
Unable to get dll in lib for npm-tcpio
9) It stopped. I have turn off power.
The script file cpu1450.build:
#-----------------------------------------------------------------------------------
[virtual=x86,bios +compress] boot = {
startup-bios -s64k
PATH=/proc/boot:/bin:/sbin:/usr/bin:/usr/sbin
LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/lib:/lib/dll:/usr/lib procnto
}
[+script] startup-script = {
Start up some consoles and display intro message
devc-con -n4 &
reopen /dev/con1
display_msg " "
Start the pci server
seedres
pci-bios &
waitfor /dev/pci
Start DOM …
devb-eide cam quiet blk automount=hd0t77:/:qnx4:ro &
waitfor /etc 10
Start and configuring network …
io-net -d speedo -p tcpip -p qnet &
waitfor /dev/socket 40
Some common servers
pipe &
mqueue &
devc-eth_ser8250 -b 19200 -E -F -t 14 -T 14 3F8,4 2F8,3 &
devc-pty &
These env variables inherited by all the programs which follow
SYSNAME=nto
TERM=qansi
Start network services
netmanager &
inetd &
Load i815 native audio driver
io-audio -d i8x0 &
Start the shells (see /etc/config/ttys for details)
waitfor /dev/con4 5
waitfor /dev/ser1 5
tinit &
}
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
[type=link] /usr/lib/ldqnx.so.1=/lib/libc.so.1
********************
***** Includes *****
********************
We use the “c” shared lib (which also contains the runtime linker)
libc.so
Include the socket library
libsocket.so
Just incase someone needs floating point…
fpemu.so.2
Include pci server
pci-bios
seedres
Include the hard disk files so we can access files on the disk
devb-eide
libcam.so
io-blk.so
filesystem required shared libs
cam-disk.so
fs-qnx4.so
Include a console driver
devc-con
network drivers and executables
devn-speedo.so
npm-tcpip.so
npm-qnet.so
inetd
netmanager
io-net
audio
io-audio
deva-ctrl-i8x0.so
deva-mixer-ac97.so
Miscellaneous
pipe
mqueue
devc-par
devc-pty
------------------------------------------------------------
The files above this line can be shared by mltiple processes
------------------------------------------------------------
[data=copy]
Executables must currently be below this line
Use the “public domain korn shell” as the default shell “sh”
sh=ksh
Other executables
pdebug
devc-eth_ser8250
login
tinit
ls
cat
pidin
uname
/sbin/io-net
/sbin/ifconfig
/sbin/route
/usr/bin/telnet
/usr/bin/ftp
/usr/bin/ping
Your program go here
/opt/my/app