Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

problem with Photon's utility starting
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: Problem with Photon utility
  • SDP: 6.4.1
  • Target: Any supported target
________________________________________________________________________

Question
________________________________________________________________________

There is some problem with Photon's utility starting. For example, I try to start phcalc and got:
# phcalc
Ap: Unable to open resource file
(/proc/boot/phcalc)
And phcalc in image has size
# ls -l /proc/boot/phcalc
-rwxrwxrwx 1 0 0 48253 May 20 2009 /proc/boot/phcalc
But the real size is:
# ls -l /tmp/phcalc
-rwxrwxrwx 2 0 0 83455 Jan 01 00:14 /tmp/phcalc
And it works fine from /tmp (/dev/shmem).


________________________________________________________________________

Recommendation
________________________________________________________________________

http://www.qnx.org/developers/docs/6.4.1/neutrino/utilities/m/mkifs.html#raw

You need to check for the +raw attribute.

[+raw] # Don't strip usage, debugging or
othello # Photon resources from binaries

[-raw] esh # Only esh is affected
pwm # Still affected by +raw flag
pfm

[-raw] # Turn off +raw, since shared objects
libphrender.so # can't be shared if +raw is enabled
libph.so

[+raw] my_ph_app # We want Photon resources for this
# file only. The -raw flag is
# still in effect for other files.
libc.so # Still affected by -raw flag
...

Doit with your phcalc Photon app.

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.