This message was posted on behalf of Intel Corporation
Hello Johan Kruger,
Everything you've done is fine, what is happening is that when you try to run test1 with the command /tmp/test1 you are not actually running it. If you are already on the /tmp/ directory you can run it with the command ./test1.
Try that little difference and let me know if this time it works.
I did try that. I also added "." to the path, just in case.
I then copied "/bin/ls" to "/tmp/ls" and executed "/tmp/ls" which worked.
I then copied "/tmp/test1" to "/tmp/ls" and executed "/tmp/ls" and it gave "-sh: /tmp/ls: not found" error.
Maybe the binaries I compiled with the new SDK, is not compatible with the older image that is shipped with the board, however, they are simply 32-bit elf binaries and should be compatible.
1 of 1 people found this helpful
It appears that if I compile the binaries staticly, that it works.
It turns out that the message received ("-sh: ./test: not found") is just not the usual to indicate missing libraries.
Since the SDK I used is newer, it linked with libraries that are not part of the SPI flash image.
This is normally easily observed if the correct message is returned, in this case it seemed as if the file was not visible on the file-system.