I’m trying to get spi working on my bb xm.
I have Ubuntu 12.04 on it up and running.
On my host machine (ubuntu 12.04 32 bit), I gave the following command to obtain the spi test program: arm-linux-gnueabi-gcc Documentation/spi/spidev_test.c -o spitest
Then I moved spitest on the rootfs.
Once there, I have:
ubuntu@omap:/$ ls -lh spitest
-rwxr-xr-x 1 root root 13K Jul 29 04:57 spitest
But if I try to run it via ./spitest -D /dev/spidev3.0, I have the following response:
ubuntu@omap:/$ ./spitest -D /dev/spidev3.0
-bash: ./spitest: No such file or directory
If I use sudo, I obtained no answer, like this:
ubuntu@omap:/$ sudo ./spitest -D /dev/spidev3.0
[sudo] password for ubuntu:
On the bb xm I have:
ubuntu@omap:/$ uname -a
Linux omap 3.2.23-x14 #1 SMP Fri Jul 13 05:02:22 UTC 2012 armv7l armv7l armv7l GNU/Linux
ubuntu@omap:/$ file spitest
spitest: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.31, BuildID[sha1]=0x61418d323abdbc761bbb22a963e3ca5bed
The weird detail is the output of the last command. It contains “for GNU/Linux 2.6.31” but the spitest executable was obtained against a more recent kernel:
daniele@sviluppo:~/bb/ubuntu/RobertCNelson/stable-kernel/KERNEL$ make kernelversion
As you can see, the kernel version on the host machine is the same on the bb xm.
So guys, do you know how can I fix this?
Thank you in advance,