I've started working on a HL-PC1088. It's a cheap ARM based on a VIA WM8880 notebook with Android 4.2. I use Terminal-IDE which provides a minimal posix system, a fulll compiler chain, vi and git. The only other thing I eed to code is Mercurial, my favorite SCM.
Frist Install a working python based on the one provided by Py4A. Download:
Unzip all archives in place to get a python directory.
Shell
unzip python_r16.zip | |
cd python | |
unzip ../python-lib_r16.zip | |
unzip ../python_extras_r14.zip | |
mkdir share | |
mv python share | |
mv bin/python bin/python.elf | |
chmod +x bin/python.elf | |
rm -rf python/py4a python.sh setup.cfg setup.sh | |
cd .. |
Create a wrapper to launch python script in python/bin/python
Shell
#!/bin/sh | |
| |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/local/lib | |
export TEMP=$HOME/tmp | |
export PYTHONHOME=$HOME/local | |
export PYTHONPATH=$HOME/local/share/python:$HOME/local/lib/python2.6/lib-dynload | |
export PYTHON_EGG_CACHE=$TEMP | |
exec $HOME/local/bin/python.elf "$@" |
and move all stuff in the local repository of Terminal-IDE
Shell
chmod +x python/bin/python | |
mkdir tmp | |
for d in bin include lib share; do | |
[ -d $d ] || mkdir $HOME/local/$d | |
mv python/$d/* $HOME/local/$d/ | |
done | |
rmdir python |
Download python 2.6.2 source to get a valid Makefile
Shell
tar tvjf Python-2.6.2.tar.bz2 | |
cd Python-2.6.2 | |
./configure --prefix=$HOME | |
mkdir $HOME/local/lib/python2.6/config | |
cp Makefile $HOME/local/lib/python2.6/config | |
cd .. | |
rm -rf Python-2.6.2 |
Then, download Mercurial 1.8.4 (later versions need an unavaliable python module named grp) and install it as "pure" python with:
Shell
tar xvzf mercurial-1.8.4.tar.gz | |
cd mercurial-1.8.4 | |
python setup.py --pure install | |
cd .. | |
rm -rf mercurial-1.8.4 | |
sed -i 's/\.elf//' $HOME/local/bin/hg |
That's it!