Jay Greig wrote:
That is interesting. I’ve never seen that before. Could it be that the
tail of your image is getting corrupt on the way over? Can you put
‘cksum’ in your image (and hopefully have it not be at the tail!) and
verify that your binaries make it over safely? (You will have to put a
[+raw] before each binary in your .bsh file (so that mkifs doesn’t strip
them).
Hmm, I added ‘chksum’ and ‘less’ (I didn’t want chksum to be last > > )
I’m using the IDE, so I set the properties (in the project.bld) to not
strip the files for both ‘less’ and ‘which’.
On Windows:
C:\QNX630\target\qnx6\ppcbe\usr\bin>cksum which
2676093045 7536 which
C:\QNX630\target\qnx6\ppcbe\usr\bin>cksum less
4051530548 138100 less
On QNX:
cksum which
1266420219 7536 which
Process 36870 (cksum) exited status=0.
cksum less
3603936577 138100 less
Process 40966 (cksum) exited status=0.
The checksums are different on both, but the file sizes are correct…
‘which’ ended up to be the last binary in the image and as expected does
not work, and less does work (at least it runs):
less
WARNING: terminal is not fully functional
Missing filename (“less -?” for help)
Process 53254 (less) exited status=0.
which
Exec format error
Should the checksums match? I noticed in the properties page for the
binaries (in project.bld), they say:
“Code Segment” = “Use In Place”, and
“Data Segment” = “Copy”
Would these parameters have an effect on the checksum?
John Kiernan wrote:
John Kiernan wrote:
Do I have to compile a program differently when adding it the the
downloaded image? I wrote a simple test program and added it to the
image (I’m using the GUI).
When I try to run the program I get the message:
Exec format error
I’m using QNX 6.3 and running it on a MPC8245 system.
Okay, something is really weird here. I added another binary to the
image just to test (echo)…
echo crashes with a SIGILL, however, the test program now works?!
So I added another binary (which)…
which crashes with SIGILL, however, the test program and echo now
work?!
I added another binary (vi) …
vi crashes with SIGILL, … test program, echo, and which all work!
Always the last program in the image doesn’t run properly in some way
or another.
vi is the last program in the image see attached ‘System Builder
Console’.