I am so sorry ,I have posted too many questions on your newsgroup,here and
there.With your and others help,I now get a little familar with QNX.I want
to go on,but without your helps I can not do that…
This time I want to embed a minimal photon to my CF Flash which is treated
as the second master IDE HD.so,I first wrote a build file,which startup the
system and mount the CF HD as /,after that,the build file would start the
shell,and yes,the buildfile worked fine.In the shell,I wish myph script
could act as the ph ,the ‘myph’ is as the following.but it acts not exactly
as what I expected.
1,sometimes it works fine…espcially its first time running almost let me
think I am a genius
2,Most time it does the wrong thing.the errors reported are not always the
same,I recorded some of them.
Can some body help to check my script file,Are there any environments,shared
library or config file I have missed?or some other knowledge base shall I
get?
ant helps will be very appreciated,thanks a lot in advance.
ChaoLi
Errors reported:
io-graphics:openfail:2
openfail:2
io-graphics sometimes kill the pwm ,so the wmswitch can not find pwm
server
fontsleuth:terminated with signal 11
(who send the signal?what signal 11 mean?)
io-graphics received singnal 11
ip:804b31a
ref:8710665
symbol_btext
a script error:line to long,y?
other errors are not listed
Myph script file
#!/bin/esh
all the shared obliect links are created by the boot script ,they are as
the following:
ldqnx.so.2 must be in the fixed place of /usr/lib
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
the following link is needed by the devb-eide
[type=link] /proc/boot/libcam.so.2=/proc/boot/libcam.so
shared library need by font server
[type=link] /usr/lib/libph.so.2=/usr/lib/libph.so
shared library needed by the io-graphics
[type=link] /usr/lib/libphrender.so.2=/usr/lib/libphrender.so
[type=link] /usr/lib/libdisputil.so.2=/usr/lib/libdisputil.so
[type=link] /usr/lib/libffb.so.2=/usr/lib/libffb.so
shared library needed by some photon applications
[type=link] /usr/lib/libAp.so.2=/usr/lib/libAp.so
[type=link] /usr/lib/libm.so.2=/usr/lib/libm.so
[type=link] /usr/lib/libphexlib.so.2=/usr/lib/libphexlib.so
[type=link] /usr/lib/libphimg.so.2=/usr/lib/libphimg.so
[type=link] /usr/lib/libz.so.2=/usr/lib/libz.so
[type=link] /usr/lib/libjpeg.so.2=/usr/lib/libjpeg.so
[type=link] /usr/lib/libexpat.so.2=/usr/lib/libexpat.so
export PATH=/bin:/usr/photon/bin
export LD_LIBRARY=/lib:/usr/lib:/usr/photon/lib
export PHOTON_PATH=/usr/photon
export HOME=/root
print start the photon server
/usr/photon/bin/Photon -g &
on -w /dev/photon -W10
print done
print start the font server
/usr/photon/bin/phfontFA -d /usr/photon/font_repository -j -s 300k &
on -w /dev/phfont -W10
/usr/photon/bin/fontsleuth -d /usr/photon/font_repository &
on -w /dev/fontsleuthctrl
print done
print Start the Photon window manager
/usr/photon/bin/pwm &
#wm.cfg is in /root/.ph/wm/wm.cfg
/usr/photon/bin/wmswitch &
print Done
print start the graphics mode
/bin/crttrap start
the /etc/system/config/graphics.mode is in its place and it is created
by crttrap trap
the fisrt line of it is suitable for my vedio card and my screen and the
devi-cyrix.so
is in /usr/photon/bin,it is the driver of my vedio card
Start the photon input driver
/usr/photon/bin/devi-hirun kbd fd -d/dev/kbd ps2 mousedev &
the arguments are get from the pidin arg
print start the backgroundmanager
/usr/photon/bin/bkgdmgr &
/root/.ph/wm/wm.menu is in its place
start the Shelf
/usr/photon/bin/shelf &