Setting up a build environment for overo-oe

From PaparazziUAV
Jump to: navigation, search

follow the instructions on his page:

(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: do_unpack failed

solution to this error:

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 libevent )

patching the kernel for spidev -- look where kernel comes from in

       git clone git://
       git checkout d434b954906c4f3e356d64d6b49675c601456f51
       place the following patch into /overo-oe/

  diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c
  index 165b6bd..fbe3be4 100644
  --- a/arch/arm/mach-omap2/board-overo.c
  +++ b/arch/arm/mach-omap2/board-overo.c
  @@ -625,6 +625,14 @@ static struct spi_board_info overo_spi_board_info[] __initdata = {
                   .mode                        = SPI_MODE_3,
  +     {
  +               .modalias       = "spidev",
  +               .max_speed_hz   = 48000000, //48 Mbps
  +               .bus_num        = 1,
  +               .chip_select    = 1,
  +               .mode           = SPI_MODE_1,
  +               //               .controller_data        = &spidev_mcspi_config,
  +      },

   static int __init overo_spi_init(void)

       remove ads and lgphillips from /overo-oe/
       really in  /overo-oe/
       edit /overo-oe/ 
        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