Embedded photon on target

Hi,

I try to embedded photon on my target. You can see a sample of my buildfile
:

[+script] .script = {
HOME=/
TERM=qansi-m
display_msg Welcome to QNX RTOS on the Development Board

Initialise serial console.

devc-serpxa250 0x40100000,22 -e
reopen
PATH=/proc/boot:/bin:sbin:/usr/bin:/usr/sbin:/lib/dll
LD_LIBRARY_PATH=/lib:/usr/lib:/lib/dll:/proc/boot:/usr/lib

Start some common servers

devc-pty &
pipe &
waitfor /dev/pipe

Start the main shell

[+session] sh &

Start the Photon Session

Photon &
waitfor /dev/photon
phfontFA -d/font_repository &
waitfor /dev/phfont
io-graphics -dldevg-cotulla.so -g640x350x8 -amode=/proc/boot/cotulla.conf &
ucb1400 &
waitfor /dev/ucb1400

devi-ucb1400 ucb1400 &

devi-ucb1400 ucb1400 abs -f /proc/boot/calib.daytona &

calib

rebound -x0 -y0 -w630 -h324 &
pwm &
}

Redirect console messages

[type=link] /dev/console=/dev/ser1
[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.2

Shared libaries

libc.so
libm.so
libsocket.so
devg-cotulla.so
libph.so.2
libAp.so.2
libphrender.so
libffb.so.2
libdisputil.so.2
libphexlib.so.2
libgri.so.2
gri-photon.so
devn-smc9000.so
npm-tcpip.so
npm-ttcpip.so

Executables

[data=c]
devc-serpxa250
devc-pty
pipe
pidin
ls
cat
rm
slay
ifconfig
more
find
grep
phcalc
Photon
io-graphics
phfontFA
pwm
/font_repository=/usr/photon/font_repository
#/usr/lib/terminfo=/usr/lib/terminfo
ucb1400
devi-ucb1400
[+raw] calib
[+raw] rebound
io-net
fs-nfs2
ping
arp

Use the “fat” embedded shell as the default shell

sh=fesh
ksh

\

Photon :

/etc/system/config/font-traplist=/etc/system/config/font-traplist

/usr/photon/config/wm/wm.menu = {
}

/usr/photon/config/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
}

End of file



So, when we install this image on the target and we try to run phcalc
(included also in the image), we have :

phcalc &

24589 running phcalc

Ap: Unable to open resource file

(/proc/boot/phcalc)

Do you thinck that libAp.so library failed to open some ressource files ?

Thancks for your help !!!

Christian

Christian,

Put a “[+raw]” before the phcalc entry - much like what you are
doing for the calib and rebound entries. mkifs strips out some
sections required by Photon in the binary. The [+raw] tells mkifs
to not strip the file at all.

-Jay.

Previously, Christian DEMEZ wrote in qdn.public.qnxrtp.embedded:

Hi,

I try to embedded photon on my target. You can see a sample of my buildfile
:

[+script] .script = {
HOME=/
TERM=qansi-m
display_msg Welcome to QNX RTOS on the Development Board

Initialise serial console.

devc-serpxa250 0x40100000,22 -e
reopen
PATH=/proc/boot:/bin:sbin:/usr/bin:/usr/sbin:/lib/dll
LD_LIBRARY_PATH=/lib:/usr/lib:/lib/dll:/proc/boot:/usr/lib

Start some common servers

devc-pty &
pipe &
waitfor /dev/pipe

Start the main shell

[+session] sh &

Start the Photon Session

Photon &
waitfor /dev/photon
phfontFA -d/font_repository &
waitfor /dev/phfont
io-graphics -dldevg-cotulla.so -g640x350x8 -amode=/proc/boot/cotulla.conf &
ucb1400 &
waitfor /dev/ucb1400

devi-ucb1400 ucb1400 &

devi-ucb1400 ucb1400 abs -f /proc/boot/calib.daytona &

calib

rebound -x0 -y0 -w630 -h324 &
pwm &
}

Redirect console messages

[type=link] /dev/console=/dev/ser1
[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.2

Shared libaries

libc.so
libm.so
libsocket.so
devg-cotulla.so
libph.so.2
libAp.so.2
libphrender.so
libffb.so.2
libdisputil.so.2
libphexlib.so.2
libgri.so.2
gri-photon.so
devn-smc9000.so
npm-tcpip.so
npm-ttcpip.so

Executables

[data=c]
devc-serpxa250
devc-pty
pipe
pidin
ls
cat
rm
slay
ifconfig
more
find
grep
phcalc
Photon
io-graphics
phfontFA
pwm
/font_repository=/usr/photon/font_repository
#/usr/lib/terminfo=/usr/lib/terminfo
ucb1400
devi-ucb1400
[+raw] calib
[+raw] rebound
io-net
fs-nfs2
ping
arp

Use the “fat” embedded shell as the default shell

sh=fesh
ksh

\

Photon :

/etc/system/config/font-traplist=/etc/system/config/font-traplist

/usr/photon/config/wm/wm.menu = {
}

/usr/photon/config/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
}

End of file



So, when we install this image on the target and we try to run phcalc
(included also in the image), we have :

phcalc &

24589 running phcalc

Ap: Unable to open resource file

(/proc/boot/phcalc)

Do you thinck that libAp.so library failed to open some ressource files ?

Thancks for your help !!!

Christian

\


-Jay.