Other Parts Discussed in Thread: OMAPL138
Tool/software: Linux
Hello,
I have a TMDSLCDK138 board and I want to install python 2.7 on it but when I try to run it I have this error :
root@omapl138-lcdk:~# python
-sh: /usr/bin/python: cannot execute binary file
I proceeded like this :
I successfully cross-compiled python 2.7.13 on my Fedora 25 with the linaro toolchain after installing it (releases.linaro.org/components/toolchain/binaries/6.2-2016.11/) like this :
CONFIG_SITE=config.site ./configure --build=x86_64-linux-gnu --host=arm-linux-gnueabihf --disable-ipv6 --enable-unicode=ucs4
I had to do a config.site because during the compilation it asked me to precise :
ac_cv_file__dev_ptmx=no/yes
ac_cv_file__dev_ptc=no/yes
And I put "no" to both of them like this guy did : datko.net/2013/05/10/cross-compiling-python-3-3-1-for-beaglebone-arm-angstrom/
Then I test to add :
--host=arm-elf-linux
Because it worked for another lib (pjsip), but unfortunately it didn't worked so I found this solution :
--host=arm-unknown-linux-gnueabihf
Here : github.com/jedisct1/libsodium/issues/274
And this was for an error during the configuration asking me to do so :
--desable-ipv6
Then the configuration went well, so the make. To do the make install, because I had to install it on my board, I did :
$ make install DESTDIR=OMAPL138_Python
I did a tar.bz2, sended it to my board, extract it en past the files in /usr/ to install it.
And here when I want to launch it I have the error.
So I tried whit the arago toolchain like so :
$ wget downloads.ti.com/.../arago-2011.09-armv5te-linux-gnueabi-sdk.tar.bz2 $ tar -jxvf arago-2011.09-armv5te-linux-gnueabi-sdk.tar.bz2 -C $HOME
$ export PATH=$HOME/arago-2011.09/armv5te/bin:$PATH
And configuring the installation like so (found here : e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/197225) :
./configure --prefix=/home/usr/Téléchargements/Python-2.7.13/OMAPL138_Python/ --exec-prefix=/home/usr/Téléchargements/Python-2.7.13/OMAPL138_Python/ --without-gcc --with-cxx-main=arm-arago-linux-gnueabi_gcc
But then when I launch "make" it says :
make: arm-arago-linux-gnueabi_gcc : command not found
What is the proper way to get python cross compiled and working on the TMDSLCDK138 ?
Thank you very much !