Thursday, August 30, 2007

Calibrating the openmoko v2007.2

The openmoko-crew has rewritten the GUI of the phone, so it should be more intuitive. So I thought, I should try the new interface. The MokoMakefile supports already the new version, so I installed it (just follow the steps of my previous post). A new problem raised when I started the emulated phone. I didn't get the calibration screen, like I got with the 2007.1 version. After committing a bug, they said that it was already calibrated for using it with the reel phone. So if you put the software on the neo1973, you didn't need to calibrate the screen because it was done previously. If you just want to use the phone on an emulated Qemu environment, you couldn't use your mouse for using the phone, because the screen is turned. If you click on the top, you actually click on the left.

Now I have searched the easiest way to calibrate the screen and I have found it. We will just call the calibration script from the terminal in the emulated phone.

You click on the middle left of your screen and you will get the applications list. Then we will use our keyboard, because we can't locate easily the buttons we need. You click on the tab-button (if the first application isn't selected). Then you click on the down array till the terminal application is selected. Then hit enter. Now the terminal should start. There you enter the following command and you can calibrate the screen.
/usr/bin/ts_calibrate
Voila, now we can use our mouse for using the emulated phone.
If you have problems or questions, ask them.

Run openmoko on your Ubuntu installation

The strength of openmoko is also their weakness. For the past month I have followed the openmoko project closely and I tried to help with changing the wiki at http://openmoko.org. Of course I wanted to run an emulated openmoko on my own computer and so I've dived into the wiki explanations for running it with qemu. If you look into the wiki, you will see, there are not several, but numerous ways to get it done. The one for development, the next has other advances. You get easily lost and use the wrong method to get your openmoko on your pc. Therefor I wanted to write a solid and easy way to get it onto your ubuntu (my favorite linux distribution) working.

You have to known that there is a great tool to get it running on a linux system,namely the MokoMakefile. This is a sort of wrapper round several instructions, so it is easy to set up and maintain a development environment. If you build the whole MokoMakefile, you will need approximately 12GB, a swap+ram memory of about 1GB and minimum 5 hours time. But we will only build it for Qemu (the emulator that I will use) and that needs (on my system) only 890mb and a 15 min of your time. Enought blabla.

To get it running, you will have to tweak your ubuntu a little bit (This will not damage other programs, everything will work as before). For more information see http://www.openembedded.org/wiki/OEandYourDistro

sudo dpkg-reconfigure dash
and select NO if it ask to install dash as /bin/sh.
Install the needed stuff:
sudo apt-get install monotone git-core cogito python-dev ccache m4 sed bison make cvs gawk libc6-dev g++ subversion sharutils docbook openjade quilt libmpfr-dev libpcre3-dev texinfo texi2html libboost-date-time-dev libboost-filesystem-dev libboost-regex-dev libboost-test-dev libboost-dev zlib1g-dev build-essential dh-make debhelper devscripts gcc-3.4 lynx netpbm libsdl1.2-dev dosfstools
Voila your system is ready to get the install the openmoko.
First we will create a directory and download the MokoMakefile in it:
mkdir openmoko
cd openmoko
wget http://www.rwhitby.net/files/openmoko/Makefile
Now we will tell to build it for using it with Qemu:
make qemu
This will download the necessarily files of the lastest release and build them following the MokoMakefile. After that it will start into the emulator for the first time. Voila your have now successfully installed openmoko onto your ubuntu system. If you want to start it, you will have to go into the folder and run the following command:
cd openmoko
make run-qemu

If you run openmoko, the bootloader will load, there you can choose different options. For select an option you have to press enter (=aux) and to execute it, hit space (=power). Thus if the bootloader shows, you just have to hit the space bar and the phone software will load.

So far the tutorial for getting openmoko on an ubuntu system,
If you have any problems, just leave a comment. I will try to fix it.