Setting up a build environment for overo-oe

From PaparazziUAV
Revision as of 05:06, 19 June 2010 by Microuav (talk | contribs)
Jump to navigation Jump to search

follow the instructions on his page:

http://www.gumstix.net/Documentation/view/Overo-Setup-and-Programming/Setting-up-a-build-environment/109.html

(you need a lot of space to reduce the amount of space needed insert

INHERIT += "rm_work"

to overo-oe/build/conf/local.conf)

when you are at the command:

$ bitbake omap3-console-image (when you are in a virtual box environment it will take long 12 hours at least)

and build it on Ubuntu 10.04 LTS - the Lucid Lynx - release you will get this error:

ERROR: ....expat_2.0.1.bb do_unpack failed

2 solution to this error:

http://old.nabble.com/Development-Machine-Build-Environment-Setup---Help!-td28539560.html

or

http://www.facebook.com/note.php?note_id=398968379361

follow instructions of ERROR#1

patching the kernel for spidev

You can follow the instructions on gumstix's website to build a complete cross development environment. Paparazzi's Makefile will default to look for it in /overo-oe

Work is in progress to offer a pre-compiled cross compilation toolchain.

For the moment compiling omap-console-image will generate the cross compiler and libs you need. You also need to compile libevent which is not compiled by omap-console-image ( bitbake build libevent )

 -patching the kernel for spidev
   look where kernel comes from in /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3_2.6.32.bb
       git clone git://www.sakoman.com/git/linux-omap-2.6.git
       git checkout d434b954906c4f3e356d64d6b49675c601456f51
       git diff >  /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3-2.6.32/overo/add-spidev-for-mcspi1.patch
       remove ads and lgphillips from /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3/overo/defconfig
       really in  /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3-2.6.32/overo/
       edit /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3_2.6.32.bb 
        SRC_URI_append = " \
          file://${BOOT_SPLASH} \
          file://add-spidev-for-mcspi1.patch;patch=1 \
          "


      bitbake -c clean linux-omap3
      bitbake -c configure linux-omap3
      bitbake -c rebuild linux-omap3
      the defconfig I changed is in 
      /overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.32-r51/