- Install the openmoko-toolchain deb-package
- Checkout an application of interest For the purpose of this guide an example will be given using the openmoko-calculator2 application. It is of course possible to checkout other applications. For more information about that see the "Notes:" section.
- Set environment variables To use the openmoko-toolchain to compile some environment variables should be set
- Compile the project To compile the project
- Build package
- Use scp to copy the package to the phone and install the package You can install the package on the phone by running the floowing command on the phone.
wget http://smartere.dk/openmoko/openmoko-toolchain_0.20080521-ubuntu6_i386.deb sudo dpkg -i openmoko-toolchain_0.20080521-ubuntu6_i386.debWhile you wait for the download to complete you can jump to step 2 and checkout the openmoko-calculator2 application
mkdir -p ~/src/openmoko/ && cd ~/src/openmoko/ svn co http://svn.openmoko.org/trunk/src/target/OM-2007.2/applications/openmoko-calculator2
. /usr/local/openmoko/arm/setup-env
cd ~/src/openmoko/ && om-conf openmoko-calculator2 cd openmoko-calculator2 #now you could fix a bug make
cd .. && echo "Package: openmoko-calculator2 Version: 0.1.1 Description: package built by openmoko toolchain Section: openmoko/applications Priority: optional Maintainer: your nameArchitecture: armv4t Homepage: http://www.openmoko.org/ Depends: libmokoui2-0 Source: you" > openmoko-calculator2_control om-make-ipkg openmoko-calculator2 openmoko-calculator2_control
opkg install openmoko-calculator2_0.1.1_armv4t.ipk
I have tested the following project:
- contacts
- dates
- tasks
- openmoko-appearance
- gsm
- openmoko-calculator2
- openmoko-firststart2
- openmoko-sample2
- openmoko-today2
- openmoko-worldclock2
- openmoko-browser2
- openmoko-messages2
cd openmoko-messages2/libhito wget http://smartere.dk/openmoko/openmoko_messages2_missing_gdk_event_request_motions.patch patch -p0 < openmoko_messages2_missing_gdk_event_request_motions.patch
- openmoko-mediaplayer
- openmoko-feedreader
- openmoko-appmanager2
Adding package X:
sudo su . /usr/local/openmoko/arm/setup-env opkg-target install X exit