Difference between revisions of "LisaOveroImage"
(Undo revision 13837 by Tonyguards (Talk) spam bot) |
|||
(21 intermediate revisions by 8 users not shown) | |||
Line 8: | Line 8: | ||
## 2.6.33.5-rt23 preempt-rt patch | ## 2.6.33.5-rt23 preempt-rt patch | ||
* Make sure you have bitbake and build-essential installed | * Make sure you have bitbake and build-essential installed: | ||
apt-get install bitbake build-essential | 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. | |||
* Make an overo-oe directory in your home directory, cd into it | 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 | mkdir ~/overo-oe | ||
cd ~/overo-oe | cd ~/overo-oe | ||
* Clone Allen's openmebedded tree | * Clone Allen's openmebedded tree: | ||
git clone | 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 [http://gitorious.org/linux-omap3/openembedded Here]) | |||
cp org.openembedded. | * Copy build profile into ~/overo-oe, source it: | ||
cp -r org.openembedded.dev/contrib/jei/build . | |||
source ~/overo-oe/build/profile | source ~/overo-oe/build/profile | ||
* Use bitbake to build the image | * Use bitbake to build the image: | ||
bitbake omap3-lisa-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 | |||
ERROR: | |||
'.../overo-oe/org.openembedded.dev/recipes/libsamplerate/libsamplerate0_0.1.7.bb' failed | |||
solution: | |||
http://old.nabble.com/Building-omap3-desktop-image-td30020826.html | |||
In short: | |||
Delete the '.../overo-oe/sources/libsamplerate-0.1.7.tar.gz' file | |||
bitbake omap3-lisa-image | |||
You need to modify the checksums in the recipe | |||
.../overo-oe/org.openembedded.dev/recipes/libsamplerate/libsamplerate0_0.1.7.bb | |||
to | |||
SRC_URI[md5sum] = "6731a81cb0c622c483b28c0d7f90867d" | |||
SRC_URI[sha256sum] = "78ed5d9ff1bf162c4a078f6a3e7432a537dd2f22dc58872b081fb01156027fcc" | |||
from | |||
'#SRC_URI[md5sum] = "ad093e60ec44f0a60de8e29983ddbc0f" | |||
'#SRC_URI[sha256sum] = "e0a646224a0323ac63f56ef009b2d7fee11452a7b8af139b19ae71d2890dbc9c" | |||
Then run | |||
bitbake -c clean libsamplerate0;bitbake libsamplerate0 | |||
[[Category:Software]] [[Category:Developer_Documentation]] |
Latest revision as of 03:02, 11 December 2012
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
ERROR: '.../overo-oe/org.openembedded.dev/recipes/libsamplerate/libsamplerate0_0.1.7.bb' failed
solution: http://old.nabble.com/Building-omap3-desktop-image-td30020826.html
In short:
Delete the '.../overo-oe/sources/libsamplerate-0.1.7.tar.gz' file
bitbake omap3-lisa-image
You need to modify the checksums in the recipe
.../overo-oe/org.openembedded.dev/recipes/libsamplerate/libsamplerate0_0.1.7.bb
to
SRC_URI[md5sum] = "6731a81cb0c622c483b28c0d7f90867d"
SRC_URI[sha256sum] = "78ed5d9ff1bf162c4a078f6a3e7432a537dd2f22dc58872b081fb01156027fcc"
from
'#SRC_URI[md5sum] = "ad093e60ec44f0a60de8e29983ddbc0f"
'#SRC_URI[sha256sum] = "e0a646224a0323ac63f56ef009b2d7fee11452a7b8af139b19ae71d2890dbc9c"
Then run
bitbake -c clean libsamplerate0;bitbake libsamplerate0