what's wrong with my builfile

hello all,
i have adapted a buildfile i found to my own machine(x86, geode)
all things work fine in exception of Photon
i get always a msg Unable tu start “Photon”, and i don’t know why
here is my buildfile please help me

###############################################################

QNX Neutrino on an PC BIOS compatible system

###############################################################

[virtual=x86,bios +compress] .bootstrap={
startup-bios
PATH=/proc/boot:/bin:/sbin:/usr/bin:/usr/sbin:/debug
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll:/usr/lib:/usr/photon/lib:/usr/photon/dll:/lib/dll/font:/dev/shmem
HOME=/ procnto-instr -vvv
}

[+script] startup-script={

Programs require the runtime linker (ldqnx.so) to be at a fixed location

procmgr_symlink …/…/lib/libc.so.2 /usr/lib/ldqnx.so.2

display_msg Welcome to QNX Neutrino on an PC compatible BIOS system

Start Log system messages manager :frowning:replace the “syslogd” daemon UNIX)

display_msg Starting Log manager
slogger -s32 &

Start the pci server

seedres &
pci-bios -v &
waitfor /dev/pci

Start up consoles

devc-con -n4 &
reopen /dev/con1

LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll:/usr/lib:/usr/photon/lib:/usr/photon/dll:/lib/dll/font:/dev/shmem

driver ethernet

display_msg Network
io-net -v -d rtl verbose -p tcpip & #target
if_up -p en0 #wait until net driver up
waitfor /dev/socket
ifconfig en0 192.168.1.3 netmask 255.255.0.0 & #target
if_up en0 #wait until net up and configured

Some common servers

pipe &
mqueue &
devc-ser8250 -e &

remote-debug : qconn and pdebug needs devc-pty

devc-pty -n 32 &

Start a debug server for debugging programs

#waitfor /dev/ser1
#debug by serial device
#[+session] pdebug -v dev/ser1 &
#debug with network ethernet TCP/IP port=9000 (like qconn)
display_msg Debug agents
[+session] pdebug -v 8000 &

Start qconn daemon on port 8000 to use TFTP and BOOTP

cross-development protocols
waitfor /dev/ptyp0
qconn port=8000 &

mount host file system via NFS

display_msg Mounting NFS Host FileSystem
fs-nfs2 -t 192.168.1.36:/ /host &

network servers

portmap &
nfsd &
inetd &

These env variables inherited by all the programs which follow

display_msg Environment variables
SYSNAME=nto
LOGNAME=root
TERM=qansi
PHOTON=/dev/photon
PHOTON_PATH=/usr/photon
PHFONT=/dev/phfont
HOSTNAME=PC-durci
SHELL=/proc/boot/esh

mode debug

DL_DEBUG=1

variable de configuration QNX (globale au systeme)

setconf CS_LIBPATH
/proc/boot:/lib:/usr/lib:/lib/dll:/lib/dll/font:/usr/photon/lib:/usr/photon/dll
&

#####################################################################

Server PHOTON

#####################################################################
display_msg Photon Servers

Start the Photon server.

Photon &
waitfor /dev/photon 30

Start the input (mouse, keyboard, touchscreen, etc.) driver : display server

devi-hirun -vvv ps2 sh4 kbd sh4kbd
/usr/photon/keyboard/fr_FR_102.kbd ps2 mousedev &

Configure fonts (font server).

phfont -d /usr/photon/font_repository &

Start the graphics driver (photon graphic server).

io-graphics -dgeode
vid=0x1078,did=0x104,index=0,photon,xres=1024,yres=768,bitpp=8
-pphoton hwcursor
waitfor /dev/phfont

Start the window manager (optional).

pwm &
bkgdmgr &
phcalc &
pterm -x60 -y60 -h200 -w250 /proc/boot/esh &

Start some extra shells on other consoles

reopen /dev/con2
[+session] esh &

Start the main shell

reopen /dev/con1
[+session] esh
}

[type=link] /usr/lib/ldqnx.so.2=/lib/libc.so

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

We use the “c” shared lib (which also contains the runtime linker)

/lib/libc.so=libc.so
/lib/libm.so=libm.so
/lib/libsocket.so.2=libsocket.so.2
/lib/dll/io-blk.so=io-blk.so
/lib/libcam.so.2=libcam.so.2
/lib/dll/fs-qnx4.so=fs-qnx4.so
#/lib/dll/cam-cdrom.so=cam-cdrom.so
/lib/dll/cam-disk.so=cam-disk.so
/usr/lib/libph.so.3=libph.so.3
/lib/dll/devn-rtl.so=devn-rtl.so
/lib/dll/npm-tcpip.so=npm-tcpip.so
/usr/lib/librpc.so.2=librpc.so.2

Just incase someone needs floating point…

/lib/dll/fpemu.so.2=fpemu.so.2

photon graphic server library

/lib/dll/devg-geode.so=devg-geode.so
/lib/dll/gri-photon.so=gri-photon.so
/usr/lib/libgri.so.2=libgri.so.2
/usr/lib/libphrender.so.2=libphrender.so.2
/usr/lib/libffb.so.2=libffb.so.2
/usr/lib/libdisputil.so.2=libdisputil.so.2
/usr/lib/libffb.so=libffb.so
/usr/lib/libdisputil.so=libdisputil.so
/usr/photon/dll/wframe_updated.so=wframe_updated.so
/usr/lib/libaoi.so.1=libaoi.so.1
/usr/lib/libmmedia.so.1=libmmedia.so.1

photon font server library

/lib/dll/pi_io_jpeg.so=pi_io_jpeg.so
/usr/lib/libphexlib.so.3=libphexlib.so.3
/usr/lib/libAp.so.3=libAp.so.3
/usr/lib/libphimg.so=libphimg.so
/usr/lib/libjpeg.so=libjpeg.so

font libs

/lib/libfont.so.1=libfont.so.1
/lib/dll/phfont.so=phfont.so
/lib/dll/font/FCcore.so=FCcore.so
/lib/dll/font/ttfFFcore.so=ttfFFcore.so
/lib/dll/font/PHFcore.so=PHFcore.so
/lib/libblkcache.so.2=libblkcache.so.2
/lib/libFF-T2K-cache.so.2=libFF-T2K-cache.so.2
/lib/libFF-T2K.so.2=libFF-T2K.so.2
/lib/libFF-T2K-fm.so.1=libFF-T2K-fm.so.1
/lib/libfontharnessutils.so.1=libfontharnessutils.so.1
/lib/libfontutils.so.1=libfontutils.so.1

[data=uip]

Console driver

devc-con

Pci server

pci-bios
seedres

Network

io-net

PCMCIA

devp-pccard
pccard-launch

Servers…

slogger
pipe
mqueue
devc-ser8250
devc-pty

The files above this line can be shared by mutiple processes

[data=c]

IDE

devb-eide

font config

/usr/photon/config/pterm/pterm.rc=/usr/photon/config/pterm/pterm.rc
/usr/photon/font_repository/tt2009m_.ttf=/usr/photon/font_repository/tt2009m_.ttf
/usr/photon/font_repository/phcursor.phf=/usr/photon/font_repository/phcursor.phf
/usr/photon/font_repository/mappings=/usr/photon/font_repository/mappings
/usr/photon/font_repository/fontopts=/usr/photon/font_repository/fontopts
/usr/photon/font_repository/fontkey=/usr/photon/font_repository/fontkey
#/usr/photon/font_repository/fontdir=/usr/photon/font_repository/fontdir

/usr/photon/font_repository/fontdir = {
#;
#; fontdir config file
#;
phcursor,.phf,Photon Cursor,0,E900-E921,Np,32x32,3K
primasansmonobts,0@tt2009m_.ttf,PrimaSansMono BT,0,0020-F002,f,79x170,109K
}

/usr/photon/font_repository/fontext = {
#;
#; fontext config file, Mon Dec 13 15:36:21 1999
#;
+normal = primasansmonobts, phcursor
}

/usr/photon/font_repository/fontmap = {
#;
#; fontmap config file
#;
#fantasy = dutch801rmbts
? = primasansmonobts
}

/usr/photon/font_repository/pcterm12.phf=/usr/photon/font_repository/pcterm12.phf
/usr/photon/font_repository/pcterm14.phf=/usr/photon/font_repository/pcterm14.phf
/usr/photon/font_repository/pcterm20.phf=/usr/photon/font_repository/pcterm20.phf
/usr/photon/font_repository/pcs08.phf=/usr/photon/font_repository/pcs08.phf
/usr/photon/font_repository/pcs10.phf=/usr/photon/font_repository/pcs10.phf
/usr/photon/font_repository/pcs12.phf=/usr/photon/font_repository/pcs12.phf
/usr/photon/font_repository/pcs14.phf=/usr/photon/font_repository/pcs14.phf
/usr/photon/font_repository/pcs16.phf=/usr/photon/font_repository/pcs16.phf
/usr/photon/font_repository/pcss08.phf=/usr/photon/font_repository/pcss08.phf
/usr/photon/font_repository/pcss10.phf=/usr/photon/font_repository/pcss10.phf
/usr/photon/font_repository/pcss12.phf=/usr/photon/font_repository/pcss12.phf
/usr/photon/font_repository/pcss14.phf=/usr/photon/font_repository/pcss14.phf
/usr/photon/font_repository/pcss16.phf=/usr/photon/font_repository/pcss16.phf

/etc/photon/pnpmouse=/etc/photon/pnpmouse

target agent for remote debug

qconn
/debug/pdebug=/usr/bin/pdebug
fs-nfs2

Other executables and configuration files

ls
cp
esh
pidin
sloginfo
use
more
ps
rm
shutdown
clear
kill
slay
setconf
getconf
inputtrap
enum-devices

disk utilities

mount
pin

network daemons server and utilities

ifconfig
nicinfo
netstat
ping
inetd

/etc/netconfig=/etc/netconfig
/etc/rpc=/etc/rpc
/etc/services=/etc/services
/etc/protocols=/etc/protocols
/etc/ftpusers=/etc/ftpusers
/etc/termcap=/etc/termcap
/etc/inetd.conf={

Internet services syntax:

<service_name> <socket_type> <server_pathname>

#remote photon : example
phrelay stream tcp nowait root /proc/boot/phrelay phrelay
ftp stream tcp nowait root /proc/boot/ftpd in.ftpd -l
telnet stream tcp nowait root /proc/boot/telnetd in.telnetd
discard stream tcp nowait root internal
discard dgram udp nowait root internal
}

[uid=0 perms=a+rwx] /etc/hosts={

127.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
192.168.1.36 host host
192.168.1.3 cible_x86 cible_x86
}
[uid=0 perms=a+rwx] /etc/exports={
/ -root=0 host
}

photon graphics server files

No BIOS, No fix, Mem = 4Meg

/usr/photon/config/chips.conf={

devg-chips.so parameters for tailoring to specific boards and display modes.

bios Use video BIOS to detect and set video modes (x86 only)

1 = use BIOS 0 = direct switch

fix Disable LCD (fix for some BIOSes that are set to use a panel)

- requires bios = 1 1 = disable LCD 0 = do not disable LCD

mem size of video memory

base address of linear base aperature

The driver will use the first un-commented entry.

bios=0,fix=0,mem=0x400000,base=0
}

devi-hirun driver in its path

#/usr/photon/bin/devgt-iographics=devgt-iographics
/etc/system/enum/devices/graphics=/etc/system/enum/devices/graphics
#phrelay

Photon files:

/usr/photon/keyboard/fr_FR_102.kbd=/usr/photon/keyboard/fr_FR_102.kbd
#/usr/photon/bin/fontsleuth=fontsleuth
/usr/photon/bin/phfont=phfont
/usr/photon/bin/devi-hirun=devi-hirun
/usr/photon/bin/pwm=pwm
#[+raw] /usr/photon/bin/shelf=shelf
/usr/photon/bin/Photon=Photon
/usr/photon/bin/io-graphics=io-graphics
[+raw] /usr/photon/bin/pterm=pterm
#[+raw] /usr/photon/bin/phcalc_sm=phcalc_sm
#[+raw] /usr/photon/bin/phshutdown=phshutdown
[+raw] /usr/photon/bin/bkgdmgr=bkgdmgr
[+raw] /usr/photon/bin/phshutdown=phshutdown
#[+raw] /usr/photon/bin/pwmopts=pwmopts
#[+raw] /usr/photon/bin/phmenu=phmenu

pwm and bkgdmgr config

#/usr/photon/config/wm/wm.cfg = /usr/photon/config/wm/wm.cfg

default image for bkdgmgr

#/usr/share/backdrops/640x480/fond1.jpg=/usr/qnx630/target/qnx6/share/backdrops/640x480/fond1.jpg

NOK ?!

pwm and bkgdmgr config

[uid=0 perms=a+rwx] /.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

[background]
image = /share/backdrops/640x480/fond1.jpg
vert_align = CENTER
horz_align = CENTER
image_op = STRETCH
}

screen saver

[uid=0 perms=a+rwx] /.ph/saver.cfg={
[saver config]
#saver = phmatrix
saver_enabled = YES
timer_value = 10
dpms_standby_enabled = NO
dpms_standby_timeout = 20
dpms_suspend_enabled = NO
dpms_suspend_timeout = 30
dpms_off_enabled = NO
dpms_off_timeout = 60
password_enabled = NO
password_use_system = NO
}

The parts of each entry in the wm.menu file must be separated by tabs.

/usr/photon/config/wm/wm.menu={
=Desktop Menu
Terminal photon c /usr/photon/bin/pterm -x60 -y60 -h100 -w150
-4
Shutdown… u phshutdown
}

graphics driver

/usr/photon/config/crtc-settings=/usr/photon/config/crtc-settings
#/etc/system/config/crtc-settings=/etc/system/config/crtc-settings
/etc/system/config/graphics-traplist={
devgt-iographics -dldevg-geode.so -I0 -d0x03B0,0x03C0
}
/usr/photon/palette/default.pal=/usr/photon/palette/default.pal

shelf

/usr/photon/config/shelf/shelf.cfg=/usr/photon/config/shelf/shelf.cfg
#lirairie du shelf
/usr/photon/dll/shelf/taskbar.so= /usr/photon/dll/shelf/taskbar.so
/usr/photon/dll/shelf/launchmenu.so=/usr/photon/dll/shelf/launchmenu.so
/usr/photon/dll/shelf/launcher.so= /usr/photon/dll/shelf/launcher.so
/usr/photon/dll/shelf/cdplayer.so= /usr/photon/dll/shelf/cdplayer.so

The below article should give you a good start on embedding photon:

qnx.com/developers/docs/mome … embed.html