<?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>Flying Bug &#187; arm</title>
	<atom:link href="http://xiehang.com/blog/tag/arm/feed/" rel="self" type="application/rss+xml" />
	<link>http://xiehang.com/blog</link>
	<description>Debugging and Being Debugged</description>
	<lastBuildDate>Sat, 04 Sep 2010 05:00:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>ARM emulator</title>
		<link>http://xiehang.com/blog/2009/05/15/arm-emulator/</link>
		<comments>http://xiehang.com/blog/2009/05/15/arm-emulator/#comments</comments>
		<pubDate>Sat, 16 May 2009 05:32:10 +0000</pubDate>
		<dc:creator>Hang</dc:creator>
				<category><![CDATA[Triviality]]></category>
		<category><![CDATA[ada]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://xiehang.com/blog/?p=368</guid>
		<description><![CDATA[Here is the perfect explanation on how to setup a ARM linux emulator, there are only three things I change: I installed binary qemu package instead of building from source Those ARM kernels are now 2.6.18-6, guess version will be changed again later on I didn&#8217;t install SSH &#8211; I&#8217;m using console for all the [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the perfect explanation on <a href="http://www.goitexpert.com/entry.cfm?entry=ARM-Emulation-With-QEMU">how to setup a ARM linux emulator</a>, there are only three things I change:</p>
<ul>
<li>I installed binary qemu package instead of building from source</li>
<li>Those ARM kernels are now 2.6.18-6, guess version will be changed again later on</li>
<li>I didn&#8217;t install SSH &#8211; I&#8217;m using console for all the time (check below)</li>
</ul>
<p>Pretty fun, and on my P4 2.8G Ubuntu it runs pretty smoothly- I guess it runs much more faster than most real ARM single board computers, but I don&#8217;t have anything to verify it.</p>
<p>Turning on console took me sometime, as I was lost on host and VM&#8217;s setting, actually it is pretty simple:</p>
<ul>
<li>turn on ttyAMA0 in VM, I replaced tty2 with ttyAMA0 in /etc/inittab:<br />
2:23:respawn:/sbin/getty 38400 ttyAMA0</li>
<li>launch the VM without graphic (too much resource), and let VM use ttyAMA0 as console:<br />
qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.18-6-versatile -initrd initrd.img-2.6.18-6-versatile -hda hda.img -append &#8220;console=ttyAMA0 root=/dev/sda1&#8243; -serial stdio -nographic</li>
</ul>
<p>Now after reboot, I have my ARM box now:</p>
<p>$ uname -a<br />
Linux ubuntu 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux</p>
<p>It does not have full Ubuntu packages, I&#8217;m trying to do cross compiling (using GNAT) as I want to use Ada for all its development.</p>
<p>Once everything works I will get a dev board <img src='http://xiehang.com/blog/wp-includes/images/smilies/1.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://xiehang.com/blog/2009/05/15/arm-emulator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
