我按照help里Photon embeded说明的作photo的image一步步做,并且把需要配置的驱动等文件事先也拷贝到我的Diskonchip的主板机里了。但mkifs后的文件在有Diskonchip的主板机子启动时,没提示任何错误,但启动后不能显示我的应用程序,显示的是黑屏。不知问题出在哪里。我把.bld文件附上,请大侠们看看:
[search=./:/boot/sys:/bin:/sbin:/usr/bin:/usr/sbin:/lib:/lib/dll:/usr/lib:/usr/dll]
[+compress]
[virtual=x86,bios] .bootstrap = {
startup-bios -Nmachine-name
PATH=/proc/boot:/bin:/sbin:/usr/bin:/usr/sbin:/usr/photon/bin LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/lib:/lib/dll:/usr/lib:/usr/dll procnto
}
[+script] .script = {
Start up some consoles
devc-con -n4 &
reopen /dev/con1
Start the pci server
pci-bios &
waitfor /dev/pci
DiskOnChip driver
devb-doc blk automount=hd0t79:/ &
Wait for a bin for the rest of the commands (up to 60 secs)
waitfor /dev/hd0t79 60
Some common servers
pipe &
mqueue &
devc-pty &
\
These env variables inherited by all the programs which follow
SYSNAME=nto
TERM=vt100
HOME=/
PHOTON_PATH=/usr/photon
\
Start some extra shells on other consoles
reopen /dev/con2
[+session] sh &
reopen /dev/con3
[+session] sh &
Start a high priority shell just in case…
reopen /dev/con4
[pri=25 +session] sh &
Start the main shell
reopen /dev/con1
[+session] sh &
Photon &
on -w /dev/photon -W10
/usr/photon/bin/phfontFA -d /usr/photon/font_repository -j -s 300k &
on -w /dev/phfont -W10
io-graphics -g1024x768x16 -dldevg-svga.so &
sleep 2
/usr/photon/bin/devi-hirun kbd fd -d /dev/kbd ps2 fd mousedev &
sleep 2
mytest &
[+session] login -p
}
Cheat and make the /tmp point to the shared memory area…
[type=link] /tmp=/dev/shmem
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/libsocket.so.2=/proc/boot/libsocket.so
We use the “c” shared lib (which also contains the runtime linker)
libc.so
Include the socket library
libsocket.so
Include the disk files so we can access files on DiskOnChip
libcam.so
io-blk.so
filesystem required shared libs
cam-disk.so
fs-qnx4.so
npm-qnet.so
npm-tcpip.so=/lib/dll/npm-tcpip-v4.so
devg-svga.so
[data=copy]
Include a console driver
devc-con
waitfor
Include DiskOnChip driver
devb-doc
ifconfig
io-net
ping
pipe
mqueue
devc-pty
Include pci server
pci-bios
ls
pidin
shutdown
slay
mountcp
rm
sh=/bin/fesh
sync