<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.paparazziuav.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Aibara</id>
	<title>PaparazziUAV - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.paparazziuav.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Aibara"/>
	<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/wiki/Special:Contributions/Aibara"/>
	<updated>2026-05-17T07:59:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=Lisa&amp;diff=6974</id>
		<title>Lisa</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Lisa&amp;diff=6974"/>
		<updated>2010-07-21T02:40:17Z</updated>

		<summary type="html">&lt;p&gt;Aibara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lisa ( the Lost Illusions Serendipitous Autopilot) is a new [http://www.st.com/mcu/inchtml-pages-stm32.html STM32] based range of autopilots designed to run Paparazzi.&lt;br /&gt;
&lt;br /&gt;
The first two members of the family are Lisa/L, a design where the STM32 is associated to a gumstix [http://www.gumstix.net/Setup-and-Programming/cat/Overo-Setup-and-Programming/111.html Overo] and Lisa/S, an all-in-one design focusing on space and weight constraints.&lt;br /&gt;
&lt;br /&gt;
=Lisa/L=&lt;br /&gt;
&lt;br /&gt;
== Hardware ==&lt;br /&gt;
&lt;br /&gt;
[[Image:lisa_bd.png|thumb|Block Diagram]]&lt;br /&gt;
[[Image:lisa_l_cad.jpg|thumb|CAD view of the beast]]&lt;br /&gt;
[[Image:lisa_l_pcb.jpg|thumb|First batch of proto PCBs]]&lt;br /&gt;
[[Image:lisa_l_stencil.jpg|thumb| A stencil to help assembly]]&lt;br /&gt;
[[Image:lisa_l_proto1.jpg|thumb|On the scale]]&lt;br /&gt;
[[Image:lisa_l_proto2.jpg|thumb|On the touchpad]]&lt;br /&gt;
[[Image:lisa_l_proto3.jpg|thumb| Upside down]]&lt;br /&gt;
[[Image:lisa_l_proto4.jpg|thumb| Power consumption]]&lt;br /&gt;
[[Image:lisa_l_hex_1.jpg|thumb| You're gonna fly the Hex]]&lt;br /&gt;
[[Image:lisa_l_hex_2.jpg|thumb| Isn't it cute]]&lt;br /&gt;
[[Image:lisa_l_hex_3.jpg|thumb| From the other side]]&lt;br /&gt;
[[Image:lisa_l_hex_4.jpg|thumb| Same vehicle]]&lt;br /&gt;
[[Image:lisa_turntable.jpg|thumb| Calibration]]&lt;br /&gt;
[[Image:lisa_l_hex_5.jpg|thumb|alt=Lisa/L on the hex|[http://www.poinix.org/video/lisa_first_lift.avi Download the video]]]&lt;br /&gt;
[[Image:lisa_asctec.jpg|thumb| Big Lisa in small Asctec]]&lt;br /&gt;
[[Image:getting_closer.jpg|thumb| Almost there]]&lt;br /&gt;
&lt;br /&gt;
Lisa/L is based on the 64 pins STM32F103RE processor featuring 64k of RAM and 512k of FLASH. All the pins are exposed, providing access to the complete set of the STM32 peripherals. &lt;br /&gt;
&lt;br /&gt;
=== Power Supply ===&lt;br /&gt;
&lt;br /&gt;
The design features a pair of two amps switching power supply module, one on 5V for external peripherals ( like modems, servos, USB webcams or wifi sticks) and one on 3V3 for the rest of the avionics. A third linear supply is available for providing clean power to inertial sensors.&lt;br /&gt;
&lt;br /&gt;
The Lisa/L v0.99 and 0.101  (1.0-r1) has an input range of 8V to 18V. Upper limit due to PTH08080WAH switcher, and lower limit is due to LM317MDTXFS linear reg for intermediate voltage for analog components. (source Piotr)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
In brief, the STM32 features 3 USARTS, 2 SPI, 2 I2C, 1 CAN, a plethora of timers, ADCs and a generic DMA able to serve all of them. &lt;br /&gt;
On the board, a number of the communication interfaces are level shifted with user selectable voltage to allow interfacing with all kind of peripherals. &lt;br /&gt;
&lt;br /&gt;
=== Pressure sensors ===&lt;br /&gt;
&lt;br /&gt;
The board is equipped with a pair of pressure sensors, one absolute to measure altitude and one differential to measure airspeed. The sensors are amplified and low passed before being sampled by a pair of 16 bits ADCs.&lt;br /&gt;
&lt;br /&gt;
The absolute pressure sensor is the freescale [http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MPXx6115&amp;amp;fsrch=1 MPXh6115] and the differential one is the [http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MPXx5004&amp;amp;fsrch=1 MPXV5004DP]&lt;br /&gt;
The following plots displays the output of the sensors versus altitude or airspeed&lt;br /&gt;
&lt;br /&gt;
[[Image:absolute_pressure.png|360px]]&lt;br /&gt;
[[Image:differential_pressure.png|360px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FT2232H ===&lt;br /&gt;
&lt;br /&gt;
This chip is heart of the communications with the board while developing. It provides JTAG on the STM32 and SERIAL/USB conversion for the Overo console. It is powered by the USB bus and hence unpowered while in flight.&lt;br /&gt;
&lt;br /&gt;
datasheet: [http://www.ftdichip.com/Documents/DataSheets/DS_FT2232H_V206.pdf URL] &lt;br /&gt;
&lt;br /&gt;
mini module used for dev : [http://www.ftdichip.com/Products/EvaluationKits/FT2232H_MiniModule.htm URL]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Gumstix overo ===&lt;br /&gt;
&lt;br /&gt;
[http://pubs.gumstix.com/boards/COMS/Overo/PF3503-R2410_DWG.pdf] mechanical drawings&lt;br /&gt;
&lt;br /&gt;
The gumstix Overo is a single board computer module featuring a 600Mhz  OMAP35 processor. It communicates with the STM32 through SPI, offering throughput up to 48Mbps and served by DMA on both sides.&lt;br /&gt;
Exposed peripherals comprise two level shifted UARTs and two USB controllers ( one Host and one OTG )&lt;br /&gt;
&lt;br /&gt;
=== CAN ===&lt;br /&gt;
&lt;br /&gt;
There are several passives around the CAN transceiver that are responsable for the bus configuration and termination.&lt;br /&gt;
&lt;br /&gt;
For termination there are three options:&lt;br /&gt;
* Option 1 (Standard Termination):&lt;br /&gt;
 R57: 120 Ohm&lt;br /&gt;
 R59: DNP&lt;br /&gt;
 R58: DNP&lt;br /&gt;
 C42: DNP&lt;br /&gt;
 R60: DNP&lt;br /&gt;
 R61: DNP&lt;br /&gt;
* Option 2 (Split Termination): &lt;br /&gt;
 R57: DNP&lt;br /&gt;
 R59: 60 Ohm&lt;br /&gt;
 R58: 60 Ohm&lt;br /&gt;
 C42: 4.7 nF&lt;br /&gt;
 R60: DNP&lt;br /&gt;
 R61: DNP&lt;br /&gt;
* Option 3 (Biased Split Termination):&lt;br /&gt;
 R57: DNP&lt;br /&gt;
 R59: 60 Ohm&lt;br /&gt;
 R58: 60 Ohm&lt;br /&gt;
 C42: 4.7 nF&lt;br /&gt;
 R60: 4.7k Ohm&lt;br /&gt;
 R61: 4.7k Ohm&lt;br /&gt;
&lt;br /&gt;
For more detailed description refer to [http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&amp;amp;nodeId=1824&amp;amp;appnote=en012057 Microchip Application Note 228]&lt;br /&gt;
&lt;br /&gt;
For the waveform (maximal speed/range) there are also few options:&lt;br /&gt;
&lt;br /&gt;
* High speed mode, 1Mbit maximal speed:&lt;br /&gt;
 R55: 0 Ohm&lt;br /&gt;
 R56: DNP&lt;br /&gt;
&lt;br /&gt;
* Slope control, decreases EMI and decreases the maximal speed but increases theoretical length of wiring:&lt;br /&gt;
 R55: 10k Ohm - 120k Ohm&lt;br /&gt;
 R56: DNP&lt;br /&gt;
&lt;br /&gt;
* Sleep mode, disable the transceiver and make it sleep:&lt;br /&gt;
 R55: DNP&lt;br /&gt;
 R56: 0Ohm&lt;br /&gt;
&lt;br /&gt;
For more detailed description refer to [http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010405 MCP2551 Datasheet]&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
&lt;br /&gt;
Airframe in the svn currently running on lisa/L&lt;br /&gt;
&lt;br /&gt;
 - Poine/booz2_a6 : this is an hexarotor with mikrokopter motor controllers and running booz2 code in the stm32&lt;br /&gt;
 - Poine/booz2_a7 : this is an asctec quadrotor with astec motor controllers and running booz2 code in the stm32&lt;br /&gt;
 - Poine/booz2_a8 : this is a biplan with asctec motor controllers and using stm32 only as io processor - this one is in progress&lt;br /&gt;
 - esden/lisa_asctec : this is an asctec quadrotor with asctec motor controllers and running booz2 code in the stm32 using xtend based rc remote control.&lt;br /&gt;
&lt;br /&gt;
=== STM32 toolchain ===&lt;br /&gt;
&lt;br /&gt;
Install paparazzi-stm32 package available in the ENAC karmic and lucid repository. This toolchains contains gcc, newlib, libstm32, gdb and openocd&lt;br /&gt;
apt-get install paparazzi-stm32&lt;br /&gt;
&lt;br /&gt;
Don't forget the udev rule to get the correct permission for JTAG &lt;br /&gt;
&lt;br /&gt;
in pprz2svn/conf/system/udev/rules/10-paparazzi.rules add :&lt;br /&gt;
&lt;br /&gt;
SUBSYSTEM==&amp;quot;usb&amp;quot;, ATTRS{idVendor}==&amp;quot;0403&amp;quot;, ATTRS{idProduct}==&amp;quot;6010&amp;quot;,&lt;br /&gt;
MODE=&amp;quot;0666&amp;quot;, GROUP=&amp;quot;plugdev&amp;quot;&lt;br /&gt;
&lt;br /&gt;
and folow Setting access rights for USB download on this page: http://paparazzi.enac.fr/wiki/Installation&lt;br /&gt;
&lt;br /&gt;
Bug in package paparazzi-stm32, will be fixed in the next version, change ft2232_device_desc to &amp;quot;Lisa/L&amp;quot; in /opt/paparazzi/stm32/share/openocd/scripts/interface/openocd-lisa-jtag.cfg&lt;br /&gt;
&lt;br /&gt;
replace:&lt;br /&gt;
&lt;br /&gt;
ft2232_device_desc &amp;quot;Dual RS232 A&amp;quot;&lt;br /&gt;
&lt;br /&gt;
by&lt;br /&gt;
&lt;br /&gt;
ft2232_device_desc &amp;quot;Lisa/L&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== STM32 programs ===&lt;br /&gt;
&lt;br /&gt;
Booz code now runs in the stm32. booz2_a6.xml is an airframe for an hexarotor using mikrokopter controller and booz2_a7 is an airframe for an asctec using asctec controllers.&lt;br /&gt;
&lt;br /&gt;
 make AIRCRAFT=BOOZ2_A7 ap.upload&lt;br /&gt;
&lt;br /&gt;
will compile and upload the booz autopilot on the stm32 through jtag&lt;br /&gt;
&lt;br /&gt;
There are a number of test programs ( see targets in conf/autopilot/lisa_test_progs.makefile )&lt;br /&gt;
&lt;br /&gt;
 make AIRCRAFT=BOOZ2_A7 test_led.upload&lt;br /&gt;
&lt;br /&gt;
will compile and upload a simple led blinking program in the stm32&lt;br /&gt;
&lt;br /&gt;
=== Open Embedded ===&lt;br /&gt;
&lt;br /&gt;
Open Embedded is the linux distribution used on the overo.&lt;br /&gt;
[[LisaOveroImage]] summarizes the instructions for building the development tree.&lt;br /&gt;
&lt;br /&gt;
obsolete, left for reference : [[Setting_up_a_build_environment_for_overo-oe]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== OMAP programs ===&lt;br /&gt;
&lt;br /&gt;
There are a couple of demo programs ( at the top of conf/autopilot/lisa_test_progs.makefile ) &lt;br /&gt;
&lt;br /&gt;
overo_test_periodic : shows how to use the high precision timers&lt;br /&gt;
&lt;br /&gt;
overo_test_telemetry : shows how to send telemetry through UDP&lt;br /&gt;
&lt;br /&gt;
overo_test_link_stm32 : shows how to exchange data through SPI with the stm32&lt;br /&gt;
&lt;br /&gt;
 make AICRAFT=BOOZ2_A7 overo_test_telemetry.upload&lt;br /&gt;
&lt;br /&gt;
will compile and copy the demo program to the gumstix ( using scp ) . You need to configure the variable HOST in the airframe file for the hostname of your overo, and you might want to have ssh keys to avoid typing your password ( man ssh-copy-id ) &lt;br /&gt;
&lt;br /&gt;
=== BLAAAA ===&lt;br /&gt;
&lt;br /&gt;
Running booz on stm32: see http://paparazzi.enac.fr/wiki/Lisa_Asctec_Bringup&lt;br /&gt;
&lt;br /&gt;
testing spi link between overo and stm32:&lt;br /&gt;
&lt;br /&gt;
   make AIRCRAFT=BETH clean_ac stm_test_spi_link.upload&lt;br /&gt;
   make AIRCRAFT=BETH clean_ac overo_test_spi_link.upload&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TODO ===&lt;br /&gt;
  - upload schematics and bloc diagram&lt;br /&gt;
  - make stm32 able to interrupt overo ( spi link ) to implement data_ready functionality, possibly use that as source o timing for overo program&lt;br /&gt;
  - add a checksum to the spi link between overo and stm32&lt;br /&gt;
  - make asctec v2 code able to send settings ( address, direction ) to controllers&lt;br /&gt;
  - move sign of IMU calibration coef to a the board/hardware header&lt;br /&gt;
  - write ppm decoder for the stm32&lt;br /&gt;
  - improve spektrum protocol decoder to automatically handle the different models and modes of transmitters&lt;br /&gt;
&lt;br /&gt;
  HW: &lt;br /&gt;
  - add termination on adg3308 ( http://www.dizziness-and-balance.com/practice/images/oculomotor/saccades/cerebellar%20(bg)%20saccades.jpg  http://www.nu9n.com/images/overshoot.gif http://www.eas.slu.edu/Earthquake_Center/NM/INSTRUMENT/Q330/Q330.png ) - maybe not, our PCB tracks are short enough not to need them &lt;br /&gt;
&lt;br /&gt;
= Lisa/S =&lt;br /&gt;
&lt;br /&gt;
More on this new project soon, for now just a CAD rendering to wet your appetite.&lt;br /&gt;
[[Image:lisa_s_cad.png|360px]]&lt;/div&gt;</summary>
		<author><name>Aibara</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=LisaOveroImage&amp;diff=6896</id>
		<title>LisaOveroImage</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=LisaOveroImage&amp;diff=6896"/>
		<updated>2010-07-06T22:41:25Z</updated>

		<summary type="html">&lt;p&gt;Aibara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Building an Overo image for Lisa with Open Embedded==&lt;br /&gt;
&lt;br /&gt;
The goal is to use openmbedded to build an image for the overo with the bits needed for Lisa. Currently this includes&lt;br /&gt;
# libevent&lt;br /&gt;
# linux kernel 2.6.33.5-rt23 (maintained at git://gitorious.org/linux-omap3/linux-omap3.git)&lt;br /&gt;
## based on gumstix-oe from (git://www.sakoman.com/git/linux-omap-2.6.git)&lt;br /&gt;
## antoine's patch for spi device node on overo&lt;br /&gt;
## 2.6.33.5-rt23 preempt-rt patch&lt;br /&gt;
&lt;br /&gt;
* Make sure you have bitbake and build-essential installed:&lt;br /&gt;
 apt-get install bitbake build-essential&lt;br /&gt;
&lt;br /&gt;
* Make an overo-oe directory in your home directory, cd into it:&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/overo-oe&lt;br /&gt;
 cd ~/overo-oe&lt;br /&gt;
&lt;br /&gt;
* Clone Allen's openmebedded tree:&lt;br /&gt;
 git clone git@git://gitorious.org:linux-omap3/openembedded.git&lt;br /&gt;
&lt;br /&gt;
* Copy build profile into ~/overo-oe, source it:&lt;br /&gt;
&lt;br /&gt;
 cp org.openembedded.org/contrib/jei/build .&lt;br /&gt;
 source ~/overo-oe/build/profile&lt;br /&gt;
&lt;br /&gt;
* Use bitbake to build the image:&lt;br /&gt;
 bitbake omap3-lisa-image&lt;/div&gt;</summary>
		<author><name>Aibara</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=LisaOveroImage&amp;diff=6895</id>
		<title>LisaOveroImage</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=LisaOveroImage&amp;diff=6895"/>
		<updated>2010-07-06T22:39:51Z</updated>

		<summary type="html">&lt;p&gt;Aibara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Building an Overo image for Lisa with Open Embedded==&lt;br /&gt;
&lt;br /&gt;
The goal is to use openmbedded to build an image for the overo with the bits needed for Lisa. Currently this includes&lt;br /&gt;
# libevent&lt;br /&gt;
# linux kernel 2.6.33.5-rt23 (maintained at git://gitorious.org/linux-omap3/linux-omap3.git)&lt;br /&gt;
## based on gumstix-oe from (git://www.sakoman.com/git/linux-omap-2.6.git)&lt;br /&gt;
## antoine's patch for spi device node on overo&lt;br /&gt;
## 2.6.33.5-rt23 preempt-rt patch&lt;br /&gt;
&lt;br /&gt;
* Make sure you have bitbake and build-essential installed.&lt;br /&gt;
 apt-get install bitbake build-essential&lt;br /&gt;
&lt;br /&gt;
* Make an overo-oe directory in your home directory, cd into it&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/overo-oe&lt;br /&gt;
 cd ~/overo-oe&lt;br /&gt;
&lt;br /&gt;
* Clone Allen's openmebedded tree&lt;br /&gt;
 git clone git@git://gitorious.org:linux-omap3/openembedded.git&lt;br /&gt;
&lt;br /&gt;
* Copy build profile into ~/overo-oe:&lt;br /&gt;
&lt;br /&gt;
 cp org.openembedded.org/contrib/jei/build .&lt;br /&gt;
 source ~/overo-oe/build/profile&lt;br /&gt;
&lt;br /&gt;
* Use bitbake to build the image&lt;br /&gt;
 bitbake omap3-lisa-image&lt;/div&gt;</summary>
		<author><name>Aibara</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=LisaOveroImage&amp;diff=6894</id>
		<title>LisaOveroImage</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=LisaOveroImage&amp;diff=6894"/>
		<updated>2010-07-06T22:25:36Z</updated>

		<summary type="html">&lt;p&gt;Aibara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Building an Overo image for Lisa with Open Embedded==&lt;br /&gt;
&lt;br /&gt;
* Make sure you have bitbake and build-essential installed.&lt;br /&gt;
 apt-get install bitbake build-essential&lt;br /&gt;
&lt;br /&gt;
* Make an overo-oe directory in your home directory, cd into it&lt;br /&gt;
&lt;br /&gt;
 mkdir ~/overo-oe&lt;br /&gt;
 cd ~/overo-oe&lt;br /&gt;
&lt;br /&gt;
* Clone Allen's openmebedded tree&lt;br /&gt;
 git clone git@git://gitorious.org:linux-omap3/openembedded.git&lt;br /&gt;
&lt;br /&gt;
* Copy build profile into ~/overo-oe:&lt;br /&gt;
&lt;br /&gt;
 cp org.openembedded.org/contrib/jei/build .&lt;br /&gt;
 source ~/overo-oe/build/profile&lt;br /&gt;
&lt;br /&gt;
* Use bitbake to build the image&lt;br /&gt;
 bitbake omap3-lisa-image&lt;/div&gt;</summary>
		<author><name>Aibara</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=Setting_up_a_build_environment_for_overo-oe&amp;diff=6813</id>
		<title>Setting up a build environment for overo-oe</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Setting_up_a_build_environment_for_overo-oe&amp;diff=6813"/>
		<updated>2010-06-24T00:46:26Z</updated>

		<summary type="html">&lt;p&gt;Aibara: /* patching the kernel for spidev */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;follow the instructions on his page:&lt;br /&gt;
&lt;br /&gt;
http://www.gumstix.net/Documentation/view/Overo-Setup-and-Programming/Setting-up-a-build-environment/109.html&lt;br /&gt;
&lt;br /&gt;
(you need a lot of space to reduce the amount of space needed insert &lt;br /&gt;
&lt;br /&gt;
INHERIT += &amp;quot;rm_work&amp;quot; &lt;br /&gt;
&lt;br /&gt;
to overo-oe/build/conf/local.conf)&lt;br /&gt;
&lt;br /&gt;
when you are at the command:&lt;br /&gt;
&lt;br /&gt;
$ bitbake omap3-console-image  (when you are in a virtual box environment it will take long 12 hours at least)&lt;br /&gt;
&lt;br /&gt;
and build it on Ubuntu 10.04 LTS - the Lucid Lynx - release you will get this error:&lt;br /&gt;
&lt;br /&gt;
ERROR:&lt;br /&gt;
....expat_2.0.1.bb do_unpack failed &lt;br /&gt;
&lt;br /&gt;
2 solution to this error:&lt;br /&gt;
&lt;br /&gt;
http://old.nabble.com/Development-Machine-Build-Environment-Setup---Help!-td28539560.html&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
http://www.facebook.com/note.php?note_id=398968379361&lt;br /&gt;
&lt;br /&gt;
follow instructions of ERROR#1&lt;br /&gt;
&lt;br /&gt;
== patching the kernel for spidev ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can follow the [http://www.gumstix.net/Setup-and-Programming/view/Overo-Setup-and-Programming/Setting-up-a-build-environment/111.html instructions] on gumstix's website to build a complete cross development environment. Paparazzi's Makefile will default to look for it in /overo-oe&lt;br /&gt;
&lt;br /&gt;
Work is in progress to offer a pre-compiled cross compilation toolchain.&lt;br /&gt;
&lt;br /&gt;
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 )&lt;br /&gt;
&lt;br /&gt;
patching the kernel for spidev -- look where kernel comes from in&lt;br /&gt;
   /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3_2.6.32.bb&lt;br /&gt;
&lt;br /&gt;
        git clone git://www.sakoman.com/git/linux-omap-2.6.git&lt;br /&gt;
&lt;br /&gt;
        git checkout d434b954906c4f3e356d64d6b49675c601456f51&lt;br /&gt;
&lt;br /&gt;
        place the following patch into /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3-2.6.32/overo/add-spidev-for-mcspi1.patch&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c&lt;br /&gt;
   index 165b6bd..fbe3be4 100644&lt;br /&gt;
   --- a/arch/arm/mach-omap2/board-overo.c&lt;br /&gt;
   +++ b/arch/arm/mach-omap2/board-overo.c&lt;br /&gt;
   @@ -625,6 +625,14 @@ static struct spi_board_info overo_spi_board_info[] __initdata = {&lt;br /&gt;
                    .mode                        = SPI_MODE_3,&lt;br /&gt;
            },&lt;br /&gt;
    #endif&lt;br /&gt;
   +     {&lt;br /&gt;
   +               .modalias       = &amp;quot;spidev&amp;quot;,&lt;br /&gt;
   +               .max_speed_hz   = 48000000, //48 Mbps&lt;br /&gt;
   +               .bus_num        = 1,&lt;br /&gt;
   +               .chip_select    = 1,&lt;br /&gt;
   +               .mode           = SPI_MODE_1,&lt;br /&gt;
   +               //               .controller_data        = &amp;amp;spidev_mcspi_config,&lt;br /&gt;
   +      },&lt;br /&gt;
    };&lt;br /&gt;
 &lt;br /&gt;
    static int __init overo_spi_init(void)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        remove ads and lgphillips from /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3/overo/defconfig&lt;br /&gt;
        really in  /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3-2.6.32/overo/&lt;br /&gt;
        edit /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3_2.6.32.bb &lt;br /&gt;
         SRC_URI_append = &amp;quot; \&lt;br /&gt;
           file://${BOOT_SPLASH} \&lt;br /&gt;
           file://add-spidev-for-mcspi1.patch;patch=1 \&lt;br /&gt;
           &amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
       bitbake -c clean linux-omap3&lt;br /&gt;
       bitbake -c configure linux-omap3&lt;br /&gt;
       bitbake -c rebuild linux-omap3&lt;br /&gt;
&lt;br /&gt;
       the defconfig I changed is in &lt;br /&gt;
       /overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.32-r51/&lt;/div&gt;</summary>
		<author><name>Aibara</name></author>
	</entry>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=Setting_up_a_build_environment_for_overo-oe&amp;diff=6812</id>
		<title>Setting up a build environment for overo-oe</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Setting_up_a_build_environment_for_overo-oe&amp;diff=6812"/>
		<updated>2010-06-24T00:42:00Z</updated>

		<summary type="html">&lt;p&gt;Aibara: /* patching the kernel for spidev */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;follow the instructions on his page:&lt;br /&gt;
&lt;br /&gt;
http://www.gumstix.net/Documentation/view/Overo-Setup-and-Programming/Setting-up-a-build-environment/109.html&lt;br /&gt;
&lt;br /&gt;
(you need a lot of space to reduce the amount of space needed insert &lt;br /&gt;
&lt;br /&gt;
INHERIT += &amp;quot;rm_work&amp;quot; &lt;br /&gt;
&lt;br /&gt;
to overo-oe/build/conf/local.conf)&lt;br /&gt;
&lt;br /&gt;
when you are at the command:&lt;br /&gt;
&lt;br /&gt;
$ bitbake omap3-console-image  (when you are in a virtual box environment it will take long 12 hours at least)&lt;br /&gt;
&lt;br /&gt;
and build it on Ubuntu 10.04 LTS - the Lucid Lynx - release you will get this error:&lt;br /&gt;
&lt;br /&gt;
ERROR:&lt;br /&gt;
....expat_2.0.1.bb do_unpack failed &lt;br /&gt;
&lt;br /&gt;
2 solution to this error:&lt;br /&gt;
&lt;br /&gt;
http://old.nabble.com/Development-Machine-Build-Environment-Setup---Help!-td28539560.html&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
http://www.facebook.com/note.php?note_id=398968379361&lt;br /&gt;
&lt;br /&gt;
follow instructions of ERROR#1&lt;br /&gt;
&lt;br /&gt;
== patching the kernel for spidev ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can follow the [http://www.gumstix.net/Setup-and-Programming/view/Overo-Setup-and-Programming/Setting-up-a-build-environment/111.html instructions] on gumstix's website to build a complete cross development environment. Paparazzi's Makefile will default to look for it in /overo-oe&lt;br /&gt;
&lt;br /&gt;
Work is in progress to offer a pre-compiled cross compilation toolchain.&lt;br /&gt;
&lt;br /&gt;
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 )&lt;br /&gt;
&lt;br /&gt;
  -patching the kernel for spidev&lt;br /&gt;
    look where kernel comes from in /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3_2.6.32.bb&lt;br /&gt;
&lt;br /&gt;
        git clone git://www.sakoman.com/git/linux-omap-2.6.git&lt;br /&gt;
&lt;br /&gt;
        git checkout d434b954906c4f3e356d64d6b49675c601456f51&lt;br /&gt;
&lt;br /&gt;
place the following patch into /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3-2.6.32/overo/add-spidev-for-mcspi1.patch&lt;br /&gt;
        &lt;br /&gt;
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c&lt;br /&gt;
index 165b6bd..fbe3be4 100644&lt;br /&gt;
--- a/arch/arm/mach-omap2/board-overo.c&lt;br /&gt;
+++ b/arch/arm/mach-omap2/board-overo.c&lt;br /&gt;
@@ -625,6 +625,14 @@ static struct spi_board_info overo_spi_board_info[] __initdata = {&lt;br /&gt;
                 .mode                        = SPI_MODE_3,&lt;br /&gt;
         },&lt;br /&gt;
 #endif&lt;br /&gt;
+     {&lt;br /&gt;
+               .modalias       = &amp;quot;spidev&amp;quot;,&lt;br /&gt;
+               .max_speed_hz   = 48000000, //48 Mbps&lt;br /&gt;
+               .bus_num        = 1,&lt;br /&gt;
+               .chip_select    = 1,&lt;br /&gt;
+               .mode           = SPI_MODE_1,&lt;br /&gt;
+               //               .controller_data        = &amp;amp;spidev_mcspi_config,&lt;br /&gt;
+      },&lt;br /&gt;
 };&lt;br /&gt;
 &lt;br /&gt;
 static int __init overo_spi_init(void)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        remove ads and lgphillips from /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3/overo/defconfig&lt;br /&gt;
        really in  /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3-2.6.32/overo/&lt;br /&gt;
        edit /overo-oe/org.openembedded.dev/recipes/linux/linux-omap3_2.6.32.bb &lt;br /&gt;
         SRC_URI_append = &amp;quot; \&lt;br /&gt;
           file://${BOOT_SPLASH} \&lt;br /&gt;
           file://add-spidev-for-mcspi1.patch;patch=1 \&lt;br /&gt;
           &amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
       bitbake -c clean linux-omap3&lt;br /&gt;
       bitbake -c configure linux-omap3&lt;br /&gt;
       bitbake -c rebuild linux-omap3&lt;br /&gt;
&lt;br /&gt;
       the defconfig I changed is in &lt;br /&gt;
       /overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.32-r51/&lt;/div&gt;</summary>
		<author><name>Aibara</name></author>
	</entry>
</feed>