Difference between revisions of "LisaOveroImage"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
sudo apt-get install libglib2.0-dev | sudo apt-get install libglib2.0-dev | ||
* Ubuntu 10 will also need to remove the link for /bin/sh that points to dash and instead point it to bash | * Ubuntu 10 will also need to remove the link for /bin/sh that points to dash and instead point it to bash | ||
Run | |||
sudo dpkg-reconfigure dash | |||
and answer no when asked whether you want to install dash as /bin/sh. | |||
or alternative: | |||
sudo su - | sudo su - | ||
cd /bin && rm -f sh && ln -s bash sh | cd /bin && rm -f sh && ln -s bash sh | ||
* Make an overo-oe directory in your home directory!!!!!, cd into it!!: | * Make an overo-oe directory in your home directory!!!!!, cd into it!!: |
Revision as of 03:15, 2 December 2010
Building an Overo image for Lisa with Open Embedded
The goal is to use openmbedded to build an image for the overo with the bits needed for Lisa. Currently this includes
- libevent
- linux kernel 2.6.33.5-rt23 (maintained at git://gitorious.org/linux-omap3/linux-omap3.git)
- based on gumstix-oe from (git://www.sakoman.com/git/linux-omap-2.6.git)
- antoine's patch for spi device node on overo
- 2.6.33.5-rt23 preempt-rt patch
- Make sure you have bitbake and build-essential installed:
apt-get install bitbake build-essential
- Ubuntu 10 will also get errors during bitbake unless the following is installed
sudo apt-get install git-core help2man diffstat texi2html texinfo chrpath sgmlspl
- And don't forget to install glib
sudo apt-get install libglib2.0-dev
- Ubuntu 10 will also need to remove the link for /bin/sh that points to dash and instead point it to bash
Run
sudo dpkg-reconfigure dash
and answer no when asked whether you want to install dash as /bin/sh.
or alternative:
sudo su - cd /bin && rm -f sh && ln -s bash sh
- Make an overo-oe directory in your home directory!!!!!, cd into it!!:
mkdir ~/overo-oe cd ~/overo-oe
- Clone Allen's openmebedded tree:
git clone git://gitorious.org/linux-omap3/openembedded.git org.openembedded.dev
(If you want to take a look at the repository beforehand you can find it Here)
- Copy build profile into ~/overo-oe, source it:
cp -r org.openembedded.dev/contrib/jei/build . source ~/overo-oe/build/profile
- Use bitbake to build the image:
bitbake omap3-lisa-image
On July 9 2010, on an up to date lucid lynx, the build is broken due to a bug in bug in gzip ( yeah.. they still have that... )
ERROR: ....expat_2.0.1.bb do_unpack failed
solution to this error:
http://www.facebook.com/note.php?note_id=398968379361
follow instructions of ERROR#1
In short:
cd~/ sudo apt-get install gzrt cd ~/overo-oe/sources/ gzrecover expat-2.0.1.tar.gz;mv expat-2.0.1.tar.recovered expat-2.0.1.tar;gzip expat-2.0.1.tar
say yes to the overwrite
md5sum expat-2.0.1.tar.gz; sha256sum expat-2.0.1.tar.gz
note them somewhere
gedit expat-2.0.1.tar.gz.md5
replace with the new MD5 checksum and save
cd ~/overo-oe/org.openembedded.dev/recipes/expat gedit expat_2.0.1.bb
change the MD5 and SHA256 checksums there to reflect the new ones, and save
cd ~/overo-oe/ bitbake omap3-lisa-image