N810
From CourvilleWiki
Contents |
Gain root access
./flasher-3.0 --enable-rd-mode sudo gainroot passwd user passwd root passwd -l root echo "user ALL = PASSWD: /bin/su" >> /etc/sudoers sudo su -
Install maemo diablo development framework on your debian
- As root:
wget http://repository.maemo.org/stable/diablo/maemo-scratchbox-install_4.1.sh echo 0 > /proc/sys/vm/vdso_enabled ./maemo-scratchbox-install_4.1.sh /scratchbox/sbin/sbox_adduser marc yes
- as user
wget http://repository.maemo.org/stable/diablo/maemo-sdk-install_4.1.sh ./maemo-sdk-install_4.1.sh
- to enter scratchbox:
/scratchbox/login
- outside scratchbox
apt-get install xserver-xephyr Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -extension Composite
- in scratchbox launch hildon application framework inside xephyr
export DISPLAY=:2 af-sb-init.sh start
Start porting!
Note that all the instructions provided below are for building from scratch the native armel packages under scratchbox compilation framework/
ports available:
- mutt armel deb package: yes I am found of this text email client and can't live without it!
- cyrus-sasl deb package: library used by the above mutt version
- octave deb package: octave is my scientific calculator
mutt port
- first generate cyrus-sasl package if you need sasl: mutt dependence
export DEBFULLNAME="Marc de Courville" wget ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.22.tar.gz tar zxvf cyrus-sasl-2.1.22.tar.gz cd cyrus-sasl-2.1.22 dh_make -e marc@courville.org -f ../cyrus-sasl-2.1.22.tar.gz cd debian/ vi changelog compat control copyright rules cd .. dpkg-buildpackage -rfakeroot -b cd .. dpkg -i cyrus-sasl_2.1.22-1_armel.deb
- generate mutt package by customizing debian/rules file adding --enable-smtp --enable-imap --enable-pop --with-ssl=/usr/include/openssl --with-sasl=/usr/include/sasl to ./configure options
wget ftp://ftp.mutt.org/mutt/devel/mutt-1.5.18.tar.gz tar zxvf mutt-1.5.18.tar.gz cd mutt-1.5.18 dh_make -e marc@courville.org -f ../mutt-1.5.18.tar.gz cd debian/ vi changelog compat control copyright rules cd .. dpkg-buildpackage -rfakeroot -b cd ..
- on the n810: (you need to have naemo extra-devel repository installed see http://www.gronmayer.com/it/)
apt-get install libncursesw5
octave port
- install f2c and f77 compiler script on scratchbox retreived from http://netlib.sandia.gov/f2c/
export DEBFULLNAME="Marc de Courville" wget https://computation.llnl.gov/casc/Overture/henshaw/software/f2c.tar.gz tar zxvf f2c.tar.gz cd f2c cd src cp makefile.u Makefile make cp f2c /usr/bin cd .. unzip libf2c.zip cd libf2c cp makefile.u Makefile make cp libf2c.a /usr/lib cp f2c.h /usr/include/ cd ../.. wget http://modular.math.washington.edu/home/was/s/lib64/R/bin/f77_f2c chmod a+rx f77_f2c cp f77_f2c /usr/bin
- install readline librairies
apt-get install libreadline4 libreadline4-dev
- get octave to compile by modifying debian/rules file prefixing ./configure by a F77=/usr/bin/f77_f2c ./configure and also add this line afer ./configure in debian/rules since makeinfo is not available and we want to avoid the error when removing uncreated files sed -i -e "s:rm -f INSTALL:cp ../../INSTALL.OCTAVE ./INSTALL:g" -e "s:rm -f BUGS:cp ../../BUGS ./BUGS:g" doc/interpreter/Makefile
wget ftp://ftp.octave.org/pub/octave/octave-3.0.2.tar.gz tar zxvf octave-3.0.2.tar.gz cd octave-3.0.2 dh_make -e marc@courville.org -f ../octave-3.0.2.tar.gz cd debian/ vi changelog compat control copyright rules cd .. dpkg-buildpackage -rfakeroot -b cd ..
gnuplot
I failed to compile gnuplot because of an internal arm gcc compiler error. To my knowledge there is no known solution with the current toolchain used in scratchbox.
matrix.c: In function `lu_decomp': matrix.c:328: internal compiler error: Segmentation fault

