We are currently developing with EzSDK for Netra TI8168 and would like to know how to cross compile python using code sourcery tool chain.
RV
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi RV,
I would suggest looking at OpenEmbedded for details on how to cross compile different linux libraries and programs, including Python. The SDK itself is put together using a flavor of OpenEmbedded. You will find support from the OE community on cross compilation issues as well.
--Sid
Hi RV,
we are looking for the exact same thing here and I was wondering if you succeeded. Could you share your experience (steps, specific issue...) ?
Thanks !
P-O
I finally got it working fairly quickly I thought of sharing the process for future reference.
1- Download both "python-core" and "libpython2.6-1.0" from http://www.angstrom-distribution.org. Simply select the latest armv4t package (for the dm816x).
2- For both package, uncompress the ipk file to a temporary location using "ar". Then simply uncompress the "data.tar.gz" to the base of your target filesystem.
That worked for me. I guess you could add specific python libraries the same way.
P-O
Since TI81XX is cortex a8, I would suggest going with ARMv7a architecture for optimized code. Also note that EZSDK is built not on the Angstrom toolchain, it uses Code Sourcery.So this is not supported by TI.
I followed instructions from http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html to get python 2.7.2 compiled in the EZSDK.
./configure
make python Parser/pgen
mv python hostpython
mv Parser/pgen Parser/hostpgen
make distclean
1121.Python-2.7.2-xcompile.patch.zip
patch -p1 < Python-2.7.2-xcompile.patch
After running the above python should be installed into ~/Python-2.7.2/_install.
I haven't found a way to get this to work with sqlite etc..
Regards
RV