How to run the SPI example on Linux

Hi there,

I’m using the iMX6ULL with Linux Console, I’ve already enabled the spidev on device tree and now I’m trying to run the spidev_test.c example to verify my spidev device. I compiled the example using the arm-cross compiler “arm-linux-gnueabi-gcc”, but when I try tu run on iMX using “./outuput” on console, it returns to me:

root@colibri-imx6ull:~/test# ./output
-sh: ./output: not found

I’ve also try one hello-world code with no success. Do you know what I’m doing wrong here?

Thanks for your support!



  • Is the executable flag of the output set?
  • Did you compile with the right cross compiler / compiler flags?

E.g. what do the following commands report?

ls output -l
file output