User talk:Michaelshiloh

From Openmoko

Jump to: navigation, search

Michaelshiloh 01:22, 20 July 2007 (CEST)

I had to set up a new Ubuntu system recently and took the opportunity to record exactly what had to be installed on top of a standard 7.04 install to build an Openmoko image:

1. Check and fix what sh links to, if necessary [1]

 ls -l /bin/sh
 sudo ln -sf /bin/bash /bin/sh
 ls -l /bin/sh

2. Install Open Embedded [2]

 sudo apt-get install python-psyco monotone git-core cogito
 sudo update-alternatives --config git

If it asks choose the appropriate number to choose git. This is not required or do nothing if it says "only 1 program provides git"

 sudo apt-get install 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

That took about 10 minutes on my slow DSL line

3. Create build directory [1]

 sudo mkdir /home/moko 
 sudo chown michael /home/moko

4. Set up build environment [1]

 cd /home/moko
 make setup

that took 2 hours

 make openmoko-devel-image

that took 7 hours

observe that an image has been built:

 ls -l build/tmp/deploy/images

5. Update, if necessary (e.g. if time has passed)

 make update-makefile
 make setup 
 make update

6. More installs required for Qemu

need gcc < 4

 sudo apt-get install gcc-3.4

get SDL and the pbm utilities (provides pngtopnm and ppmtorgb3)

 sudo apt-get install libsdl1.2-dev netpbm

7. Building and running Qemu

in my case some time had passed so I did an update, and I had some failed builds so I did a clobber.

 make update-openmoko
 make clobber-qemu
 time make build-qemu
 make flash-qemu-local (for image that you compiled yourself)
 make run-qemu


Personal tools