User talk:Michaelshiloh
From Openmoko
(Ubuntu 7.04 to OpenMoko image and Qemu in 7 easy steps) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | July | + | [[User:Michaelshiloh|Michaelshiloh]] 01:22, 20 July 2007 (CEST) <br /> |
− | + | ||
− | + | ||
I had to set up a new Ubuntu system recently and took the opportunity to | 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 | record exactly what had to be installed on top of a standard 7.04 install to | ||
− | build an | + | build an Openmoko image: |
+ | |||
+ | 1. Check and fix what sh links to, if necessary [http://wiki.openmoko.org/wiki/MokoMakefile] | ||
− | + | ls -l /bin/sh | |
+ | sudo ln -sf /bin/bash /bin/sh | ||
+ | ls -l /bin/sh | ||
− | + | 2. Install Open Embedded [http://www.openembedded.org/wiki/OEandYourDistro] | |
− | + | ||
− | + | ||
− | + | 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] | 3. Create build directory [1] | ||
− | + | sudo mkdir /home/moko | |
− | + | sudo chown michael /home/moko | |
4. Set up build environment [1] | 4. Set up build environment [1] | ||
− | + | cd /home/moko | |
− | + | wget http://www.rwhitby.net/files/openmoko/Makefile | |
− | + | make setup | |
that took 2 hours | that took 2 hours | ||
− | + | ||
− | + | make openmoko-devel-image | |
that took 7 hours | that took 7 hours | ||
Line 46: | Line 48: | ||
observe that an image has been built: | observe that an image has been built: | ||
− | + | ls -l build/tmp/deploy/images | |
5. Update, if necessary (e.g. if time has passed) | 5. Update, if necessary (e.g. if time has passed) | ||
− | + | make update-makefile | |
− | + | make setup | |
− | + | make update | |
6. More installs required for Qemu | 6. More installs required for Qemu | ||
Line 58: | Line 60: | ||
need gcc < 4 | need gcc < 4 | ||
− | + | sudo apt-get install gcc-3.4 | |
get SDL and the pbm utilities (provides pngtopnm and ppmtorgb3) | get SDL and the pbm utilities (provides pngtopnm and ppmtorgb3) | ||
− | + | sudo apt-get install libsdl1.2-dev netpbm | |
7. Building and running Qemu | 7. Building and running Qemu | ||
Line 69: | Line 71: | ||
builds so I did a clobber. | 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 | + | References: |
− | + | ||
− | + |
Latest revision as of 08:07, 3 July 2008
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 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 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
References: