<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.openmoko.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.openmoko.org/index.php?title=Test_Openmoko_Emulation_with_chroot_image/zh_tw&amp;feed=atom&amp;action=history</id>
		<title>Test Openmoko Emulation with chroot image/zh tw - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.openmoko.org/index.php?title=Test_Openmoko_Emulation_with_chroot_image/zh_tw&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Test_Openmoko_Emulation_with_chroot_image/zh_tw&amp;action=history"/>
		<updated>2013-06-20T05:33:17Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.6</generator>

	<entry>
		<id>http://wiki.openmoko.org/index.php?title=Test_Openmoko_Emulation_with_chroot_image/zh_tw&amp;diff=58229&amp;oldid=prev</id>
		<title>Coolcat: /* Installation */</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Test_Openmoko_Emulation_with_chroot_image/zh_tw&amp;diff=58229&amp;oldid=prev"/>
				<updated>2008-10-24T09:25:54Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Installation&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 09:25, 24 October 2008&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Installation &lt;/del&gt;===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;安裝 &lt;/ins&gt;===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Get the Image (about 3.2 GB) from http&lt;/del&gt;://b030.tfh-berlin.de/Openmoko-Dev-x86_2007-07-16.img.bz2:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;你可以從http&lt;/ins&gt;://b030.tfh-berlin.de/Openmoko-Dev-x86_2007-07-16.img.bz2:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;wget http://b030.tfh-berlin.de/Openmoko-Dev-x86_2007-07-16.img.bz2&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;wget http://b030.tfh-berlin.de/Openmoko-Dev-x86_2007-07-16.img.bz2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;取得映像檔。約 3.2 GB。 &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Check the md5sum:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Check the md5sum:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Coolcat</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/index.php?title=Test_Openmoko_Emulation_with_chroot_image/zh_tw&amp;diff=58228&amp;oldid=prev</id>
		<title>Coolcat at 09:22, 24 October 2008</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Test_Openmoko_Emulation_with_chroot_image/zh_tw&amp;diff=58228&amp;oldid=prev"/>
				<updated>2008-10-24T09:22:42Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 09:22, 24 October 2008&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Languages|Test Openmoko Emulation with chroot image}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Languages|Test Openmoko Emulation with chroot image}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;There is an image to provide a fresh Ubuntu 7.04 (feisty) containing the Openmoko installation as generated by [[MokoMakefile]] including working [[Openmoko under QEMU|QEMU]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;There is an image to provide a fresh Ubuntu 7.04 (feisty) containing the Openmoko installation as generated by [[MokoMakefile]] including working [[Openmoko under QEMU|QEMU]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Coolcat</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/index.php?title=Test_Openmoko_Emulation_with_chroot_image/zh_tw&amp;diff=58227&amp;oldid=prev</id>
		<title>Coolcat: New page: {{Languages|Test Openmoko Emulation with chroot image}} There is an image to provide a fresh Ubuntu 7.04 (feisty) containing the Openmoko installation as generated by MokoMakefile incl...</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Test_Openmoko_Emulation_with_chroot_image/zh_tw&amp;diff=58227&amp;oldid=prev"/>
				<updated>2008-10-24T09:20:37Z</updated>
		
		<summary type="html">&lt;p&gt;New page: {{Languages|Test Openmoko Emulation with chroot image}} There is an image to provide a fresh Ubuntu 7.04 (feisty) containing the Openmoko installation as generated by &lt;a href=&quot;/wiki/MokoMakefile&quot; title=&quot;MokoMakefile&quot;&gt;MokoMakefile&lt;/a&gt; incl...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Languages|Test Openmoko Emulation with chroot image}}&lt;br /&gt;
There is an image to provide a fresh Ubuntu 7.04 (feisty) containing the Openmoko installation as generated by [[MokoMakefile]] including working [[Openmoko under QEMU|QEMU]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Usage of the chroot image ==&lt;br /&gt;
&lt;br /&gt;
{{note|This Image is outdated (OM 2007.1)}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you do just want to test some of the functionality and need a starting point,&lt;br /&gt;
you can download an ext3 Image.&lt;br /&gt;
&lt;br /&gt;
The Image is just a first test and may contain errors as it's not tested well yet&lt;br /&gt;
(and the build process was not running through without user interferences).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
&lt;br /&gt;
Get the Image (about 3.2 GB) from http://b030.tfh-berlin.de/Openmoko-Dev-x86_2007-07-16.img.bz2:&lt;br /&gt;
wget http://b030.tfh-berlin.de/Openmoko-Dev-x86_2007-07-16.img.bz2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check the md5sum:&lt;br /&gt;
md5sum Openmoko-Dev-x86_2007-07-16.img.bz2&lt;br /&gt;
# it print &amp;quot;41715e06d7e59a94e4f05cf33ba054b5  Openmoko-Dev-x86_2007-07-16.img.bz2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to decompress the Image (about 15 Gbyte). An you'll also need the chroot software&lt;br /&gt;
and loop back device support in your kernel.&lt;br /&gt;
&lt;br /&gt;
bzip2 -d Openmoko-Dev-x86_2007-07-16.img.bz2&lt;br /&gt;
&lt;br /&gt;
To install chroot in GNU/Debian / Ubuntu you can use:&lt;br /&gt;
&lt;br /&gt;
sudo sh&lt;br /&gt;
apt-get install dchroot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== To mount and activate the chroot image use ====&lt;br /&gt;
&lt;br /&gt;
mkdir /var/chroot&lt;br /&gt;
mount -o loop Openmoko-Dev-x86_2007-07-16.img /var/chroot&lt;br /&gt;
&lt;br /&gt;
Add a new chroot configuration:&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Openmoko /var/chroot&amp;quot; | tee -a /etc/dchroot.conf&lt;br /&gt;
&lt;br /&gt;
Edit /etc/fstab and insert:&lt;br /&gt;
/tmp            /var/chroot/tmp         none    bind            0       0&lt;br /&gt;
proc-chroot     /var/chroot/proc        proc    defaults        0       0&lt;br /&gt;
devpts-chroot   /var/chroot/dev/pts     devpts  defaults        0       0&lt;br /&gt;
&lt;br /&gt;
Tell mount to re-scan fstab and mount the new directories automatically:&lt;br /&gt;
mount -a&lt;br /&gt;
&lt;br /&gt;
(optional) Manual mount:  If you do not want the system to mount these directories at boot, they can instead be mounted by hand.  Note that this will need to be repeated each time the system is rebooted:&lt;br /&gt;
mount -o bind /tmp /var/chroot/tmp&lt;br /&gt;
mount -t proc proc-chroot /var/chroot/proc&lt;br /&gt;
mount -t devpts devpts-chroot /var/chroot/dev/pts&lt;br /&gt;
&lt;br /&gt;
Copy your /etc/resolv.conf:&lt;br /&gt;
cp /etc/resolv.conf /var/chroot/etc/&lt;br /&gt;
&lt;br /&gt;
As the user who started X11:&lt;br /&gt;
xhost +                   # assuming you are behind NAT&lt;br /&gt;
&lt;br /&gt;
Start the chroot environment (as root again):&lt;br /&gt;
dchroot -d -c Openmoko    # -d to take the environment variables with you&lt;br /&gt;
&lt;br /&gt;
=== Starting the Emulation ===&lt;br /&gt;
&lt;br /&gt;
You can start the emulation by running:&lt;br /&gt;
cd /home/moko/openmoko/trunk/src/host/qemu-neo1973/&lt;br /&gt;
export DISPLAY=:0.0&lt;br /&gt;
arm-softmmu/qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image \&lt;br /&gt;
-kernel openmoko/openmoko-kernel.bin -usb -show-cursor -usbdevice keyboard&lt;br /&gt;
&lt;br /&gt;
=== Additional Notes ===&lt;br /&gt;
&lt;br /&gt;
There is no root password set and no user moko in the systems right now which should&lt;br /&gt;
not be a problem when used in an emulator or a chroot environment, here you have both.&lt;/div&gt;</summary>
		<author><name>Coolcat</name></author>	</entry>

	</feed>