photon in embedded system

I try to build an image containing a photon application for an embedded system. All servers seem to start correctly but the system stays in text mode and the test application is not shown. Non-graphical application run without any problems. The head of the build file used is listed below.

I use a PC with QNX to build the image which I copy on the compact flash used in my embedded system. The architecture of the embedded system is similar to a PC.

Questions
Do I have to switch to the graphics mode manually or when should this happen?
Is there something strange in my build file?
How can I check if the servers have been started properly?

The head of my build file


[virtual=x86,bios] .bootstrap = {
startup-bios
PATH=:/proc/boot:/usr/bin:/bin:/usr/photon/bin
LD_LIBRARY_PATH=:/proc/boot:/usr/lib:/lib:/lib/dll
PHOTON_PATH=/proc/boot procnto -vv
}

[+script] .script = {
procmgr_symlink …/…/proc/boot/libc.so.2 /usr/lib/ldqnx.so.2
display_msg QNX Neutrino 6.3 on an x86 platform with Photon
slogger &

display_msg Set Env Var
PATH=/proc/boot:/bin:/sbin:/usr/bin/:/usr/sbin/:/usr/photon/bin
LD_LIBRARY_PATH=:/proc/boot:/usr/lib:/lib:/lib/dll
PHOTON=/dev/photon
PHOTON_PATH=/proc/boot
PHOTON2_PATH=/proc/boot
SYSNAME=nto
TERM=qnx
HOME=/root

display_msg Starting Photon
setconf _CS_LIBPATH /proc/boot:/lib:/lib/dll
Photon
waitfor /dev/photon 10

display_msg Starting Input
devi-hirun kbd kbddev &

display_msg Starting Font
phfont -d /proc/boot -X &
waitfor /dev/phfont

display_msg Starting Graphics
io-graphics -di830 vid=0x8086, did=0x3582, index=0, photon, xres=640, yres=480, bitpp=16, refresh=60 -pphoton
waitfor /dev/phfont 10

display_msg Starting Window Manager
pwm &
devc-pty &

display_msg Starting Application
phcalc_sm &
}

Is photon and all related file include in the image? Can you post all of the build file?

Thank you for your reply!
The complete build file:


[virtual=x86,bios] .bootstrap = {
startup-bios
PATH=:/proc/boot:/usr/bin:/bin:/usr/photon/bin
LD_LIBRARY_PATH=:/proc/boot:/usr/lib:/lib:/lib/dll
PHOTON_PATH=/proc/boot procnto -vv
}

[+script] .script = {
procmgr_symlink …/…/proc/boot/libc.so.2 /usr/lib/ldqnx.so.2
display_msg QNX Neutrino 6.3 on an x86 platform with Photon
slogger &

display_msg Set Env Var
PATH=/proc/boot:/bin:/sbin:/usr/bin/:/usr/sbin/:/usr/photon/bin

LD_LIBRARY_PATH=:/proc/boot:/usr/lib:/lib:/lib/dll
PHOTON=/dev/photon
PHOTON_PATH=/proc/boot
PHOTON2_PATH=/proc/boot
SYSNAME=nto
TERM=qnx
HOME=/root

display_msg Starting Photon
setconf _CS_LIBPATH /proc/boot:/lib:/lib/dll
Photon
waitfor /dev/photon 10

display_msg Starting Input
devi-hirun kbd kbddev &

display_msg Starting Font
phfont -d /proc/boot -X &
waitfor /dev/phfont

display_msg Starting Graphics
io-graphics -di830 vid=0x8086,did=0x3582,index=0,photon,xres=640,yres=480,bitpp=16,refresh=60 -pphoton
waitfor /dev/phfont 10

display_msg Starting Window Manager
pwm &
devc-pty &

display_msg Starting Application
phcalc_sm &
}

[type=link] /bin/sh = /proc/boot/ksh
[type=link] /dev/console = /dev/ser1
[type=link] /tmp = /dev/shmem
[type=link] /proc/boot/font_repository=/proc/boot

graphics driver

devg-i830.so
/etc/system/config/crtc-settings = /etc/system/config/crtc-settings
/usr/photon/palette/default.pal = /usr/photon/palette/default.pal

standard libs

libc.so
libm.so

photon libs

libph.so
libAp.so
libphexlib.so

io-graphics libs

gri-photon.so
libphrender.so
libgri.so
libdisputil.so
libffb.so

font libs

/lib/dll/font/ttfFFcore.so = /lib/dll/font/ttfFFcore.so
/lib/dll/font/FCcore.so = /lib/dll/font/FCcore.so
/lib/dll/font/PHFcore.so = /lib/dll/font/PHFcore.so
/lib/dll/font/phfont.so = phfont.so
/lib/dll/phfont.so=phfont.so

/lib/libblkcache.so=libblkcache.so
/lib/libFF-T2K-cache.so=libFF-T2K-cache.so
/lib/libFF-T2K-fm.so=libFF-T2K-fm.so
/lib/libFF-T2K.so=libFF-T2K.so
/lib/libfont.so=libfont.so
/lib/libfontharnessutils.so=libfontharnessutils.so
/lib/libfontutils.so=libfontutils.so

fontdir = {
phcursor,.phf,Photon Cursor,0,E900-E921,Np,32x32,3k
primasansbts,0@tt2001m_.ttf,PrimaSans BT,0,0020-F002,MIp,133x129,75k
primasansbtsb,0@tt2003m_.ttf,PrimaSans BT,0,B,0020-F002,MIp,143x130,70k
}

fontext = {
+normal = primasansbts, primasansmonobts, phcursor
}

fontdesc={
[SANSERIF]
PrimaSans BT
PrimaSansMono BT
}

fontkey={
[FOUNDRY]
BT
MS
Condensed
[AFTERFOUNDRYKEYS]
Roman

[KEYS]
Plain
Regular
Bold
Italic
Oblique
-Roman
-Plain
-Regular
-Bold
-Italic
-Oblique
Normal
-Normal
regular
normal
}

fontmap = {
FixedFont = primasansmonobts
monospace = primasansmonobts
sans-serif = primasansbts
? = primasansbts
}

fonttype ={
[ENG1]
…phf
[ENG2]
[ENG3]
…ttf
[ENG4]
[SPECIAL]
}

/root/.ph/wm/wm.cfg={
[wm config]
fore_color = 0xD8D8D8
active_color = 0x5C8BDF
title_color = 0x65
inactive_color = 0xB1C1D9
base_color = 0xBDBDAA
border_active = 0
placement = 4
text_align = 2
auto_raise = 0
keyboard = 0
focus_cursor = 0
click_front = 1
drag = 1
}

input config

/usr/photon/keyboard/en_US_101.kbd = /usr/photon/keyboard/en_US_101.kbd

Executables

[data=c]
devc-pty
devc-con
ksh
slogger
sloginfo
pip
Photon
io-graphics
phfont
devi-hirun
pwm
setconf
[+raw] /usr/photon/bin/pterm = pterm
[+raw] /usr/photon/bin/phcalc_sm = phcalc_sm

allow pterm to save its configuration to RAM, if the user changes it.

[type=link] /.ph/pterm = /dev/shmem

Usually starting io-graphics is all that is needed to get things rolling (after you start Photon). Does this system have a network? I would recommend getting the qnet stack up and running. Then using another QNX installation (VMWare with bridged ethernet for example) and a shell prompt you can use the "on -f to play with io-graphics.