<?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/"
	>

<channel>
	<title>Dooba.net &#187; Linux</title>
	<atom:link href="http://dooba.net/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://dooba.net</link>
	<description>Tech, Science, Insanity</description>
	<lastBuildDate>Tue, 06 Mar 2012 05:30:50 +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>A simple bootloader&#8230;</title>
		<link>http://dooba.net/2009/06/11/a-simple-bootloader/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-simple-bootloader</link>
		<comments>http://dooba.net/2009/06/11/a-simple-bootloader/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 06:21:19 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Embedded]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Xilinx]]></category>
		<category><![CDATA[C]]></category>

		<guid isPermaLink="false">http://dooba.net/?p=5</guid>
		<description><![CDATA[If you have ever used a Linux distro on an embedded system you know that a bootloader is a necessity. I&#8217;ve been working with PetaLinux for the Xilinx MicroBlaze and we have been using FS-boot to launch U-boot and then bring up Peta. However, recently I switched to BlueCat linux to take advantage of the [...]]]></description>
			<content:encoded><![CDATA[<p>If you have ever used a Linux distro on an embedded system you know that a bootloader is a necessity. I&#8217;ve been working with <a href="http://www.petalogix.com/">PetaLinux</a> for the Xilinx MicroBlaze and we have been using FS-boot to launch U-boot and then bring up Peta. However, recently I switched to BlueCat linux to take advantage of the MicroBlaze&#8217;s MMU. However, <a href="http://www.lynuxworks.com">BlueCat</a> doesn&#8217;t document a clear way to boot from flash. Below is some simple code to boot BlueCat. Note: the concept was taken from a Xilinx app note.</p>
<pre name="code" class="c">#include &lt;xparams.h&gt;
#define KDI_FLASH_LOC 0xXXXXXXXX //location of the linux image in flash
#define KDI_DDR_LOC 0xXXXXXXXX //location in DDR that you want your image to end up
#define KDI_LEN 0xXXXXXXXX //length of your image in bytes

main(){

uint8_t* kdi_flash_ptr = (uint8_t*)KDI_FLASH_LOC;
uint8_t* kdi_ddr_ptr = (uint8_t*)KDI_DDR_LOC;

void* laddr;

memcpy(kdi_flash_ptr, kdi_ddr_ptr, KDI_LEN);

laddr = (void*)KDI_DDR_LOC;
(*laddr)();

}</pre>
<p>You can use XPS to load your KDI file into flash, and then compile the bootloader into your bitstream, load the FPGA, and you are off!</p>
]]></content:encoded>
			<wfw:commentRss>http://dooba.net/2009/06/11/a-simple-bootloader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
