Navit has not been successfully ported to TomTom yet. However, there is work in progress. I will scratch my experiences here and, hopefully, end up with some guide on porting Navit to TomTom.
Lots of information can be found at http://www.opentom.org.
Before we can start, we need to set up a compiler toolchain targetting TomTom devices. TomTom provides a a pre-compiled compiler toolchain for Linux and Windows. It can be downloaded from TomTom's website: http://www.tomtom.com/page.php?Page=gpl. This file needs to be unpacked into /usr/local/cross.
In order to use the TomTom compiler and libraries, we need to set some environment variables:
export PREFIX=/usr/local/cross/gcc-3.3.4_glibc-2.3.2/arm-linux/sys-root export CFLAGS="-mcpu=arm920t -O2 -I$PREFIX/include -I$PREFIX/usr/include" export CPPFLAGS="-I$PREFIX/include -I$PREFIX/usr/include" export LDFLAGS="-L$PREFIX/lib -L$PREFIX/usr/lib"
The toolchain is now ready for use.
Several libraries need are needed by Navit and must be ported as well.