﻿
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:coop="http://www.google.com/coop/namespace"
	>

<channel>
	<title>www.electronics.diycinema.co.uk</title>
	<atom:link href="http://www.electronics.diycinema.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.electronics.diycinema.co.uk</link>
	<description>Mini2440 / embedded related ramblings</description>
	<lastBuildDate>Tue, 17 Jan 2012 09:22:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>nRF24L01+ wireless transceiver on the mini2440!</title>
		<link>http://www.electronics.diycinema.co.uk/embedded/mini2440/nrf24l01-wireless-transceiver-on-the-mini2440/</link>
		<comments>http://www.electronics.diycinema.co.uk/embedded/mini2440/nrf24l01-wireless-transceiver-on-the-mini2440/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 19:58:31 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[mini2440]]></category>

		<guid isPermaLink="false">http://www.electronics.diycinema.co.uk/?p=360</guid>
		<description><![CDATA[Over the festive period Will and I ported Neil MacMillan&#8217;s nRF24l01 driver for the Atmel AT90 to the mini2440. Neil has an excellent description of the radio and his driver on his website. The exact series of events are hazy, but they went something like this: 1) Configure SPI and enable a pullup for the]]></description>
			<content:encoded><![CDATA[<p>Over the festive period Will and I ported Neil MacMillan&#8217;s nRF24l01 driver for the Atmel AT90 to the mini2440. Neil has an excellent description of the radio and his driver on his <a rel="nofollow" href="http://nrqm.ca/nrf24l01/firmware/" title="website" >website</a>. The exact series of events are hazy, but they went something like this:</p>
<p>1) Configure SPI and enable a pullup for the IRQ pin in the mini2440 kernel.</p>
<p>2) Modify the spidev module to expose the IRQ using the <a rel="nofollow" href="http://www.kernel.org/doc/htmldocs/uio-howto.html" >userspace I/O system</a>.</p>
<p>3) Write new SPI functions to interface between the radio and Neil&#8217;s driver.</p>
<p>4) Write a threaded interrupt handler to deal with the IRQ from the radio.</p>
<p>6) Port the driver to an ATmega16 development board and configure this as a receiver for testing.</p>
<p>5) Write a user space program to configure the radio as a transmitter and transmit a test message to the ATmega16 dev board.</p>
<p>We used the following development environment:</p>
<p style="text-align: center;"><a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2012/01/SAM_0288.jpeg" ><img class="aligncenter size-full wp-image-363" title="Development enviroment" src="http://www.electronics.diycinema.co.uk/wp-content/uploads/2012/01/SAM_0288.jpeg" alt="" width="560" height="372" /></a></p>
<p>..and here are the modules on the dev boards:</p>
<p style="text-align: center;"><a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2012/01/SAM_0443.jpeg" ><img class="aligncenter size-full wp-image-364" title="nRF24L01+" src="http://www.electronics.diycinema.co.uk/wp-content/uploads/2012/01/SAM_0443.jpeg" alt="" width="560" height="396" /></a></p>
<p>The code for all of this (alpha at best) is available here:</p>
<p><a rel="nofollow" href="https://github.com/dougszumski/nRF24L01" >https://github.com/dougszumski/nRF24L01</a></p>
<p>The next stage is to improve the speed of the driver. We currently estimate a maximum bandwidth of ~10B/s with jiffies set to 1000 which is a fraction of the true potential. One of the ideas so far is to move the SPI routines, the chip enable toggling and the interrupt handling back into the kernel, and then interface with something like a netlink socket. If anyone has any helpful advice we&#8217;d be pleased to hear from you.</p>
<p>More details will be posted on our forthcoming website which is TBA.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electronics.diycinema.co.uk/embedded/mini2440/nrf24l01-wireless-transceiver-on-the-mini2440/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
			<coop:keyword><![CDATA[mini2440]]></coop:keyword>
	</item>
		<item>
		<title>Building Angstrom for the mini2440 with Fedora 15</title>
		<link>http://www.electronics.diycinema.co.uk/embedded/mini2440/building-angstrom-with-fedora-15/</link>
		<comments>http://www.electronics.diycinema.co.uk/embedded/mini2440/building-angstrom-with-fedora-15/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 19:50:03 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.electronics.diycinema.co.uk/?p=312</guid>
		<description><![CDATA[Here&#8217;s a quick update for anyone struggling with building Angstrom for the mini2440 on Fedora 15 (probably also relevant for F14). If you&#8217;re using BusError&#8217;s original repo then follow the OE instructions as normal, then you can use this guide if you want. As mentioned you&#8217;ll need to downgrade patch. I also had to downgrade]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick update for anyone struggling with building Angstrom for the mini2440 on Fedora 15 (probably also relevant for F14).</p>
<p>If you&#8217;re using <a rel="nofollow" href="http://repo.or.cz/w/linux-2.6/mini2440.git" >BusError&#8217;s</a> original repo then follow the OE <a rel="nofollow" href="http://www.openembedded.org/index.php/OEandYourDistro#Fedora_13_.2C_14_and_15" >instructions</a> as normal, then you can use this <a href="http://www.electronics.diycinema.co.uk/embedded/mini2440/bitbaking-the-kernel-angstrom-and-qt4-embedded-all-at-once/" >guide</a> if you want. As mentioned you&#8217;ll need to downgrade patch. I also had to downgrade make due to some incompatibility.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">yum</span> downgrade <span style="color: #c20cb9; font-weight: bold;">patch</span> <span style="color: #660033;">--releasever</span>=<span style="color: #000000;">12</span><br />
<br />
<span style="color: #c20cb9; font-weight: bold;">yum</span> downgrade <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #660033;">--releasever</span>=<span style="color: #000000;">13</span></div></div>
<p>At first i had some error about the GPG key so i downloaded them for F13 and F12 from <a rel="nofollow" href="https://fedoraproject.org/keys" >here</a>. You can install them like this, for example:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rpm <span style="color: #660033;">--import</span> E8E40FDE.txt</div></div>
<p>Then, you&#8217;re good to bake.</p>
<p>If you want something bleeding edge you&#8217;ll need to get your hands dirty, OE has changed a lot recently!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electronics.diycinema.co.uk/embedded/mini2440/building-angstrom-with-fedora-15/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
			<coop:keyword><![CDATA[Uncategorized]]></coop:keyword>
	</item>
		<item>
		<title>CAT3626 RGB LED Driver + Qt Embedded 4.6 on the Mini2440</title>
		<link>http://www.electronics.diycinema.co.uk/embedded/mini2440/cat3626-rgb-led-driver-qt-embedded-4-6-on-the-mini2440/</link>
		<comments>http://www.electronics.diycinema.co.uk/embedded/mini2440/cat3626-rgb-led-driver-qt-embedded-4-6-on-the-mini2440/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 23:01:11 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mini2440]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://www.electronics.diycinema.co.uk/?p=234</guid>
		<description><![CDATA[The CAT3626 is a nice little I2C device from ON Semiconductor. It comes in a 14 pin TQFN package which is probably the most difficult thing i&#8217;ve ever soldered! Each pad is separated from it&#8217;s neighbour by about 100 micrometers! To make matters even more difficult there&#8217;s a ground pad right in the middle for]]></description>
			<content:encoded><![CDATA[<p>The CAT3626 is a nice little I2C device from ON Semiconductor. It comes in a 14 pin TQFN package which is probably the most difficult thing i&#8217;ve ever soldered! Each pad is separated from it&#8217;s neighbour by about 100 micrometers! To make matters even more difficult there&#8217;s a ground pad right in the middle for sinking heat away. Really you should get some sort of breakout board or reflow it but that would be boring! Here&#8217;s a picture of the device before soldering:</p>
<p style="text-align: center;"><a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/03/DSCF1299.jpg" ><img class="aligncenter size-full wp-image-235" title="DSCF1299" src="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/03/DSCF1299.jpg" alt="" width="640" height="481" /></a></p>
<p>&#8230;and here&#8217;s the finished product! The LED is 10mm diffuse with a common anode and a maximum current rating of 20mA per channel.  As soon as i&#8217;d soldered the wires to the CAT3626 i glued it to the board with epoxy, threaded the wires through the holes and then glued those down with more epoxy. After that i realised i&#8217;d forgotten where pin 1 had gone so i had to scrape the glue off the top of the chip!</p>
<p style="text-align: center;"><a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/03/DSCF1295.jpg" ><img class="aligncenter size-full wp-image-237" title="DSCF1295" src="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/03/DSCF1295.jpg" alt="" width="640" height="482" /></a></p>
<p style="text-align: center;"><a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/03/DSCF1300.jpg" ><img class="aligncenter size-full wp-image-238" title="DSCF1300" src="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/03/DSCF1300.jpg" alt="" width="640" height="479" /></a></p>
<p style="text-align: left;">The wire coming through the hole in the middle of this picture is soldered to the CAT3626 and acts as a crude heat sink. In practice it seems to work well enough although i probably should have used copper. I pulled the ceramics from an old projector i had lying around. Not the neatest job but it works fine!</p>
<p style="text-align: left;">After I&#8217;d built that i tested it quickly using I2C tools and then wrote a kernel driver.  The CAT3626 allows a maximum of 32mA per channel regulated in steps of 0.5mA. Unfortunately because my LED can take a maximum of 20mA per channel i can only generate ~64,000 colours. To make matters worse the light intensity is not in general a linear function of the input current so the achievable fade sequences are not as nice as those done with PWM but they still look pretty good. Here&#8217;s a video!</p>
<p style="text-align: center;">[There is a video that cannot be displayed in this feed. <a href="http://www.electronics.diycinema.co.uk/embedded/mini2440/cat3626-rgb-led-driver-qt-embedded-4-6-on-the-mini2440/" >Visit the blog entry to see the video.]</a></p>
<p style="text-align: left;">
<p style="text-align: left;">
]]></content:encoded>
			<wfw:commentRss>http://www.electronics.diycinema.co.uk/embedded/mini2440/cat3626-rgb-led-driver-qt-embedded-4-6-on-the-mini2440/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
			<coop:keyword><![CDATA[Uncategorized]]></coop:keyword>
		<coop:keyword><![CDATA[mini2440]]></coop:keyword>
		<coop:keyword><![CDATA[Qt]]></coop:keyword>
	</item>
		<item>
		<title>Chameleon 135 for the Mini2440</title>
		<link>http://www.electronics.diycinema.co.uk/embedded/mini2440/chameleon-135-for-the-mini2440/</link>
		<comments>http://www.electronics.diycinema.co.uk/embedded/mini2440/chameleon-135-for-the-mini2440/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 22:21:51 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mini2440]]></category>

		<guid isPermaLink="false">http://www.electronics.diycinema.co.uk/?p=227</guid>
		<description><![CDATA[Thanks to www.andahammer.com both Will and I now have the Chameleon 135 enclosure for the Mini2440.  I&#8217;ve been working on a li-ion charger and once that&#8217;s finished we should be ready for some field testing. It takes a little while to get the holes drilled in the right place but once it&#8217;s screwed together the]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a rel="nofollow" href="http://www.andahammer.com/" >www.andahammer.com</a> both Will and I now have the Chameleon 135 enclosure for the Mini2440.  I&#8217;ve been working on a li-ion charger and once that&#8217;s finished we should be ready for some field testing. It takes a little while to get the holes drilled in the right place but once it&#8217;s screwed together the case is extremely sturdy. There&#8217;s loads of room inside for additional wiring <img src='http://www.electronics.diycinema.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/03/DSCF13041.jpg" ><img class="aligncenter size-full wp-image-230" title="DSCF1304" src="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/03/DSCF13041.jpg" alt="" width="640" height="481" /></a></p>
<p>You can get the Chameleon from <a rel="nofollow" href="http://andahammer.com/cham13/?PHPSESSID=8628aef1828ae2e9ef657bfd09c84318" >www.andahammer.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electronics.diycinema.co.uk/embedded/mini2440/chameleon-135-for-the-mini2440/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
			<coop:keyword><![CDATA[Uncategorized]]></coop:keyword>
		<coop:keyword><![CDATA[mini2440]]></coop:keyword>
	</item>
		<item>
		<title>Bluetooth GPS on the mini2440 with GPSd</title>
		<link>http://www.electronics.diycinema.co.uk/embedded/mini2440/bluetooth-gps-on-the-mini2440/</link>
		<comments>http://www.electronics.diycinema.co.uk/embedded/mini2440/bluetooth-gps-on-the-mini2440/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 22:01:31 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Bluetooth]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[mini2440]]></category>
		<category><![CDATA[GPSd]]></category>
		<category><![CDATA[OE]]></category>

		<guid isPermaLink="false">http://www.electronics.diycinema.co.uk/?p=125</guid>
		<description><![CDATA[For a long time i&#8217;ve had a SiRF 3 bluetooth GPS which i&#8217;ve just connected to the mini2440 using a ludicrously cheap USB bluetooth adapter from DealExtreme. Including shipping it cost £1.38 delivered!! Here&#8217;s what you get for your money: The chip is a Conwise CW6626. Anyway, what matters most is that if you have]]></description>
			<content:encoded><![CDATA[<p>For a long time i&#8217;ve had a SiRF 3 bluetooth GPS which i&#8217;ve just connected to the mini2440 using a ludicrously cheap USB bluetooth adapter from <a rel="nofollow" href="http://www.dealextreme.com/details.dx/sku.11866" >DealExtreme</a>. Including shipping it cost £1.38 delivered!! Here&#8217;s what you get for your money:</p>
<p style="text-align: center;"><a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/02/gps.jpg" ><img class="aligncenter size-full wp-image-126" title="gps" src="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/02/gps.jpg" alt="" width="640" height="480" /></a></p>
<p style="text-align: center;"><a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/02/gpsZ.jpg" ><img class="aligncenter size-full wp-image-127" title="gpsZ" src="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/02/gpsZ.jpg" alt="" width="640" height="480" /></a></p>
<p>The chip is a Conwise CW6626. Anyway, what matters most is that if you have bluetooth configured it works out of the box!</p>
<p>Connecting to the GPS is easy. First check the interface:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">hciconfig <span style="color: #660033;">-a</span></div></div>
<p>If it says down bring it up:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">hciconfig hci0 up</div></div>
<p>After executing the above I got the following:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">root@mini2440:~# </span>hciconfig <span style="color: #660033;">-a</span><br />
hci0: &nbsp; &nbsp;Type: USB<br />
BD Address: 00:<span style="color: #000000;">15</span>:<span style="color: #000000;">83</span>:<span style="color: #000000;">15</span>:A3:<span style="color: #000000;">10</span> ACL MTU: <span style="color: #000000;">672</span>:<span style="color: #000000;">3</span> SCO MTU: <span style="color: #000000;">128</span>:<span style="color: #000000;">2</span><br />
UP RUNNING<br />
RX bytes:<span style="color: #000000;">348</span> acl:<span style="color: #000000;">0</span> sco:<span style="color: #000000;">0</span> events:<span style="color: #000000;">11</span> errors:<span style="color: #000000;">0</span><br />
TX bytes:<span style="color: #000000;">38</span> acl:<span style="color: #000000;">0</span> sco:<span style="color: #000000;">0</span> commands:<span style="color: #000000;">11</span> errors:<span style="color: #000000;">0</span><br />
Features: 0xff 0x3e 0x85 0x30 0x18 0x18 0x00 0x00<br />
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3<br />
Link policy:<br />
Link mode: SLAVE ACCEPT<br />
Name: <span style="color: #ff0000;">''</span><br />
Class: 0x000208<br />
Service Classes: Unspecified<br />
Device Class: Phone, Cordless<br />
HCI Ver: <span style="color: #000000;">2.0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x3<span style="color: #7a0874; font-weight: bold;">&#41;</span> HCI Rev: 0xc5c LMP Ver: <span style="color: #000000;">2.0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>0x3<span style="color: #7a0874; font-weight: bold;">&#41;</span> LMP Subver: 0xc5c<br />
Manufacturer: Cambridge Silicon Radio <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">10</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></div></div>
<p>Now turn your GPS on and do a scan:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">root@mini2440:~# </span> hcitool scan<br />
Scanning ...<br />
00:0D:B5:<span style="color: #000000;">32</span>:2C:02 &nbsp; &nbsp;BT-GPS-322C02</div></div>
<p>Now fill in /etc/bluetooth/rfcomm.conf with the details. Here&#8217;s mine:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#</span><br />
<span style="color: #666666; font-style: italic;"># RFCOMM configuration file.</span><br />
<span style="color: #666666; font-style: italic;">#</span><br />
rfcomm0 <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
<span style="color: #666666; font-style: italic;"># Automatically bind the device at startup</span><br />
<span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #c20cb9; font-weight: bold;">yes</span>;<br />
<br />
<span style="color: #666666; font-style: italic;"># Bluetooth address of the device</span><br />
device 00:0D:B5:<span style="color: #000000;">32</span>:2C:02;<br />
<br />
<span style="color: #666666; font-style: italic;"># RFCOMM channel for the connection</span><br />
channel &nbsp; &nbsp;<span style="color: #000000;">1</span>;<br />
<br />
<span style="color: #666666; font-style: italic;"># Description of the connection</span><br />
comment <span style="color: #ff0000;">&quot;BT-GPS-322C02&quot;</span>;<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span></div></div>
<p>Next bind the device:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rfcomm <span style="color: #7a0874; font-weight: bold;">bind</span> rfcomm0</div></div>
<p>And check the device output using:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rfcomm0</div></div>
<p>Next i bitbaked gpsd, by simply typing:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bitbake gpsd</div></div>
<p>In my OE installation (see the various posts about setting this up).</p>
<p>Once this builds you can install the appropriate ipks. From memory I think i installed the following:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gpsd_2.39-r0.5_armv4t.ipk<br />
<br />
gpsd-static_2.39-r0.5_armv4t.ipk<br />
<br />
gpsd-gpsctl_2.39-r0.5_armv4t.ipk<br />
<br />
gps-utils_2.39-r0.5_armv4t.ipk<br />
<br />
libgps18_2.39-r0.5_armv4t.ipk</div></div>
<p>This pulled in a whole load of other packages. Next you can start gpsd by typing:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gpsd <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rfcomm0</div></div>
<p>And monitor the output using:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gpsmon</div></div>
<p>If all has gone well you should get a text output of the parsed NMEA data:</p>
<p style="text-align: center;"><a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/02/gpsd.jpg" ><img class="aligncenter size-full wp-image-129" title="gpsd" src="http://www.electronics.diycinema.co.uk/wp-content/uploads/2010/02/gpsd.jpg" alt="" width="640" height="386" /></a></p>
<p style="text-align: left;">Anyway..that&#8217;s just the tip of the iceburg. If you want to learn more have a look at the <a rel="nofollow" href="http://gpsd.berlios.de/index.html" >gpsd website</a> and the <a rel="nofollow" href="http://gpsd.berlios.de/bt.html" >bluetooth page</a> i have based this post on.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electronics.diycinema.co.uk/embedded/mini2440/bluetooth-gps-on-the-mini2440/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
			<coop:keyword><![CDATA[Bluetooth]]></coop:keyword>
		<coop:keyword><![CDATA[GPS]]></coop:keyword>
		<coop:keyword><![CDATA[mini2440]]></coop:keyword>
		<coop:keyword><![CDATA[GPSd]]></coop:keyword>
		<coop:keyword><![CDATA[OE]]></coop:keyword>
	</item>
		<item>
		<title>Qt Embedded 4.6.0 + Qwt + kxps5 accelerometer!</title>
		<link>http://www.electronics.diycinema.co.uk/embedded/mini2440/qt-embedded-4-6-0-qwt-kxps5-accelerometer/</link>
		<comments>http://www.electronics.diycinema.co.uk/embedded/mini2440/qt-embedded-4-6-0-qwt-kxps5-accelerometer/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 15:11:59 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Angstrom]]></category>
		<category><![CDATA[KXPS5]]></category>
		<category><![CDATA[mini2440]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[QWT]]></category>
		<category><![CDATA[accelerometer]]></category>
		<category><![CDATA[Qt-Embedded]]></category>

		<guid isPermaLink="false">http://www.electronics.diycinema.co.uk/?p=119</guid>
		<description><![CDATA[After testing the operation of the kxps5 accelerometer with i2c-tools i wrote a test application using the i2c-dev interface. If you want to test your code before you write a kernel driver this is definately a good place to start. Once i had the configuration registers set properly and i had a routine for reading]]></description>
			<content:encoded><![CDATA[<p>After testing the operation of the kxps5 accelerometer with i2c-tools i wrote a test application using the i2c-dev interface. If you want to test your code before you write a kernel driver this is definately a good place to start. Once i had the configuration registers set properly and i had a routine for reading the acceleration vectors I stripped down a ds1621 kernel driver to a bare minimum, and then built it back up again to work with the kxps5. I then bitbaked the kxps5 driver as a kernel module, along with hwmon and it works perfectly! <img src='http://www.electronics.diycinema.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Next i cross compiled qwt 5.2.0 and plotted the acceleration as function of time. The video below is taken with antialiased lines which slows down the refresh rate but makes them look nice. If you plot it without this enabled it runs very smoothly. Here you see the kxps5 running without an external low pass filter (the internal filter is 1kHz) and despite this the output is pretty stable. What impressed me the most is the sensitivity. When placed on a desk the free fall interrupt indicator lights up if you drop one of the little nuts from the friendlyarm LCD about 10cm away from the device!</p>
<p>[There is a video that cannot be displayed in this feed. <a href="http://www.electronics.diycinema.co.uk/embedded/mini2440/qt-embedded-4-6-0-qwt-kxps5-accelerometer/" >Visit the blog entry to see the video.]</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.electronics.diycinema.co.uk/embedded/mini2440/qt-embedded-4-6-0-qwt-kxps5-accelerometer/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
			<coop:keyword><![CDATA[Angstrom]]></coop:keyword>
		<coop:keyword><![CDATA[KXPS5]]></coop:keyword>
		<coop:keyword><![CDATA[mini2440]]></coop:keyword>
		<coop:keyword><![CDATA[Qt]]></coop:keyword>
		<coop:keyword><![CDATA[QWT]]></coop:keyword>
		<coop:keyword><![CDATA[accelerometer]]></coop:keyword>
		<coop:keyword><![CDATA[Qt-Embedded]]></coop:keyword>
	</item>
		<item>
		<title>Bitbaking the kernel, Angstrom and qt4-embedded all at once</title>
		<link>http://www.electronics.diycinema.co.uk/embedded/mini2440/bitbaking-the-kernel-angstrom-and-qt4-embedded-all-at-once/</link>
		<comments>http://www.electronics.diycinema.co.uk/embedded/mini2440/bitbaking-the-kernel-angstrom-and-qt4-embedded-all-at-once/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 21:57:45 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Angstrom]]></category>
		<category><![CDATA[mini2440]]></category>
		<category><![CDATA[Open Embedded]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[OE]]></category>
		<category><![CDATA[Qt-Embedded]]></category>

		<guid isPermaLink="false">http://www.electronics.diycinema.co.uk/?p=109</guid>
		<description><![CDATA[This is what i should have done to begin with! The instructions are very similar to previous ones except this time we clone the right git repository! On a fresh copy of Fedora 11 I updated the system and installed the packages reccommended by OE: su -c “yum install python m4 make wget curl ftp]]></description>
			<content:encoded><![CDATA[<p>This is what i should have done to begin with! The instructions are very similar to previous ones except this time we clone the right git repository!</p>
<p>On a fresh copy of Fedora 11 I updated the system and installed the packages reccommended by OE:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> “<span style="color: #c20cb9; font-weight: bold;">yum install</span> python <span style="color: #c20cb9; font-weight: bold;">m4</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> curl <span style="color: #c20cb9; font-weight: bold;">ftp</span> <span style="color: #c20cb9; font-weight: bold;">cvs</span> subversion <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #c20cb9; font-weight: bold;">bzip2</span> <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #c20cb9; font-weight: bold;">unzip</span> <br />
python-psyco <span style="color: #c20cb9; font-weight: bold;">perl</span> texinfo texi2html diffstat openjade docbook-style-dsssl <br />
docbook-style-xsl docbook-dtds docbook-utils <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #c20cb9; font-weight: bold;">bison</span> <span style="color: #c20cb9; font-weight: bold;">bc</span> glibc-devel glibc-static <br />
<span style="color: #c20cb9; font-weight: bold;">gcc</span> binutils pcre pcre-devel <span style="color: #c20cb9; font-weight: bold;">git</span> quilt groff linuxdoc-tools <span style="color: #c20cb9; font-weight: bold;">patch</span> linuxdoc-tools <br />
gcc-c++ help2man perl-ExtUtils-MakeMaker”</div></div>
<p>I then made a folder called OE in my home directory and git cloned the mini2440 repo:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<br />
<br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> OE<br />
<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> OE<br />
<br />
<span style="color: #c20cb9; font-weight: bold;">git clone</span> git:<span style="color: #000000; font-weight: bold;">//</span>repo.or.cz<span style="color: #000000; font-weight: bold;">/</span>openembedded<span style="color: #000000; font-weight: bold;">/</span>mini2440.git openembedded</div></div>
<p>I then setup the source-me.txt similar to before:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gedit source-me.txt</div></div>
<p>I put the following in:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">OETREE</span>=<span style="color: #ff0000;">&quot;/home/doug/OE&quot;</span><br />
<br />
<span style="color: #007800;">BBPATH</span>=<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>:<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>openembedded<span style="color: #000000; font-weight: bold;">/</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> Setting up dev <span style="color: #c20cb9; font-weight: bold;">env</span> <span style="color: #000000; font-weight: bold;">for</span> Ångström<br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #800000;">${ORG_PATH}</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span><br />
<span style="color: #007800;">ORG_PATH</span>=<span style="color: #800000;">${PATH}</span><br />
<span style="color: #7a0874; font-weight: bold;">export</span> ORG_PATH<br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #800000;">${ORG_LD_LIBRARY_PATH}</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span><br />
<span style="color: #007800;">ORG_LD_LIBRARY_PATH</span>=<span style="color: #800000;">${LD_LIBRARY_PATH}</span><br />
<span style="color: #7a0874; font-weight: bold;">export</span> ORG_LD_LIBRARY_PATH<br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #007800;">PATH</span>=<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>openembedded<span style="color: #000000; font-weight: bold;">/</span>bitbake<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #800000;">${ORG_PATH}</span><br />
<br />
<span style="color: #007800;">LD_LIBRARY_PATH</span>=<br />
<span style="color: #7a0874; font-weight: bold;">export</span> PATH LD_LIBRARY_PATH BBPATH<br />
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LANG</span>=C<br />
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">BB_ENV_EXTRAWHITE</span>=<span style="color: #ff0000;">&quot;MACHINE DISTRO OETREE ANGSTROM_MODE ANGSTROMLIBC LIBC&quot;</span><br />
<br />
<span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">'sysctl vm.mmap_min_addr=0'</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Altered environment for OE Development&quot;</span></div></div>
<p>Now all you need to do is setup the local.conf. Simply edit the example and copy it to the right place:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> openembedded<br />
gedit mini2440_local_conf_example.conf</div></div>
<p>Read this file and edit as appropriate. I have <a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2009/11/local.conf.txt" >attached mine</a> as an example. Now copy it to the conf/local.conf</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">cp</span> mini2440_local_conf_example.conf conf<span style="color: #000000; font-weight: bold;">/</span>local.conf</div></div>
<p>If you want qt4-embedded or any other package included in the build simply edit the recipe in:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">openembedded<span style="color: #000000; font-weight: bold;">/</span>recipes<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>mini2440-image.bb</div></div>
<p>I added qt4-embedded:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#Angstrom bootstrap image</span><br />
<br />
IMAGE_PREPROCESS_COMMAND = <span style="color: #ff0000;">&quot;create_etc_timestamp&quot;</span><br />
<br />
ANGSTROM_EXTRA_INSTALL ?= <span style="color: #ff0000;">&quot;&quot;</span><br />
<br />
DEPENDS = &nbsp;<span style="color: #ff0000;">&quot;task-base-extended <br />
psplash-zap <br />
esekeyd u-boot-utils tslib <br />
i2c-tools i2c screen rsync nfs-utils <br />
directfb gdbserver directfb mtd-utils <br />
&quot;</span><br />
<br />
IMAGE_INSTALL = <span style="color: #ff0000;">&quot;task-base-extended <br />
<span style="color: #007800;">${ANGSTROM_EXTRA_INSTALL}</span> <br />
psplash-zap qt4-embedded<br />
esekeyd u-boot-utils tslib-calibrate tslib-tests <br />
i2c-tools i2c screen rsync nfs-utils-client <br />
directfb gdbserver directfb mtd-utils <br />
rsvg pango <br />
&quot;</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">export</span> IMAGE_BASENAME = <span style="color: #ff0000;">&quot;mini2440-image&quot;</span><br />
IMAGE_LINGUAS = <span style="color: #ff0000;">&quot;&quot;</span><br />
<br />
inherit image</div></div>
<p>Then all you have to do is source the script from wherever you put it:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">source</span> source-me.txt</div></div>
<p>and run bitbake:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bitbake mini2440-image</div></div>
<p>from the  ~/OE/openembedded/ directory..</p>
<p>If you get an error trying to build a package try cleaning it:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bitbake <span style="color: #660033;">-c</span> clean INSERTPACKAGENAME</div></div>
<p>Then try and build the image again. Maybe you won&#8217;t have this problem. I guess it&#8217;s either because the checksum parser failed to build or my hdd is dodgy. It only happened once on binutils but worked fine after cleaning it.</p>
<p>A few hours later if all goes well you should have images in:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">~<span style="color: #000000; font-weight: bold;">/</span>OE<span style="color: #000000; font-weight: bold;">/</span>oetmp<span style="color: #000000; font-weight: bold;">/</span>deploy<span style="color: #000000; font-weight: bold;">/</span>glibc<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>mini2440<span style="color: #000000; font-weight: bold;">/</span></div></div>
<p>Obviously that directory depends on what you setup in the local.conf.</p>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electronics.diycinema.co.uk/embedded/mini2440/bitbaking-the-kernel-angstrom-and-qt4-embedded-all-at-once/feed/</wfw:commentRss>
		<slash:comments>101</slash:comments>
			<coop:keyword><![CDATA[Angstrom]]></coop:keyword>
		<coop:keyword><![CDATA[mini2440]]></coop:keyword>
		<coop:keyword><![CDATA[Open Embedded]]></coop:keyword>
		<coop:keyword><![CDATA[Qt]]></coop:keyword>
		<coop:keyword><![CDATA[OE]]></coop:keyword>
		<coop:keyword><![CDATA[Qt-Embedded]]></coop:keyword>
	</item>
		<item>
		<title>Configuring Open Embedded to bake Angstrom images for the mini2440</title>
		<link>http://www.electronics.diycinema.co.uk/embedded/mini2440/configuring-open-embedded-to-bake-angstrom-images-for-the-mini2440/</link>
		<comments>http://www.electronics.diycinema.co.uk/embedded/mini2440/configuring-open-embedded-to-bake-angstrom-images-for-the-mini2440/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 16:00:23 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Open Embedded]]></category>
		<category><![CDATA[Angstrom]]></category>
		<category><![CDATA[mini2440]]></category>
		<category><![CDATA[OE]]></category>

		<guid isPermaLink="false">http://www.electronics.diycinema.co.uk/?p=88</guid>
		<description><![CDATA[Please Note: I noticed a few people were having trouble with the Angstrom build using Doug&#8217;s article, so I thought I&#8217;d post the exact method I used (which seemed to work!) so others can retrace my steps with out confusing anyone by editing the previous article! If you have already successfully baked an Angstrom image]]></description>
			<content:encoded><![CDATA[<p>Please Note: I noticed a few people were having trouble with the Angstrom build using <a href="http://www.electronics.diycinema.co.uk/?p=67" >Doug&#8217;s article</a>, so I thought I&#8217;d post the exact method I used (which seemed to work!) so others can retrace my steps with out confusing anyone by editing the previous article! <strong>If you have already successfully baked an Angstrom image please ignore this post! </strong></p>
<p>First off I&#8217;d like to point out that this article is essentially an amalgamation of the <a rel="nofollow" href="http://wiki.openembedded.net/index.php/Getting_Started" >Open Embedded Wiki (Getting Started)</a> and <a rel="nofollow" href="http://www.angstrom-distribution.org/building-angstrom" >Angstrom&#8217;s &#8216;Building Angstrom&#8217;</a> articles but in context relating to the mini2440 Embedded PC. If you would like a more detailed and probably better written explanation please refer to these two articles.</p>
<p>Make sure you have the packages needed for Open Embedded(OE) by visiting <a rel="nofollow" href="http://wiki.openembedded.net/index.php/OEandYourDistro" >here</a> and looking under the section relating to your distro. Running fedora 11 I did:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip <br />
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl <br />
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel glibc-static <br />
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools <br />
gcc-c++ help2man perl-ExtUtils-MakeMaker&quot;</span></div></div>
<p>Getting down to business&#8230;</p>
<p>Open up a terminal. Issue these commands:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">su</span> -<br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>stuff2<span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>conf<br />
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">777</span> <span style="color: #660033;">-Rf</span> <span style="color: #000000; font-weight: bold;">/</span>stuff2<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #7a0874; font-weight: bold;">exit</span><br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>stuff2<span style="color: #000000; font-weight: bold;">/</span></div></div>
<p>Download latest bitbake from <a rel="nofollow" href="http://developer.berlios.de/project/showfiles.php?group_id=2701&amp;release_id=16878" >here</a> and extract the bitbake directory in the archive (eg. bitbake-1.8.16) to /stuff2/</p>
<p>A few more commands:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mv</span> bitbake-1.8.16<span style="color: #000000; font-weight: bold;">/</span> bitbake<br />
<span style="color: #c20cb9; font-weight: bold;">git clone</span> git:<span style="color: #000000; font-weight: bold;">//</span>git.openembedded.org<span style="color: #000000; font-weight: bold;">/</span>openembedded<br />
<span style="color: #c20cb9; font-weight: bold;">cp</span> openembedded<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>local.conf.sample build<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>local.conf</div></div>
<p>Edit the config you have just copied using your favourite text editor.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gedit build<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>local.conf</div></div>
<p>It is important that you read the config carefully so that you understand what everything does&#8230;</p>
<p>Next edit it to look something like this (which is just a slightly modified version of openembedded/contrib/angstrom/local.conf) :</p>
<p>Note: Do not copy and paste from this article due to formatting issues. You can download a pre-made local.conf <a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2009/11/local.conf.tar.gz" >here.</a>Just extract to /stuff2/build/conf/ &#8230;</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">MACHINE = <span style="color: #ff0000;">&quot;mini2440&quot;</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Where to store sources</span><br />
DL_DIR = <span style="color: #ff0000;">&quot;/stuff2/downloads&quot;</span><br />
<br />
INHERIT += <span style="color: #ff0000;">&quot; rm_work &quot;</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Make sure you have these installed</span><br />
ASSUME_PROVIDED += <span style="color: #ff0000;">&quot;gdk-pixbuf-csource-native imagemagick-native librsvg-native&quot;</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Which files do we want to parse:</span><br />
BBFILES := <span style="color: #ff0000;">&quot;/stuff2/openembedded/recipes/*/*.bb&quot;</span><br />
BBMASK = <span style="color: #ff0000;">&quot;&quot;</span><br />
<br />
<span style="color: #666666; font-style: italic;"># What kind of images do we want?</span><br />
IMAGE_FSTYPES += <span style="color: #ff0000;">&quot; tar.bz2 &quot;</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Set TMPDIR instead of defaulting it to $pwd/tmp</span><br />
TMPDIR = <span style="color: #ff0000;">&quot;/stuff2/<span style="color: #007800;">${DISTRO}</span>-dev&quot;</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Make use of SMP and fast disks</span><br />
PARALLEL_MAKE = <span style="color: #ff0000;">&quot;-j2&quot;</span><br />
BB_NUMBER_THREADS = <span style="color: #ff0000;">&quot;2&quot;</span><br />
<br />
<span style="color: #666666; font-style: italic;">#tinderbox</span><br />
<span style="color: #666666; font-style: italic;">#INHERIT += &quot;oestats-client&quot;</span><br />
OESTATS_BUILDER &nbsp; &nbsp; &nbsp;= <span style="color: #ff0000;">&quot;myname&quot;</span><br />
<br />
DISTRO = <span style="color: #ff0000;">&quot;angstrom-2008.1&quot;</span></div></div>
<p>Save and exit the editor. Download <a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2009/11/source-me.txt" >this script</a> and move it to the directory /stuff2/ .</p>
<p>Check it is ok:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gedit <span style="color: #000000; font-weight: bold;">/</span>stuff2<span style="color: #000000; font-weight: bold;">/</span>source-me.txt</div></div>
<p>It should look something like this:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">OETREE</span>=<span style="color: #ff0000;">&quot;/stuff2&quot;</span><br />
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>stuff2<span style="color: #000000; font-weight: bold;">/</span>bitbake<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #007800;">$PATH</span><br />
<span style="color: #007800;">BBPATH</span>=<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>:<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>:<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>openembedded<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #007800;">PKGDIR</span>=<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #007800;">DL_DIR</span>=<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>downloads<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> Setting up dev <span style="color: #c20cb9; font-weight: bold;">env</span> <span style="color: #000000; font-weight: bold;">for</span> Ångström<br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #800000;">${ORG_PATH}</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span><br />
<span style="color: #007800;">ORG_PATH</span>=<span style="color: #800000;">${PATH}</span><br />
<span style="color: #7a0874; font-weight: bold;">export</span> ORG_PATH<br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #800000;">${ORG_LD_LIBRARY_PATH}</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span><br />
<span style="color: #007800;">ORG_LD_LIBRARY_PATH</span>=<span style="color: #800000;">${LD_LIBRARY_PATH}</span><br />
<span style="color: #7a0874; font-weight: bold;">export</span> ORG_LD_LIBRARY_PATH<br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #007800;">PATH</span>=<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>openembedded<span style="color: #000000; font-weight: bold;">/</span>bitbake<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #800000;">${ORG_PATH}</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$PKGDIR</span><br />
<br />
<span style="color: #007800;">LD_LIBRARY_PATH</span>=<br />
<span style="color: #7a0874; font-weight: bold;">export</span> PATH LD_LIBRARY_PATH BBPATH<br />
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LANG</span>=C<br />
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">BB_ENV_EXTRAWHITE</span>=<span style="color: #ff0000;">&quot;MACHINE DISTRO OETREE ANGSTROM_MODE ANGSTROMLIBC LIBC&quot;</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Altered environment for OE Development&quot;</span></div></div>
<p>save, and start the script:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>stuff2<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #7a0874; font-weight: bold;">source</span> source-me.txt</div></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> ..<span style="color: #000000; font-weight: bold;">/</span>openembedded</div></div>
<p>one last update:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git pull</span></div></div>
<p>Issue a few commands to fix build issues:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">su</span><br />
sysctl vm.mmap_min_addr=<span style="color: #000000;">0</span><br />
setenforce <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Fixes an SELINUX problem during building<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #7a0874; font-weight: bold;">exit</span></div></div>
<p>issue build commands:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bitbake base-image ; bitbake console-image ; bitbake &nbsp;x11-image</div></div>
<p>Be prepared to saturate your internet connection, wait a long time and take up a lot of disk space!<br />
The result ends up in:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">stuff2<span style="color: #000000; font-weight: bold;">/</span>angstrom-dev<span style="color: #000000; font-weight: bold;">/</span>deploy<span style="color: #000000; font-weight: bold;">/</span>glibc<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>mini2440</div></div>
<p>You should have the image(s) in .jffs2 for flashing and .tar.gz for mounting using NFS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electronics.diycinema.co.uk/embedded/mini2440/configuring-open-embedded-to-bake-angstrom-images-for-the-mini2440/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
			<coop:keyword><![CDATA[Open Embedded]]></coop:keyword>
		<coop:keyword><![CDATA[Angstrom]]></coop:keyword>
		<coop:keyword><![CDATA[mini2440]]></coop:keyword>
		<coop:keyword><![CDATA[OE]]></coop:keyword>
	</item>
		<item>
		<title>New hardware!</title>
		<link>http://www.electronics.diycinema.co.uk/embedded/mini2440/new-hardware/</link>
		<comments>http://www.electronics.diycinema.co.uk/embedded/mini2440/new-hardware/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 00:10:37 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[accelerometer]]></category>
		<category><![CDATA[KXPS5]]></category>
		<category><![CDATA[mini2440]]></category>

		<guid isPermaLink="false">http://www.electronics.diycinema.co.uk/?p=74</guid>
		<description><![CDATA[After breaking the z-axis connection on my first device I ordered a new KXPS5 accelerometer from crodnet on ebay. I really recommend this seller, he&#8217;s very cheap and sends things rapidly. I quickly knocked together a circuit on veroboard and hooked up the base of a transistor to the freefall / motion interrupt pin to]]></description>
			<content:encoded><![CDATA[<p>After breaking the z-axis connection on my first device I ordered a new KXPS5 accelerometer from <a href="http://myworld.ebay.co.uk/crodnet/" >crodnet</a> on ebay. I really recommend this seller, he&#8217;s very cheap and sends things rapidly.</p>
<p>I quickly knocked together a circuit on veroboard and hooked up the base of a transistor to the freefall / motion interrupt pin to check it was working. It is remarkably sensitive, the LED flicks on if i drop my pen at one end of my desk when the device is at the other! I was quite pleased that everything was working well so i hooked it up to the I2C bus using the cable kit kindly supplied by www.andahammer.com. Using I2C tools i was able to set registers and read acceleration vectors without any trouble so i&#8217;m pretty sure everything is working well. I was a bit worried about exceeding the bus capacitance at first.</p>
<p style="text-align: center;"><a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2009/11/DSC_0069.jpg" ><img class="aligncenter size-large wp-image-76" title="DSC_0069" src="http://www.electronics.diycinema.co.uk/wp-content/uploads/2009/11/DSC_0069-1024x768.jpg" alt="DSC_0069" width="614" height="461" /></a></p>
<p style="text-align: center;"><a href="http://www.electronics.diycinema.co.uk/wp-content/uploads/2009/11/DSC_0068.jpg" ><img class="size-large wp-image-75 aligncenter" title="DSC_0068" src="http://www.electronics.diycinema.co.uk/wp-content/uploads/2009/11/DSC_0068-1024x768.jpg" alt="DSC_0068" width="614" height="461" /></a></p>
<p>It turns out that i can still use the old device if i rely on the internal low pass filter. I was thinking of doing this anyway and using a Kalman filter to process the output. First i need to write a device driver so i&#8217;ve rapidly being trying to learn C. So far i&#8217;ve got a very basic kernel module up and running on the mini2440 <img src='http://www.electronics.diycinema.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.electronics.diycinema.co.uk/embedded/mini2440/new-hardware/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
			<coop:keyword><![CDATA[Uncategorized]]></coop:keyword>
		<coop:keyword><![CDATA[accelerometer]]></coop:keyword>
		<coop:keyword><![CDATA[KXPS5]]></coop:keyword>
		<coop:keyword><![CDATA[mini2440]]></coop:keyword>
	</item>
		<item>
		<title>Building Angstrom</title>
		<link>http://www.electronics.diycinema.co.uk/embedded/mini2440/building-angstrom/</link>
		<comments>http://www.electronics.diycinema.co.uk/embedded/mini2440/building-angstrom/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 23:33:34 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Angstrom]]></category>
		<category><![CDATA[mini2440]]></category>
		<category><![CDATA[OE]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://www.electronics.diycinema.co.uk/?p=67</guid>
		<description><![CDATA[I&#8217;ve been meaning to put this up for a while. Providing nothing goes wrong the whole process is actually very easy! This is basically a rehash of the Angstrom webpage so you might prefer to follow that taking notes of the minor deviations below: export OETREE=&#34;/home/doug/OE&#34; mkdir -p ${OETREE} cd ${OETREE} git clone git://git.openembedded.org/openembedded.git openembedded]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been meaning to put this up for a while. Providing nothing goes wrong the whole process is actually very easy! This is basically a rehash of the <a href="http://www.angstrom-distribution.org/building-angstrom"  target="_blank">Angstrom webpage</a> so you might prefer to follow that taking notes of the minor deviations below:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">OETREE</span>=<span style="color: #ff0000;">&quot;/home/doug/OE&quot;</span><br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #800000;">${OETREE}</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #800000;">${OETREE}</span><br />
<span style="color: #c20cb9; font-weight: bold;">git clone</span> git:<span style="color: #000000; font-weight: bold;">//</span>git.openembedded.org<span style="color: #000000; font-weight: bold;">/</span>openembedded.git openembedded<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> openembedded<br />
<span style="color: #c20cb9; font-weight: bold;">git checkout</span> origin<span style="color: #000000; font-weight: bold;">/</span>stable<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2009</span> <span style="color: #660033;">-b</span> stable<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2009</span></div></div>
<p>To update the OE metadata simply:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>openembedded<br />
<span style="color: #c20cb9; font-weight: bold;">git pull</span></div></div>
<p>Now make the suggested script source-me.txt changing OETREE to suit your needs:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">OETREE</span>=<span style="color: #ff0000;">&quot;/home/doug/OE&quot;</span><br />
<br />
<span style="color: #007800;">BBPATH</span>=<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>:<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>:<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>openembedded<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #007800;">PKGDIR</span>=<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #007800;">DL_DIR</span>=<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>downloads<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> Setting up dev <span style="color: #c20cb9; font-weight: bold;">env</span> <span style="color: #000000; font-weight: bold;">for</span> Ångström<br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #800000;">${ORG_PATH}</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span><br />
<span style="color: #007800;">ORG_PATH</span>=<span style="color: #800000;">${PATH}</span><br />
<span style="color: #7a0874; font-weight: bold;">export</span> ORG_PATH<br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #800000;">${ORG_LD_LIBRARY_PATH}</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span><br />
<span style="color: #007800;">ORG_LD_LIBRARY_PATH</span>=<span style="color: #800000;">${LD_LIBRARY_PATH}</span><br />
<span style="color: #7a0874; font-weight: bold;">export</span> ORG_LD_LIBRARY_PATH<br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #007800;">PATH</span>=<span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>openembedded<span style="color: #000000; font-weight: bold;">/</span>bitbake<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #800000;">${ORG_PATH}</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$PKGDIR</span><br />
<br />
<span style="color: #007800;">LD_LIBRARY_PATH</span>=<br />
<span style="color: #7a0874; font-weight: bold;">export</span> PATH LD_LIBRARY_PATH BBPATH<br />
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LANG</span>=C<br />
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">BB_ENV_EXTRAWHITE</span>=<span style="color: #ff0000;">&quot;MACHINE DISTRO OETREE ANGSTROM_MODE ANGSTROMLIBC LIBC&quot;</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Altered environment for OE Development&quot;</span></div></div>
<p>I also had to set:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> sysctl vm.mmap_min_addr=<span style="color: #000000;">0</span></div></div>
<p>Then setup local.conf:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>conf<br />
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>openembedded<span style="color: #000000; font-weight: bold;">/</span>contrib<span style="color: #000000; font-weight: bold;">/</span>angstrom<span style="color: #000000; font-weight: bold;">/</span>local.conf <span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span></div></div>
<p>Now edit ${OETREE}/build/conf/local.conf and add this to the end:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">MACHINE = <span style="color: #ff0000;">&quot;mini2440&quot;</span></div></div>
<p>Now download the <a href="http://cgit.openembedded.org/cgit.cgi/openembedded/tree/conf/machine/mini2440.conf"  target="_blank">mini2440 config file</a> from openembedded. Put this in:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>openembedded<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>machine<span style="color: #000000; font-weight: bold;">/</span></div></div>
<p>Now source the source-me.txt, go to the OE tree, check it&#8217;s up to date</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">source</span> source-me.txt<br />
<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>openembedded<br />
<br />
<span style="color: #c20cb9; font-weight: bold;">git pull</span> - <span style="color: #660033;">-rebase</span></div></div>
<p>Now build the images, you can build all of them or just one. I used the base image for running Qt but i also built the gpe image which worked nicely if you need it.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bitbake base-image ; bitbake console-image ; bitbake &nbsp;x11-image ; bitbake gpe-image</div></div>
<p>Be prepared to saturate your internet connection, wait a long time and take up a lot of disk space!</p>
<p>The result ends up in:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #800000;">${OETREE}</span><span style="color: #000000; font-weight: bold;">/</span>angstrom-dev<span style="color: #000000; font-weight: bold;">/</span>deploy<span style="color: #000000; font-weight: bold;">/</span>glibc<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>mini2440</div></div>
<p>You should have the image(s) in .jffs2 for flashing and .tar.gz for mounting using NFS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electronics.diycinema.co.uk/embedded/mini2440/building-angstrom/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
			<coop:keyword><![CDATA[Uncategorized]]></coop:keyword>
		<coop:keyword><![CDATA[Angstrom]]></coop:keyword>
		<coop:keyword><![CDATA[mini2440]]></coop:keyword>
		<coop:keyword><![CDATA[OE]]></coop:keyword>
		<coop:keyword><![CDATA[Qt]]></coop:keyword>
	</item>
	</channel>
</rss>

