User talk:Michaelshiloh

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Ubuntu 7.04 to OpenMoko image and Qemu in 7 easy steps)
 
Line 1: Line 1:
July 19, 2007
+
[[User:Michaelshiloh|Michaelshiloh]] 01:22, 20 July 2007 (CEST) <br />
 
+
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
 
I had to set up a new Ubuntu system recently and took the opportunity to
Line 8: Line 6:
  
  
1. Check and fix what sh links to, if necessary [1]
+
1. Check and fix what sh links to, if necessary <ref>http://wiki.openmoko.org/wiki/MokoMakefile</ref>
 +
 
 +
  ls -l /bin/sh
 +
  sudo ln -sf /bin/bash /bin/sh
 +
  ls -l /bin/sh
  
ls -l /bin/sh
+
2. Install Open Embedded <ref> http://www.openembedded.org/wiki/OEandYourDistro</ref>
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
  
<nowiki>sudo apt-get install python-psyco monotone git-core cogito</nowiki>
+
  sudo update-alternatives --config git
  
<nowiki>sudo update-alternatives --config git
+
If it asks choose the appropriate number to choose git. This is not required
# press 2 (to choose git) in previous question
+
or do nothing if it says "only 1 program provides git"
# or the appropriate number to choose git
+
# or do nothing if it says "only 1 program provides git"</nowiki>
+
  
<nowiki>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</nowiki>
+
  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
+
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 mkdir /home/moko  
sudo chown michael /home/moko
+
  sudo chown michael /home/moko
  
 
4.  Set up build environment [1]
 
4.  Set up build environment [1]
  
cd /home/moko
+
  cd /home/moko
wget http://www.rwhitby.net/files/openmoko/Makefile
+
  wget http://www.rwhitby.net/files/openmoko/Makefile
make setup
+
  make setup
  
 
that took 2 hours
 
that took 2 hours
+
 
make openmoko-devel-image
+
  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
+
  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 update-makefile
make setup  
+
  make setup  
make update
+
  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
+
  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
+
  sudo apt-get install libsdl1.2-dev
  
 
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 update-openmoko
make clobber-qemu
+
  make clobber-qemu
time make build-qemu
+
  time make build-qemu
make flash-qemu-local (for image that you compiled yourself)
+
  make flash-qemu-local (for image that you compiled yourself)
make run-qemu
+
  make run-qemu
  
References
+
References: <references/>
[1] http://wiki.openmoko.org/wiki/MokoMakefile
+
[2] http://www.openembedded.org/wiki/OEandYourDistro
+

Revision as of 01:22, 20 July 2007

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 <ref>http://wiki.openmoko.org/wiki/MokoMakefile</ref>

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

2. Install Open Embedded <ref> http://www.openembedded.org/wiki/OEandYourDistro</ref>

 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

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: <references/>

Personal tools

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 <ref>http://wiki.openmoko.org/wiki/MokoMakefile</ref>

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

2. Install Open Embedded <ref> http://www.openembedded.org/wiki/OEandYourDistro</ref>

 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

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: <references/>