Difference between revisions of "Openmoko"

From Navit's Wiki
Jump to: navigation, search
(Compiling Navit from Source)
(Cross-compile on Debian Lenny GNU/Linux)
Line 65: Line 65:
svn co https://navit.svn.sourceforge.net/svnroot/navit/trunk
svn co https://navit.svn.sourceforge.net/svnroot/navit/trunk
om-conf navit
om-conf trunk/navit

Revision as of 10:40, 15 October 2009

An article about navit can be found in the OpenMoko-Wiki. Further detail on the OpenMoko Freerunner can be found on the following website of openmoko and freerunner.

In general you can download the software according to the instructions found in SVN as opkg packages. You have to add the navit repository (feed), update and install navit with opkg.


An other option without compiling navit is to follow the instructions in the SHR User Manual of the SHR distribution for your freerunner. SHR is one of the available distributions on your freerunner.

  • You can flash the memory of your freerunner with the SHR distribution and install Navit with the installer opkg
 opkg install navit 

Compiling Navit from Source

I find it useful to use agps, as it will shorten the time to first fix considerably. you can find the software here .

Compiling on the FreeRunner itself

If you decide to to compile the software on the freerunner itself, don't forget to set the CC flags! :

export CCFLAGS="-march=armv4t -mtune=arm920t"
export CC=`which armv4tl-softfloat-linux-gnueabi-gcc`

Cross-compile on Debian Lenny GNU/Linux

Install some required development packages:

apt-get install alien autoconf automake autotools-dev build-essential ccache check curl \
fakeroot gettext intltool libgconf2-dev libglib2.0-dev libtool libxrender-dev mtools uboot-mkimage

Install the OpenMoko Toolchain, we decided to make a Debian package from the tarball, so (dis)installation is easy:

wget http://downloads.openmoko.org/developer/toolchains/openmoko-i686-20090323-armv4t-linux-gnueabi-toolchain-openmoko.tar.bz2
bunzip2 openmoko-i686-20090323-armv4t-linux-gnueabi-toolchain-openmoko.tar.bz2
gzip openmoko-i686-20090323-armv4t-linux-gnueabi-toolchain-openmoko.tar
fakeroot alien -d openmoko-i686-20090323-armv4t-linux-gnueabi-toolchain-openmoko.tar.gz
sudo dpkg -i openmoko-i686_20090323-2_all.deb

Edit /usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/etc/opkg.conf and set your preferred OpenMoko repositories. Default is unstable, I used Om2008.8 instead.

Add the following line to /usr/local/openmoko/arm/environment-setup:

export OMTOOL_DIR=/usr/local/openmoko

Install with opkg-target some OpenMoko -dev packages required to compile Navit:

. /usr/local/openmoko/arm/environment-setup
opkg-target update
opkg-target install gpsd-dev
opkg-target install gtk+-dev
opkg-target install libspeechd-dev

Now we check-out Navit sources from the SVN repository and run om-conf to prepare the automake, autoconf and make files to run into the OpenMoko toolchain:

svn co https://navit.svn.sourceforge.net/svnroot/navit/trunk
om-conf trunk/navit

It's time to cross-compile:

cd trunk/navit

TODO: Check compile flags and optimization. Make an .opk package.