Compiling AX06 GPL
Where to get the sources
They're available from Archos.com, click on Support & Account, then Downloads. They are not complete, all you get from them is the GPL-licensed parts of the Archos source code. For example, the avos source code is not included, so if you want to get your copy of the that file you have to open up your device, find the hidden partition and extract rootfs.cramfs.secure from it.
Compiling on Ubuntu
The sources need a bunch of libraries to get compiled. Make sure the following packages are installed:
sudo apt-get install build-essential flex bison gettext libncurses5-dev texinfo autoconf libtool uboot-mkimage zlib1g-dev
You will also have trouble compiling gdb as-is, because the compiler complains about unchecked return values. Download this zip file, decompress it and copy the files over:
buildroot/toolchain_build_arm/gdb-stable/gdb/cli/cli-cmds.c buildroot/toolchain_build_arm/gdb-stable/gdb/mi/mi-cmd-env.c buildroot/toolchain_build_arm/gdb-stable/gdb/main.c buildroot/toolchain_build_arm/gdb-stable/gdb/top.c buildroot/toolchain_build_arm/gdb-stable/gdb/utils.c buildroot/toolchain_build_arm/gdb-stable/gdb/inflow.c buildroot/build_arm/makedevs/makedevs.c
You will also need to compile glib to get a proper copy of glib-genmarshal. Download the latest glib sources from http://ftp.acc.umu.se/pub/gnome/sources/glib/, then extract the archive and type the following commands:
./configure make sudo make install
Now you can proceed to compiling the AX06_GPL sources, so go in the buildroot folder and type make. After a while the compiler will stop and complain about LT_AGE:
configure.in:48: error: possibly undefined macro: LT_AGE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.
Open the file buildroot/build_arm/fontconfig-2.4.2/configure.in, search for LT_AGE=2 (it should be on line 48) and add AC_SUBST(LT_AGE) on the line just below.
Now it should compile just fine... Wait a couple of hours for the compilation to finish, then you'll find the compiled source tree in this folder:
You'll find gdb here: