User talk:Michaelshiloh

From Openmoko

Revision as of 23:22, 19 July 2007 by Michaelshiloh (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

July 19, 2007

I know I need to fix the formatting. Soon, I promise!

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 # press 2 (to choose git) in previous question # or the appropriate number to choose git # 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 wget http://www.rwhitby.net/files/openmoko/Makefile 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

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

References [1] http://wiki.openmoko.org/wiki/MokoMakefile [2] http://www.openembedded.org/wiki/OEandYourDistro

Personal tools

July 19, 2007

I know I need to fix the formatting. Soon, I promise!

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 # press 2 (to choose git) in previous question # or the appropriate number to choose git # 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 wget http://www.rwhitby.net/files/openmoko/Makefile 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

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

References [1] http://wiki.openmoko.org/wiki/MokoMakefile [2] http://www.openembedded.org/wiki/OEandYourDistro