android omnia kernel build

http://andromnia.blogspot.com/2009/08/andromnia-tutorial-so-far.html

 

What do you need to install Android OS on a Samsung Omnia ?

  1. A Samsung Omnia
  2. A linux PC (I made that with Ubuntu 9.04)
  3. A little basic shell command knowledge
  4. A Mini SD card (couple gig's)
  5. Some time ^^

First, get all the necessary packages:

sudo apt-get install linux-headers-$(uname -r) gcc make kernel-package libncurses5-dev fakeroot wget bzip2 git-svn curl git-core gedit build-essential debhelper libqt3-mt-dev libxtst-dev libqt3-headers qt4-qmake qt4-qtconfig libqt4-gui libqt4-core subversion

Next, get the latest version of the project (this step may take a while, it's about a giga):

svn co https://dotpt.com/svn/andromnia/trunk/ ~/andromnia

Get the cross compiler and extract it in your andromnia directory:

http://www.codesourcery.com/sgpp/lite/arm/portal/package3696/public/arm-none-linux-gnueabi/arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

Create this link :

ln -s ~/andromnia/arm-2008q3 ~/andromnia/arm_cross_compiler

Get the haret archive and extract it in your andromnia/haret directory (yes create it too):

http://pmaster.no/andromnia/haret.zip

Then, go to the kernel's directory and build it (takes some time, grab a coffee and/or a smoke):

cd ~/andromnia/kernel
make zImage

Finally, copy it to haret's directory for convenience's sake 

cp ~/andromnia/kernel/arch/arm/boot/zImage ~/andromnia/haret/zImage

Copy the contents of ~/andromnia/rootfs to the root of your sd card (should be formatted with ext2 or ext3)
HOT TIP: Don't forget to unmount before removing the cable/unplugging it!!!
Copy the contents of ~/andromnia/haret anywhere on your phone (except the sd card), run haret.exe and tap run!

Voilà ^^