Notes about building a toolchain for the iliad using crosstool

From MobileRead

Jump to: navigation, search

NOTE: Unfinished instructions. That may change :-).

The following instructions were tested in a Debian Sarge system, with scratchbox installed as per Iliad unofficial toolchain page. It's based on [this post]

[edit] Compiling the crosscompiler and libraries

First add a user in your box:

# addused iliad29

Then su to the new user

# su iliad29

Get the last crosstool and iliad files

$ mkdir crosstool
$ cd crosstool
$ wget crosstool-0.43.tar.gz
$ wget -O crosstool-iliad-files.tar.gz "http://www.mobileread.com/forums/attachment.php?attachmentid=1312"

Uncompress crosstool and the iliad crosstool files

$ tar -xvzf crosstool-0.43.tar.gz
$ tar -xvzf crosstool-iliad-files.tar.gz

Move the iliad crosstool files to the appropiate places (yes, actually I should prepare a new tgz, but until then...)

$ mv crosstool/gcc-3.4.2/patches/fix-fixincl-3.4.2.patch crosstool-0.43/patches/gcc-3.4.2/
$ mv crosstool/linux-2.4.19/patches/* crosstool-0.43/patches/linux-2.4.19/
$ mv crosstool/*.sh crosstool-0.43/
$ rm -r crosstool

Put the real irex patch to the kernel

$ wget http://developer.irexnet.com/pub/Linux%20kernel/linux-2.4.19-rmk7-pxa2-irex1.patch.gz
$ gunzip linux-2.4.19-rmk7-pxa2-irex1.patch.gz
$ mv linux-2.4.19-rmk7-pxa2-irex1.patch crosstool-0.43/patches/linux-2.4.19/03-diff-2.4.19-rmk7-pxa2-irex1.patch

Put the script with the bild configuration

$ cd crosstool-0.43/
$ wget -O demo-iliad-softfloat-29.sh "http://www.mobileread.com/forums/attachment.php?attachmentid=2952"

Compile (this step requires some gigabytes and some hours of patience)

$ su
# mkdir /scratchbox/compilers/arm-linux-iliad-softfloat-29
# chmod 755 /scratchbox/compilers/arm-linux-iliad-softfloat-29
# chown iliad29 /scratchbox/compilers/arm-linux-iliad-softfloat-29
# exit
$ . prepare.sh
$ sh demo-iliad-softfloat-29.sh

[edit] Integration with scratchbox

(TBD)

[edit] Creation of the debian packages

(TBD)

Personal tools
MobileRead Networks