Difference between revisions of "LisaOveroImage"

From PaparazziUAV
Jump to navigation Jump to search
(Undo revision 13837 by Tonyguards (Talk) spam bot)
 
(10 intermediate revisions by 6 users not shown)
Line 11: Line 11:
  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
* Ubuntu 10 will also get errors during bitbake unless the following is installed
  sudo apt-get install git-core help2man,diffstat,texi2html,texinfo,chrpath
  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
* 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!!:


  mkdir ~/overo-oe
  mkdir ~/overo-oe
Line 44: Line 53:


follow instructions of ERROR#1
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

  1. libevent
  2. linux kernel 2.6.33.5-rt23 (maintained at git://gitorious.org/linux-omap3/linux-omap3.git)
    1. based on gumstix-oe from (git://www.sakoman.com/git/linux-omap-2.6.git)
    2. antoine's patch for spi device node on overo
    3. 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