Hi,
Embeding QNX image is easy, but Photon image not the case.
My target is an x86 PC and buildfile for test is as follows:
[virtual=x86,bios +compress] .bootstrap = {
startup-bios \
PATH=/proc/boot:/bin LD_LIBRARY_PATH=/proc/boot:/lib:/dll procnto
}
[+script] .script = {
display_msg Welcome to QNX on a PC-compatible BIOS system. You’ve got it !
slogger -vv &
devc-con -e &
reopen /dev/con1
export LD_LIBRARY_PATH=/phembed/lib:/lib
export PHOTON_PATH=/phembed
Photon &
on -w /dev/photon -W10 #io-graphic, fonts, etc. to be included later.
# Start the main shell
[+session] esh &
}
[type=link] /dev/console=/dev/con1
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
[perms=+r,+x]
libc.so
[data=copy]
[perms=+r,+x]
ls
esh
ps
pwd
devc-con
slogger
sloginfo
/phembed=/home/peter1/build_test/phembed
It boots with errors
“Unable to start export”(2)
“Unable to start Photon”(2)
“Unable to start on”(2)
Photon is in /phembed/bin, I type on shell"export PHOTON_PATH=/phembed" and “Photon &”, It displays “Unable to start Photon, NO such file and directory”.
“sloginfo " results empty, it just displays"Time Sev Major minor Args”. Why?
I don’t know how to use “export DL_DEBUG=1”, please show me how.
I suspect there are wrongs with shell installation on my host top, sequently,
“esh my_script”, cron utility do not work for me. Currently, it is unable to find Photon. Should I have to update to v6.3 ?
Thanks.
Peter