<?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/api.php?action=feedcontributions&amp;user=Noud&amp;feedformat=atom</id>
		<title>Openmoko - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.openmoko.org/api.php?action=feedcontributions&amp;user=Noud&amp;feedformat=atom"/>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/Special:Contributions/Noud"/>
		<updated>2013-05-20T02:08:26Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.19.6</generator>

	<entry>
		<id>http://wiki.openmoko.org/wiki/User:Noud</id>
		<title>User:Noud</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/User:Noud"/>
				<updated>2009-11-25T00:24:49Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Can you give me more deatail about the deletion ? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Main goal..to get [http://netbsd.org NetBSD] running on-top [[Neo1973]] hardware ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I did port [http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/dfu-util/ dfu-util], u-boot's [http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/u-boot/ mkimage], [http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/mtd-utils/ mtd-utils] and [http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/qemu-neo1973 qemu-neo1973] to [http://netbsd.org NetBSD].&lt;br /&gt;
&lt;br /&gt;
I have an experimental [[NetBSD|NetBSD/evbarm Neo1973 kernel]] booting on [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]], booting from the network or a ramdisk.&lt;br /&gt;
&lt;br /&gt;
You can make me happy by trying this [[NetBSD#Prebuild_NetBSD|NetBSD kernel]] on-top real Neo1973 hardware..and post, send or show the dmesg ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e: noud4 - home.nl&lt;br /&gt;
&lt;br /&gt;
l: the [[OpenMoko_Local_Groups:_Netherlands|Netherlands]], near [[OpenMoko_Local_Groups:_Eindhoven|Eindhoven]]/Tilburg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Can you give me more deatail about the deletion ?===&lt;br /&gt;
I can roll back for you .&lt;br /&gt;
&lt;br /&gt;
===I did not do the deletion,                       ===&lt;br /&gt;
===nor know the reason(s) why deleted !             ===&lt;br /&gt;
and yes, pls roll back this deleted part(s)&lt;br /&gt;
&lt;br /&gt;
[[User:Coolcat|coolcat]]&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/User_talk:Coolcat</id>
		<title>User talk:Coolcat</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/User_talk:Coolcat"/>
				<updated>2009-11-25T00:22:35Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;pls yes, i'd very extreme welcome the rollback this delete,&lt;br /&gt;
the screenshots showing and (if that's possible too) the &lt;br /&gt;
kernel config files to build..in bugzilla.&lt;br /&gt;
the later, for others to use too&lt;br /&gt;
&lt;br /&gt;
(i'd welcome any suggestion where to put them&lt;br /&gt;
kernel config files besides in bugzilla)&lt;br /&gt;
&lt;br /&gt;
WHY DID YOU DELETE MY NetBSD on Neo pictures!!??&lt;br /&gt;
&lt;br /&gt;
The full time editor of Openmoko.&lt;br /&gt;
&lt;br /&gt;
== Openmoko ==&lt;br /&gt;
&lt;br /&gt;
Do you know that the name is not OPENMOKO, but OpenMoko..&lt;br /&gt;
[[User:EsbenDamgaard|Ebbe]] 12:01, 5 March 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== Index page ==&lt;br /&gt;
&lt;br /&gt;
Hi! I have moved the index page from [[Openmoko Wiki Official Index Page]] to [[OpenMoko Wiki Official Index Page]]. If you want to make any changes to the index, please do it at the new page. Please don't start the page [[Openmoko Wiki Official Index Page]] again unless you can give reasons for it. --[[User:Galadh|Galadh]] 13:54, 12 March 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finally giving your reasons on [[User talk:Galadh|my talkpage]]. I have moved the page back to [[Openmoko Wiki Official Index Page]] and added the information on the new spelling to [[Help:Contents#A list of definitive spellings used throughout the site|Help:Contents]]. &lt;br /&gt;
&lt;br /&gt;
:When you edit the wiki, please remember to give your reasons for making a change in the edit summary if these reasons are not obvious. This will help other editors of the wiki understand why you made the change. --[[User:Galadh|Galadh]] 15:51, 13 March 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
Ciao! I think that your last edit is not so nice. People that do not speak English must read all the page before to find the Language option. Please, edit back the Index Page! Grazie --[[User:Panta|Panta]] 00:12, 11 May 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
:No problem. Thank you! --[[User:Panta|Panta]] 07:03, 13 May 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== i18n ==&lt;br /&gt;
&lt;br /&gt;
Ciao! As you know, I try to translate as quick as possible pages in Italian, but have some problems that i'd like to discuss with you (you area doing a great revisioning job on this wiki!) and others if you/them like it!&lt;br /&gt;
&lt;br /&gt;
Stating that the official wiki is the english wiki, I propose to add the Last edited date to pages. I think perhaps we can add such a information somewhere and to create:&lt;br /&gt;
&lt;br /&gt;
* a Translation Outdated page - Index of outdated pages per language&lt;br /&gt;
* a Template for the top of outdated pages - Worn visitors that page is outdated with a link to the english page.&lt;br /&gt;
&lt;br /&gt;
I think this can easily help people that wants to help in translations to better organize the job.You think this is a possible think to do? Grazie e Ciao --[[User:Panta|Panta]] 13:05, 25 May 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
==Sidebar==&lt;br /&gt;
Hi Brenda - Please look at the images at [[MediaWiki talk:Sidebar]]. Here you can see what is missing. --[[User:Glenn|Glenn]] 21:41, 7 June 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
== SHR deleted ==&lt;br /&gt;
&lt;br /&gt;
Why did you delete the article SHR? --[[User:KImH|KImH]] 08:35, 4 July 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
I think that's the same topic with '_stable Hybird _release' &lt;br /&gt;
If that's not the same thing, I will roll back it .&lt;br /&gt;
&lt;br /&gt;
Brenda&lt;br /&gt;
&lt;br /&gt;
I created it as a link so you can search for SHR, maby it can be done in another way for instance with the redirect tag.&lt;br /&gt;
&lt;br /&gt;
Kim&lt;br /&gt;
&lt;br /&gt;
==User's Manual==&lt;br /&gt;
I am trying to set up and populate a [[User's Manual]] [[:Category:User's Manual|Category Structure]], and was wondering what you thought about how I should name the sub-categories.  The way I found the User's Manual pages, each page was set up in a directory structure, such as &amp;quot;User's Manual/Games&amp;quot;, which is not really appropriate for a wiki.  But, I don't want to set up categories that might be interfere with other category names, so I was thinking of naming the sub categories with up to one level of directory structuring (ie a category called, &amp;quot;User's Manual/Games&amp;quot;, but not one called, &amp;quot;User's Manual/Games/Strategy&amp;quot;) or have any category that should fit within the user's manual be called &amp;quot;Manual:Games&amp;quot; -[[User:Sirkha|sirkha]]&lt;br /&gt;
&lt;br /&gt;
==Sitename==&lt;br /&gt;
&lt;br /&gt;
Hi, Coolcat! Could you please change the sitename of this wiki to &amp;quot;Openmoko Wiki&amp;quot;? I have requested this at [[Wiki Issues#Change Sitename|Wiki Issues]] a week ago and nobody has opposed it. At the moment the name of the wiki is &amp;quot;Openmoko&amp;quot; (You should see this name in the title bar of your browser). I think it should be changed to &amp;quot;Openmoko Wiki&amp;quot; because at the moment it's not possible to find content on pages beginning with &amp;quot;Openmoko:&amp;quot; through the normal search function of this wiki. You should be able to change this at [http://www.mediawiki.org/wiki/Manual:%24wgSitename $wgSitename]  in the file [http://www.mediawiki.org/wiki/Manual:LocalSettings.php LocalSettings.php]. --[[User:Marko Knöbl|Marko Knöbl]] 11:53, 16 August 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
:Hi! It's been nearly two weeks now since I requested this. Are there any news on this? Will the sitename change? (Please reply on [[User Talk:Marko Knöbl|my talk page]], not on [[User:Marko Knöbl|my user page]]). --[[User:Marko Knöbl|Marko Knöbl]] 11:51, 29 August 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Index page category vs. manual editing ==&lt;br /&gt;
&lt;br /&gt;
FYI. I replied to your comment on [[User talk:Kbjorgensen | my talk page]] and you're welcome to reply to it on [[Talk:Openmoko Wiki Official Index Page | the article's talk page]]. --[[User:Kbjorgensen|KB Jørgensen]] 12:46, 5 September 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
== CommunityRepository deleted ==&lt;br /&gt;
&lt;br /&gt;
You deleted the [[CommunityRepository]] article that redirected to [[Community Repository]]. Even though the deleted article might not be necessary, there were [http://wiki.openmoko.org/wiki/Special:Whatlinkshere/CommunityRepository alot of articles linking to it]. E.g. on the frontpage. Please make sure these are updated to point to the right article before you delete the redirect. Otherwise people might think that the article doesn't exist, when they see the red &amp;quot;article doesn't exist&amp;quot;-link . --[[User:Kbjorgensen|KB Jørgensen]] 14:33, 3 October 2008 (UTC)&lt;br /&gt;
:Sorry about that . I roll back it already.&lt;br /&gt;
[[User:Coolcat|coolcat]]&lt;br /&gt;
&lt;br /&gt;
== OpenStreetMap ==&lt;br /&gt;
&lt;br /&gt;
Where is all the OpenStreetMap stuff gone?&lt;br /&gt;
[[Openstreetmap]] does not exist anymore but [[Talk:Openstreetmap]] redirects to [[Talk:GPS-Trail]]. [[GPS-Trail]] has been deleted. Shouldn't the talkpage also be deleted if the mainpage has been deleted? --[[User:Phobie|Phobie]] 18:57, 15 October 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Deleting Articles ==&lt;br /&gt;
&lt;br /&gt;
If you delete an used article, you should have a look at [[Special:Whatlinkshere]]. I.e. by deleting [[Flashing]] ([[Special:Whatlinkshere/Flashing]]) you produced 29 dead links on pages like  [[Flashing_Openmoko]] or [[Neo_1973_Partitions]]! --[[User:Phobie|phobie]] 13:33, 22 October 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the reminding. I will be more careful next time.&lt;br /&gt;
&lt;br /&gt;
== Request for article deletion ==&lt;br /&gt;
&lt;br /&gt;
I accidentally moved [[Flashing_Openmoko/Known_good_rootfs_flash_dfu-util_output]] to [[Flashing_the_Neo_Freerunner/Known_good_rootfs_flash_dfu-util_output]] while it should go to [[Flashing_the_Neo_1973/Known_good_rootfs_flash_dfu-util_output]]. Please delete [[Flashing_the_Neo_1973/Known_good_rootfs_flash_dfu-util_output]], than the right article can be moved there... --[[User:Phobie|phobie]] 14:27, 22 October 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
:done&lt;br /&gt;
&lt;br /&gt;
== requested infos ==&lt;br /&gt;
&lt;br /&gt;
I have updated my page talk with some requested informations&lt;br /&gt;
&lt;br /&gt;
Where is it?&lt;br /&gt;
[[User:Coolcat|coolcat]]&lt;br /&gt;
&lt;br /&gt;
== Why do you delete my user page? ==&lt;br /&gt;
&lt;br /&gt;
Hi!&lt;br /&gt;
Why do you have delete my user page? I think that page was right : not offensive, not against the law...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sorry, I just want to delete the redirect page . Maybe I delete your user page accidently.&lt;br /&gt;
&lt;br /&gt;
[[User:Coolcat|coolcat]]&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2009-06-04T18:53:33Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD under Qemu */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Bootloader}}&lt;br /&gt;
== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers. Still, it's derived from the longstanding SMDK2410 kernel, given the Neo1973 is [http://wiki.openmoko.org/wiki/QT2410 Armzone QT2410], so SMDK2410, based.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[Openmoko under QEMU|Qemu Neo1973 emulator]], for instance the one running on top of [[Talk:Openmoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071017&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(or &amp;quot;NetBSD/evbarm 4.0 NEO1973 kernel 20080413 (netboot)&amp;quot; for NetBSD 4.0)&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071017.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071017.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071017 (netboot)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071017.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071017.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-20071017 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD on the Neo ===&lt;br /&gt;
&lt;br /&gt;
First, please note that NetBSD isn't actually known to work on the Neo, so your mileage here may vary quite a bit.   Having said that, if you want to try to boot NetBSD, it's pretty easy.&lt;br /&gt;
&lt;br /&gt;
First, NetBSD requires a larger kernel partition than Linux.   I think this is because NetBSD is a statically-linked kernel, whereas Linux pulls modules out of the jffs partition, but that's just a theory.   Also, NetBSD will tend to come with a ramdisk, which is part of the kernel image.&lt;br /&gt;
&lt;br /&gt;
Anyway, to rearrange the partitions, you will need to get into the u-boot console.   How you do this varies depending on the operating system you are running.   On NetBSD, you're going to type something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% screen /dev/tty.usbmodem00000001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you see a prompt like this, you're in business:&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 #&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can dump the current partition table like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 # mtdparts&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will print a list of partitions and some other information; it might be a good idea to make a copy if you want to install Linux later and don't want to keep the larger kernel partition size.&lt;br /&gt;
&lt;br /&gt;
To change the partition table, you're going to have to delete all the partitions from the kernel onward, and then re-add them.   When you do this, beware: you're going to wipe out the nice boot splash screen.   It has its own partition, which you are going to move.   So after you've made this change, you're going to see a dead black splash screen when the phone boots, which you may find alarming.   Don't say you weren't warned.   Also, please read the full instructions here before proceeding - don't just blindly start typing now.&lt;br /&gt;
&lt;br /&gt;
Okay, you've gathered your courage and are ready to go for it.   Here are the commands you need, first to delete the partitions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts del kernel&lt;br /&gt;
GTA01Bv4 # mtdparts del splash&lt;br /&gt;
GTA01Bv4 # mtdparts del rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then to add the new ones:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x300000 kernel&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x0a0000 splash&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x3a1c000 rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As far as I can tell there's no way to get mtdparts to say &amp;quot;use the rest of the flash memory for this partition.&amp;quot;   Sorry about that.   So you just have to do the math.   Also, the amount of space a partition consumes changes if there are bad blocks in it.   So you may have to fiddle around with the size of the rootfs partition.   You can check to see how the partition table came out like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts&lt;br /&gt;
&lt;br /&gt;
device nand0 &amp;lt;neo1973-nand&amp;gt;, # parts = 5&lt;br /&gt;
 #: name                        size            offset          mask_flags&lt;br /&gt;
 0: u-boot              0x00040000      0x00000000      0&lt;br /&gt;
 1: u-boot_env          0x00004000      0x00040000      0&lt;br /&gt;
 2: kernel              0x00214000      0x00044000      0&lt;br /&gt;
 3: splash              0x000a0000      0x00258000      0&lt;br /&gt;
 4: rootfs              0x03a1c000      0x002f8000      0&lt;br /&gt;
&lt;br /&gt;
active partition: nand0,0 - (u-boot) 0x00040000 @ 0x00000000&lt;br /&gt;
&lt;br /&gt;
defaults:&lt;br /&gt;
mtdids  : nand0=neo1973-nand&lt;br /&gt;
mtdparts: &amp;lt;NULL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, you haven't actually changed anything yet - if you power cycle the phone at this point, the partition table will go back to the way it was.   To make it permanent, you have to save it to flash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # saveenv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is obvious, but I'll say it anyway: don't delete the u-boot or u-boot_env partitions.   If you do, you'll probably brick your phone.   Heck, you'll probably brick your phone anyway.   I told you you needed to be brave, didn't I?&lt;br /&gt;
&lt;br /&gt;
Now, to install the kernel, assuming that you've survived all of these steps, you can use dfu-util:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% dfu-util -a kernel -R -D ~/Desktop/netbsd.boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD under Qemu ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:Openmoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/qemu-neo1973; qemu-neo1973 -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's a [[:Image:Netbsd-evbarm-neo1973.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
I made small progress and now have ramdisk, usb device from qemu and draw_test_pattern to lcd. Here's the [[:Image:Netbsd-evbarm-neo1973-lcd.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Progress again, active in a nfs boot.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
We have netboot and uname -a.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot-uname.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Here's the accompanying 20071017 [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  syssrc]] and [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  kernel image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist/Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;br /&gt;
&lt;br /&gt;
[[Category:Distributions]]&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/User_talk:Coolcat</id>
		<title>User talk:Coolcat</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/User_talk:Coolcat"/>
				<updated>2009-02-14T15:48:22Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WHY DID YOU DELETE MY NetBSD on Neo pictures!!??&lt;br /&gt;
&lt;br /&gt;
The full time editor of Openmoko.&lt;br /&gt;
&lt;br /&gt;
== Openmoko ==&lt;br /&gt;
&lt;br /&gt;
Do you know that the name is not OPENMOKO, but OpenMoko..&lt;br /&gt;
[[User:EsbenDamgaard|Ebbe]] 12:01, 5 March 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== Index page ==&lt;br /&gt;
&lt;br /&gt;
Hi! I have moved the index page from [[Openmoko Wiki Official Index Page]] to [[OpenMoko Wiki Official Index Page]]. If you want to make any changes to the index, please do it at the new page. Please don't start the page [[Openmoko Wiki Official Index Page]] again unless you can give reasons for it. --[[User:Galadh|Galadh]] 13:54, 12 March 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finally giving your reasons on [[User talk:Galadh|my talkpage]]. I have moved the page back to [[Openmoko Wiki Official Index Page]] and added the information on the new spelling to [[Help:Contents#A list of definitive spellings used throughout the site|Help:Contents]]. &lt;br /&gt;
&lt;br /&gt;
:When you edit the wiki, please remember to give your reasons for making a change in the edit summary if these reasons are not obvious. This will help other editors of the wiki understand why you made the change. --[[User:Galadh|Galadh]] 15:51, 13 March 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
Ciao! I think that your last edit is not so nice. People that do not speak English must read all the page before to find the Language option. Please, edit back the Index Page! Grazie --[[User:Panta|Panta]] 00:12, 11 May 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
:No problem. Thank you! --[[User:Panta|Panta]] 07:03, 13 May 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== i18n ==&lt;br /&gt;
&lt;br /&gt;
Ciao! As you know, I try to translate as quick as possible pages in Italian, but have some problems that i'd like to discuss with you (you area doing a great revisioning job on this wiki!) and others if you/them like it!&lt;br /&gt;
&lt;br /&gt;
Stating that the official wiki is the english wiki, I propose to add the Last edited date to pages. I think perhaps we can add such a information somewhere and to create:&lt;br /&gt;
&lt;br /&gt;
* a Translation Outdated page - Index of outdated pages per language&lt;br /&gt;
* a Template for the top of outdated pages - Worn visitors that page is outdated with a link to the english page.&lt;br /&gt;
&lt;br /&gt;
I think this can easily help people that wants to help in translations to better organize the job.You think this is a possible think to do? Grazie e Ciao --[[User:Panta|Panta]] 13:05, 25 May 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
==Sidebar==&lt;br /&gt;
Hi Brenda - Please look at the images at [[MediaWiki talk:Sidebar]]. Here you can see what is missing. --[[User:Glenn|Glenn]] 21:41, 7 June 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
== SHR deleted ==&lt;br /&gt;
&lt;br /&gt;
Why did you delete the article SHR? --[[User:KImH|KImH]] 08:35, 4 July 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
I think that's the same topic with '_stable Hybird _release' &lt;br /&gt;
If that's not the same thing, I will roll back it .&lt;br /&gt;
&lt;br /&gt;
Brenda&lt;br /&gt;
&lt;br /&gt;
I created it as a link so you can search for SHR, maby it can be done in another way for instance with the redirect tag.&lt;br /&gt;
&lt;br /&gt;
Kim&lt;br /&gt;
&lt;br /&gt;
==User's Manual==&lt;br /&gt;
I am trying to set up and populate a [[User's Manual]] [[:Category:User's Manual|Category Structure]], and was wondering what you thought about how I should name the sub-categories.  The way I found the User's Manual pages, each page was set up in a directory structure, such as &amp;quot;User's Manual/Games&amp;quot;, which is not really appropriate for a wiki.  But, I don't want to set up categories that might be interfere with other category names, so I was thinking of naming the sub categories with up to one level of directory structuring (ie a category called, &amp;quot;User's Manual/Games&amp;quot;, but not one called, &amp;quot;User's Manual/Games/Strategy&amp;quot;) or have any category that should fit within the user's manual be called &amp;quot;Manual:Games&amp;quot; -[[User:Sirkha|sirkha]]&lt;br /&gt;
&lt;br /&gt;
==Sitename==&lt;br /&gt;
&lt;br /&gt;
Hi, Coolcat! Could you please change the sitename of this wiki to &amp;quot;Openmoko Wiki&amp;quot;? I have requested this at [[Wiki Issues#Change Sitename|Wiki Issues]] a week ago and nobody has opposed it. At the moment the name of the wiki is &amp;quot;Openmoko&amp;quot; (You should see this name in the title bar of your browser). I think it should be changed to &amp;quot;Openmoko Wiki&amp;quot; because at the moment it's not possible to find content on pages beginning with &amp;quot;Openmoko:&amp;quot; through the normal search function of this wiki. You should be able to change this at [http://www.mediawiki.org/wiki/Manual:%24wgSitename $wgSitename]  in the file [http://www.mediawiki.org/wiki/Manual:LocalSettings.php LocalSettings.php]. --[[User:Marko Knöbl|Marko Knöbl]] 11:53, 16 August 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
:Hi! It's been nearly two weeks now since I requested this. Are there any news on this? Will the sitename change? (Please reply on [[User Talk:Marko Knöbl|my talk page]], not on [[User:Marko Knöbl|my user page]]). --[[User:Marko Knöbl|Marko Knöbl]] 11:51, 29 August 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Index page category vs. manual editing ==&lt;br /&gt;
&lt;br /&gt;
FYI. I replied to your comment on [[User talk:Kbjorgensen | my talk page]] and you're welcome to reply to it on [[Talk:Openmoko Wiki Official Index Page | the article's talk page]]. --[[User:Kbjorgensen|KB Jørgensen]] 12:46, 5 September 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
== CommunityRepository deleted ==&lt;br /&gt;
&lt;br /&gt;
You deleted the [[CommunityRepository]] article that redirected to [[Community Repository]]. Even though the deleted article might not be necessary, there were [http://wiki.openmoko.org/wiki/Special:Whatlinkshere/CommunityRepository alot of articles linking to it]. E.g. on the frontpage. Please make sure these are updated to point to the right article before you delete the redirect. Otherwise people might think that the article doesn't exist, when they see the red &amp;quot;article doesn't exist&amp;quot;-link . --[[User:Kbjorgensen|KB Jørgensen]] 14:33, 3 October 2008 (UTC)&lt;br /&gt;
:Sorry about that . I roll back it already.&lt;br /&gt;
[[User:Coolcat|coolcat]]&lt;br /&gt;
&lt;br /&gt;
== OpenStreetMap ==&lt;br /&gt;
&lt;br /&gt;
Where is all the OpenStreetMap stuff gone?&lt;br /&gt;
[[Openstreetmap]] does not exist anymore but [[Talk:Openstreetmap]] redirects to [[Talk:GPS-Trail]]. [[GPS-Trail]] has been deleted. Shouldn't the talkpage also be deleted if the mainpage has been deleted? --[[User:Phobie|Phobie]] 18:57, 15 October 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Deleting Articles ==&lt;br /&gt;
&lt;br /&gt;
If you delete an used article, you should have a look at [[Special:Whatlinkshere]]. I.e. by deleting [[Flashing]] ([[Special:Whatlinkshere/Flashing]]) you produced 29 dead links on pages like  [[Flashing_Openmoko]] or [[Neo_1973_Partitions]]! --[[User:Phobie|phobie]] 13:33, 22 October 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the reminding. I will be more careful next time.&lt;br /&gt;
&lt;br /&gt;
== Request for article deletion ==&lt;br /&gt;
&lt;br /&gt;
I accidentally moved [[Flashing_Openmoko/Known_good_rootfs_flash_dfu-util_output]] to [[Flashing_the_Neo_Freerunner/Known_good_rootfs_flash_dfu-util_output]] while it should go to [[Flashing_the_Neo_1973/Known_good_rootfs_flash_dfu-util_output]]. Please delete [[Flashing_the_Neo_1973/Known_good_rootfs_flash_dfu-util_output]], than the right article can be moved there... --[[User:Phobie|phobie]] 14:27, 22 October 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
:done&lt;br /&gt;
&lt;br /&gt;
== requested infos ==&lt;br /&gt;
&lt;br /&gt;
I have updated my page talk with some requested informations&lt;br /&gt;
&lt;br /&gt;
Where is it?&lt;br /&gt;
[[User:Coolcat|coolcat]]&lt;br /&gt;
&lt;br /&gt;
== Why do you delete my user page? ==&lt;br /&gt;
&lt;br /&gt;
Hi!&lt;br /&gt;
Why do you have delete my user page? I think that page was right : not offensive, not against the law...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sorry, I just want to delete the redirect page . Maybe I delete your user page accidently.&lt;br /&gt;
&lt;br /&gt;
[[User:Coolcat|coolcat]]&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2008-04-13T11:10:49Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Building NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers. Still, it's derived from the longstanding SMDK2410 kernel, given the Neo1973 is [http://wiki.openmoko.org/wiki/QT2410 Armzone QT2410], so SMDK2410, based.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071017&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(or &amp;quot;NetBSD/evbarm 4.0 NEO1973 kernel 20080413 (netboot)&amp;quot; for NetBSD 4.0)&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071017.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071017.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071017 (netboot)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071017.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071017.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-20071017 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD on the Neo ===&lt;br /&gt;
&lt;br /&gt;
First, please note that NetBSD isn't actually known to work on the Neo, so your mileage here may vary quite a bit.   Having said that, if you want to try to boot NetBSD, it's pretty easy.&lt;br /&gt;
&lt;br /&gt;
First, NetBSD requires a larger kernel partition than Linux.   I think this is because NetBSD is a statically-linked kernel, whereas Linux pulls modules out of the jffs partition, but that's just a theory.   Also, NetBSD will tend to come with a ramdisk, which is part of the kernel image.&lt;br /&gt;
&lt;br /&gt;
Anyway, to rearrange the partitions, you will need to get into the u-boot console.   How you do this varies depending on the operating system you are running.   On NetBSD, you're going to type something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% screen /dev/tty.usbmodem00000001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you see a prompt like this, you're in business:&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 #&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can dump the current partition table like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 # mtdparts&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will print a list of partitions and some other information; it might be a good idea to make a copy if you want to install Linux later and don't want to keep the larger kernel partition size.&lt;br /&gt;
&lt;br /&gt;
To change the partition table, you're going to have to delete all the partitions from the kernel onward, and then re-add them.   When you do this, beware: you're going to wipe out the nice boot splash screen.   It has its own partition, which you are going to move.   So after you've made this change, you're going to see a dead black splash screen when the phone boots, which you may find alarming.   Don't say you weren't warned.   Also, please read the full instructions here before proceeding - don't just blindly start typing now.&lt;br /&gt;
&lt;br /&gt;
Okay, you've gathered your courage and are ready to go for it.   Here are the commands you need, first to delete the partitions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts del kernel&lt;br /&gt;
GTA01Bv4 # mtdparts del splash&lt;br /&gt;
GTA01Bv4 # mtdparts del rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then to add the new ones:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x300000 kernel&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x0a0000 splash&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x3a1c000 rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As far as I can tell there's no way to get mtdparts to say &amp;quot;use the rest of the flash memory for this partition.&amp;quot;   Sorry about that.   So you just have to do the math.   Also, the amount of space a partition consumes changes if there are bad blocks in it.   So you may have to fiddle around with the size of the rootfs partition.   You can check to see how the partition table came out like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts&lt;br /&gt;
&lt;br /&gt;
device nand0 &amp;lt;neo1973-nand&amp;gt;, # parts = 5&lt;br /&gt;
 #: name                        size            offset          mask_flags&lt;br /&gt;
 0: u-boot              0x00040000      0x00000000      0&lt;br /&gt;
 1: u-boot_env          0x00004000      0x00040000      0&lt;br /&gt;
 2: kernel              0x00214000      0x00044000      0&lt;br /&gt;
 3: splash              0x000a0000      0x00258000      0&lt;br /&gt;
 4: rootfs              0x03a1c000      0x002f8000      0&lt;br /&gt;
&lt;br /&gt;
active partition: nand0,0 - (u-boot) 0x00040000 @ 0x00000000&lt;br /&gt;
&lt;br /&gt;
defaults:&lt;br /&gt;
mtdids  : nand0=neo1973-nand&lt;br /&gt;
mtdparts: &amp;lt;NULL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, you haven't actually changed anything yet - if you power cycle the phone at this point, the partition table will go back to the way it was.   To make it permanent, you have to save it to flash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # saveenv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is obvious, but I'll say it anyway: don't delete the u-boot or u-boot_env partitions.   If you do, you'll probably brick your phone.   Heck, you'll probably brick your phone anyway.   I told you you needed to be brave, didn't I?&lt;br /&gt;
&lt;br /&gt;
Now, to install the kernel, assuming that you've survived all of these steps, you can use dfu-util:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% dfu-util -a kernel -R -D ~/Desktop/netbsd.boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD under Qemu ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/qemu-neo1973; qemu-neo1973 -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's a [[:Image:Netbsd-evbarm-neo1973.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
I made small progress and now have ramdisk, usb device from qemu and draw_test_pattern to lcd. Here's the [[:Image:Netbsd-evbarm-neo1973-lcd.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Progress again, active in a nfs boot.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
We have netboot and uname -a.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot-uname.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Here's the accompanying 20071017 [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  syssrc]] and [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  kernel image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Kernel]]&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/Openmoko_Local_Groups:_Netherlands</id>
		<title>Openmoko Local Groups: Netherlands</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/Openmoko_Local_Groups:_Netherlands"/>
				<updated>2007-10-21T21:00:29Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Possible Participants */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Possible Participants ===&lt;br /&gt;
{|border=1&lt;br /&gt;
!Name&lt;br /&gt;
!Skills&lt;br /&gt;
!Level of Interest&lt;br /&gt;
!Ordered version&lt;br /&gt;
!Location&lt;br /&gt;
!Other&lt;br /&gt;
|-&lt;br /&gt;
|[[User:CathodioN|Geert Schuring]]&lt;br /&gt;
|Java EE, XML, UML&lt;br /&gt;
|Would like to develop Server components&lt;br /&gt;
|&lt;br /&gt;
|Ede, Gelderland&lt;br /&gt;
|willing to organize stuff i.e. meeting location/whatever.&lt;br /&gt;
|-&lt;br /&gt;
|[[User:Kero|Kero]]&lt;br /&gt;
|Ruby&lt;br /&gt;
|dbus and pim applications&lt;br /&gt;
|Base GTA01BV4&lt;br /&gt;
|Eindhoven&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|[[User:Ericsmith|Eric Smith]]&lt;br /&gt;
|Perl, Linux, VoIP&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|Amsterdam&lt;br /&gt;
|Share Ideas, VoIP, GPS, SyncML&lt;br /&gt;
|-&lt;br /&gt;
|[[User:das_nl|Daniel Peptu]]&lt;br /&gt;
| C/C++, Java, .Net, Python&lt;br /&gt;
| &lt;br /&gt;
|Adv. kit GTA01BV4&lt;br /&gt;
|Den Haag&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|[[User:Boudewijn|Boudewijn]]&lt;br /&gt;
|general&lt;br /&gt;
|Looking for some participants in a group order&lt;br /&gt;
|&lt;br /&gt;
|Zwolle&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|[[User:tHe_IkkE|Walter Goossens]]&lt;br /&gt;
|(ARM)Kernel programming, OpenEmbedded, C/C++, Java, VHDL&lt;br /&gt;
|Would like to contribute to the kernel and other low-level stuff&lt;br /&gt;
|Adv. kit GTA01BV4&lt;br /&gt;
|Tilburg&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|[[User:Noud|Noud de Brouwer]]&lt;br /&gt;
|software development&lt;br /&gt;
|NetBSD on-top the Neo 1973&lt;br /&gt;
|qemu&lt;br /&gt;
|Goirle&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/Talk:Openmoko_under_QEMU</id>
		<title>Talk:Openmoko under QEMU</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/Talk:Openmoko_under_QEMU"/>
				<updated>2007-10-21T20:14:30Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* NetBSD/i386 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Broken Link ==&lt;br /&gt;
Under the header Pre-built binaries on this page the link to the zip file is broken.&lt;br /&gt;
&lt;br /&gt;
--[[User:Kodafox|Kodafox]] 18:59, 28 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Error connecting ==&lt;br /&gt;
If you get an error like&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh: connect to host 192.168.0.202 port 22: No route to host&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you try to ssh, it could most probably be because one of your other network interfaces (wired/wireless) is being assigned an IP address of the form 192.168.0.* ,because of which the routing table contains a default gateway entry that is confusing poor new usb0 interface.&lt;br /&gt;
&lt;br /&gt;
The easiest way to work around this is to specify a tighter netmask for usb0 like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo ifconfig usb0 inet 192.168.0.200 netmask 255.255.255.240&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
[[User:Skn|Skn]] 18:50, 5 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Debian Sid ==&lt;br /&gt;
&lt;br /&gt;
under Debian Sid. I have to change slightly openmoko/env and openmoko/download.sh to make it run on Linux:&lt;br /&gt;
* in openmoko/env s/make=gmake/make=make/&lt;br /&gt;
* in openmoko/download.sh changed line 34 to:  files=`lynx -dump $download_dir | grep http | sed &amp;quot;s,[0-9 \t\.]*$download_dir\([a-zA-Z0-9_\.-]\)[ \t]*,\1,&amp;quot;` &lt;br /&gt;
[[User:Any Key|Any Key]] 14:16, 4 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Thanks, hopefully should be fixed. make was changed to gmake in the first place to account for BSD.[[User:Balrog|balrog]] 23:11, 5 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Gentoo, AMD64 ==&lt;br /&gt;
&lt;br /&gt;
Where can I report bugs in QEMU-Neo1973? It fails to compile:&lt;br /&gt;
 /server/projects/openmoko/qemu-neo1973/target-arm/op.c: In function 'op_iwmmxt_movq_wRn_M0':&lt;br /&gt;
 /server/projects/openmoko/qemu-neo1973/target-arm/op.c:1374: error: unable to find a register to spill in class 'GENERAL_REGS'&lt;br /&gt;
--[[User:Zbraniecki|Zbraniecki]] 12:52, 7 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
:I assume you're using gcc4 (gcc-config -l). Qemu fails to build if you use gcc4 as it only builds with gcc3 at this time. More information:&lt;br /&gt;
http://gentoo-wiki.com/HOWTO:_Qemu&lt;br /&gt;
&lt;br /&gt;
http://kidsquid.com/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-1dd86241b11d36963df140c9f6ab46ef402d4244 &lt;br /&gt;
&lt;br /&gt;
http://bugs.gentoo.org/show_bug.cgi?id=132667&lt;br /&gt;
&lt;br /&gt;
How to do a downgrade to gcc3 just for Qemu: http://forums.gentoo.org/viewtopic-t-537643-highlight-qemu.html - be aware, though, that the kernel modules may not load if you built the kernel with gcc4, so a kernel recompilation may be in order also. [[User:Abraxa|Abraxa]] 19:38, 7 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
I encountered the same problem, but I still had a gcc3 installed (gcc-3.4.6-r1 in a seperate slot from the system default gcc4, to be exact. This means that if you're using gentoo, you will '''not''' need to downgrade your system gcc). I simply added --cc=gcc-3.4.6 to ./configure's switches and make finished without major problems. --[[User:LordHelmchen|LordHelmchen]] 20:12, 11 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
If you still encounter this problem with gcc3, make sure you don't have -march set anywhere like in CFLAGS (I had -march=athlon-xp). unsetting CFLAGS before re-running the configure script solved the problem for me. --[[User:Vegar|Vegar]] 22:10, 24 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
If nothing else works, you should try to use gcc-3.3.* (tested using the x86-chroot as building environment) --[[User:Mathias|Mathias]]&lt;br /&gt;
&lt;br /&gt;
== Basic question ==&lt;br /&gt;
&lt;br /&gt;
I am using the emulator after compiling 'make qemu'.&lt;br /&gt;
The basic gui screen has been created and it asks the following:&lt;br /&gt;
&lt;br /&gt;
'Touch the crosshairs to calibrate the screen'&lt;br /&gt;
&lt;br /&gt;
Unfortunately I do not know how to continue from this stage on...&lt;br /&gt;
Any mouse click on the crosshairs, or a keyboard touch won't initiate a click...&lt;br /&gt;
&lt;br /&gt;
Does any body know how can I click the emulator screen and continue from this stage? --[[User:nighthawk|nighthawk]] 01:12, 9 April 2007&lt;br /&gt;
&lt;br /&gt;
I use mouse click and it works --[[User:Filippo|Filippo]] 22:16, 8 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
I find a single click will not register. Which makes sense if you think about a fingerpress on the screen. I hold down the mouse and wiggle it a bit to get the buttons to register. -- DonPark 8Apr07&lt;br /&gt;
&lt;br /&gt;
Still got problem with enabling the mouse. I tried according to the QEMU guide to see which mice are available under what I used. (ALT-CTRL-2, command 'mice info') and there was only the following:&lt;br /&gt;
* Mouse #0: QEMU S3C2410-driven Touchscreen&lt;br /&gt;
&lt;br /&gt;
Does anybody got the same problem as I got?&lt;br /&gt;
--[[User:nighthawk|nighthawk]] 04:14am, 9 April 2007&lt;br /&gt;
&lt;br /&gt;
Please see http://lists.openmoko.org/pipermail/openmoko-devel/2007-April/000837.html [[User:Balrog|balrog]] 01:20, 18 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== FreeBSD and Qemu... ==&lt;br /&gt;
&lt;br /&gt;
1. Comment lines 49 and 50 in file gnokiigsm/device.h&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//size_t device_read(__ptr_t buf, size_t nbytes, struct gn_statemachine *state);&lt;br /&gt;
//size_t device_write(const __ptr_t buf, size_t n, struct gn_statemachine *state);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Compile all with gmake&lt;br /&gt;
&lt;br /&gt;
3. as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#kldload aio&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Have fun :)&lt;br /&gt;
&lt;br /&gt;
(MokoMakefile ist too Linux specific to work on FreeBSD&lt;br /&gt;
&lt;br /&gt;
== NetBSD/i386 ==&lt;br /&gt;
To get the [[Talk:OpenMoko_under_QEMU#Qemu_Neo1973_emulator_on_NetBSD|Qemu Neo1973 emulator on NetBSD]]:&lt;br /&gt;
&lt;br /&gt;
1. fetch pkgsrc from http://pkgsrc.org&lt;br /&gt;
&lt;br /&gt;
2. fetch wip from http://pkgsrc-wip.sourceforge.net&lt;br /&gt;
&lt;br /&gt;
3. build package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/pkgsrc/wip/qemu-neo1973; make package&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshots showing [[OpenMoko|Linux OpenMoko]] booting on [[Talk:OpenMoko_under_QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]]:&lt;br /&gt;
[[:Image:Netbsd-openmoko000.png|0]]&lt;br /&gt;
[[:Image:Netbsd-openmoko001.png|1]]&lt;br /&gt;
[[:Image:Netbsd-openmoko002.png|2]]&lt;br /&gt;
[[:Image:Netbsd-openmoko003.png|3]]&lt;br /&gt;
[[:Image:Netbsd-openmoko004.png|4]]&lt;br /&gt;
..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
note:&lt;br /&gt;
there's an experimental [[NetBSD|NetBSD/evbarm Neo1973 kernel]] booting on [[Talk:OpenMoko_under_QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]]&lt;br /&gt;
&lt;br /&gt;
== flash.sh fails ==&lt;br /&gt;
Try installing lynx (sudo apt-get install lynx) and run the openmoko/download.sh again,&lt;br /&gt;
then it should work.&lt;br /&gt;
&lt;br /&gt;
===question/answers===&lt;br /&gt;
&lt;br /&gt;
looks like I'm somehow getting a variable confused... when I try to run flash.sh with no arguments, I get a bunch of errors from sleep telling me that items such as `nand' for instance is an invalid time.  I've encountered this problem both from the makefile and from a manual download.  From what I can deduce, $2 should contain the number of (micro?)seconds for sleep to wait, but it looks like there's a target list, or some series of commands that are getting crosswired in.&lt;br /&gt;
&lt;br /&gt;
If it helps, I'm running ubuntu fiesty X64 &lt;br /&gt;
&lt;br /&gt;
any help would be appreciated&lt;br /&gt;
&lt;br /&gt;
Thank you,&lt;br /&gt;
&lt;br /&gt;
--[[User:JeffAndros|JeffAndros]] 21:32, 30 June 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Hi Jeff,&lt;br /&gt;
&lt;br /&gt;
I had the same output, and in my case the problem was that my image hadn't&lt;br /&gt;
built. I guess the flash.sh script behaves this way if there is no image&lt;br /&gt;
(todo: it would be good to modify the script to first check for an image, and&lt;br /&gt;
if it is missing, report it as such and exit.). &lt;br /&gt;
&lt;br /&gt;
Michael -[[User:MichaelShiloh|MichaelShiloh]]&lt;br /&gt;
&lt;br /&gt;
error transcript follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Neo NAND is 128k sectors big&lt;br /&gt;
cat .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec &amp;gt; openmoko-flash.base&lt;br /&gt;
rm -rf .8b .16b .512b .sec .8sec .64sec .512sec .2ksec .16ksec&lt;br /&gt;
Please wait, programming the NAND flash...&lt;br /&gt;
Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal&lt;br /&gt;
error, but for better emulation accuracy either use a 2.6 host Linux kernel or&lt;br /&gt;
type 'echo 1024 &amp;gt; /proc/sys/dev/rtc/max-user-freq' as root.&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `dontask'&lt;br /&gt;
sleep: invalid time interval `y'&lt;br /&gt;
sleep: invalid time interval `nand'&lt;br /&gt;
sleep: invalid time interval `createbbt'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `bootcmd'&lt;br /&gt;
sleep: invalid time interval `\'setenv'&lt;br /&gt;
sleep: invalid time interval `bootargs'&lt;br /&gt;
sleep: invalid time interval `${bootargs_base}'&lt;br /&gt;
sleep: invalid time interval `${mtdparts};'&lt;br /&gt;
sleep: invalid time interval `bootm'&lt;br /&gt;
sleep: invalid time interval `0x31000000\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_1'&lt;br /&gt;
sleep: invalid time interval `\'Set'&lt;br /&gt;
sleep: invalid time interval `console'&lt;br /&gt;
sleep: invalid time interval `to'&lt;br /&gt;
sleep: invalid time interval `USB:'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdin'&lt;br /&gt;
sleep: invalid time interval `usbtty;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdout'&lt;br /&gt;
sleep: invalid time interval `usbtty;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stderr'&lt;br /&gt;
sleep: invalid time interval `usbtty\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_2'&lt;br /&gt;
sleep: invalid time interval `\'Set'&lt;br /&gt;
sleep: invalid time interval `console'&lt;br /&gt;
sleep: invalid time interval `to'&lt;br /&gt;
sleep: invalid time interval `serial:'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdin'&lt;br /&gt;
sleep: invalid time interval `serial;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdout'&lt;br /&gt;
sleep: invalid time interval `serial;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stderr'&lt;br /&gt;
sleep: invalid time interval `serial\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_3'&lt;br /&gt;
sleep: invalid time interval `\'Power'&lt;br /&gt;
sleep: invalid time interval `off:'&lt;br /&gt;
sleep: invalid time interval `neo1973'&lt;br /&gt;
sleep: invalid time interval `power-off\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `splashimage'&lt;br /&gt;
sleep: invalid time interval `\'nand'&lt;br /&gt;
sleep: invalid time interval `read.e'&lt;br /&gt;
sleep: invalid time interval `splash'&lt;br /&gt;
sleep: invalid time interval `0x5000;'&lt;br /&gt;
sleep: invalid time interval `unzip'&lt;br /&gt;
sleep: invalid time interval `0x96000\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `mtdids'&lt;br /&gt;
sleep: invalid time interval `nand0=neo1973-nand'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `mtdparts'&lt;br /&gt;
sleep: invalid time interval `mtdparts=neo1973-nand:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs)'&lt;br /&gt;
sleep: invalid time interval `#dynpart'&lt;br /&gt;
sleep: invalid time interval `nand'&lt;br /&gt;
sleep: invalid time interval `write.e'&lt;br /&gt;
sleep: invalid time interval `u-boot'&lt;br /&gt;
sleep: invalid time interval `dynenv'&lt;br /&gt;
sleep: invalid time interval `set'&lt;br /&gt;
sleep: invalid time interval `u-boot_env'&lt;br /&gt;
sleep: invalid time interval `saveenv'&lt;br /&gt;
Try `sleep --help' for more information.&lt;br /&gt;
openmoko/flash.sh: line 88: 26649 Terminated              $qemu -mtdblock &amp;quot;$script_dir/$flash_base&amp;quot; -kernel &amp;quot;$script_dir/$1&amp;quot; -serial stdio -nographic -usb -monitor null 0&amp;lt;&amp;amp;0&lt;br /&gt;
&lt;br /&gt;
U-boot failed to finish writing in setenv dontask y nand createbbt setenv bootcmd 'setenv bootargs ${bootargs_base} ${mtdparts}; bootm 0x31000000' setenv menu_1 'Set console to USB: setenv stdin usbtty; setenv stdout usbtty; setenv stderr usbtty' setenv menu_2 'Set console to serial: setenv stdin serial; setenv stdout serial; setenv stderr serial' setenv menu_3 'Power off: neo1973 power-off' setenv splashimage 'nand read.e 0x36000000 splash 0x5000; unzip 0x36000000 0x33d00000 0x96000' setenv mtdids nand0=neo1973-nand setenv mtdparts mtdparts=neo1973-nand:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs) #dynpart nand write.e 0x31000000 u-boot 0x1000 dynenv set u-boot_env saveenv seconds, giving up.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Make sure you have lynx installed. It's required to download the files with download.sh. I was getting the same error, then I installed lynx, and it worked fine.&lt;br /&gt;
:--[[User:Bloodylip|Bloodylip]] 15:22, 19 July 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Compiling QEMU with SUSE 10.2 ==&lt;br /&gt;
&lt;br /&gt;
* Install gcc version 3.3.6. It can be downloaded from [http://gcc.cybermirror.org/releases/gcc-3.3.6/gcc-core-3.3.6.tar.gz http://gcc.cybermirror.org/releases/gcc-3.3.6/gcc-core-3.3.6.tar.gz], for example. After unpacking it somewhere do&lt;br /&gt;
&lt;br /&gt;
  cd gcc-3.3.6/&lt;br /&gt;
  ./configure --prefix=/home/archive/moko/gcc33 --program-suffix=-3.3&lt;br /&gt;
  make bootstrap&lt;br /&gt;
  make install&lt;br /&gt;
&lt;br /&gt;
Please '''replace''' /home/archive/moko/gcc33 with a path of your choice, since it will be the one where gcc33 will be installed. &lt;br /&gt;
&lt;br /&gt;
* Add the following line in file openmoko/trunk/src/host/qemu-neo1973/usb-linux.c to get it compiled:&lt;br /&gt;
&lt;br /&gt;
  #include &amp;lt;sys/ioctl.h&amp;gt;&lt;br /&gt;
  #include &amp;lt;linux/compiler.h&amp;gt; &amp;lt;-- ADD THIS!&lt;br /&gt;
  #include &amp;lt;linux/usbdevice_fs.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(Hint found at [http://osdir.com/ml/emulators.kvm.devel/2007-01/msg00101.html http://osdir.com/ml/emulators.kvm.devel/2007-01/msg00101.html])&lt;br /&gt;
&lt;br /&gt;
The next steps depend on what method you use to compile stuff:&lt;br /&gt;
&lt;br /&gt;
* If you are using [[MokoMakefile]], as I do,  edit Makefile around line 266 to involve gcc33:&lt;br /&gt;
&lt;br /&gt;
          $${OMDIR}/openmoko/trunk/src/host/qemu-neo1973/configure \&lt;br /&gt;
                --target-list=arm-softmmu \&lt;br /&gt;
                --cc=/home/archive/moko/gcc33/bin/gcc-3.3) &lt;br /&gt;
        [ -e build/qemu/openmoko ] || \&lt;br /&gt;
* Manually on the command line:&lt;br /&gt;
     ./configure --target-list=arm-softmmu --cc=/home/archive/moko/gcc33/bin/gcc-3.3&lt;br /&gt;
     make&lt;br /&gt;
&lt;br /&gt;
Please remember to use the path you chose above for gcc33!&lt;br /&gt;
&lt;br /&gt;
* Finally run&lt;br /&gt;
 make qemu&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Taki|Taki]] 12:45, 14 July 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==calibration problem==&lt;br /&gt;
by using the current makefile for 2007.2 on 64bit ubuntu I was not able to point to buttons on the qemu screen correctly due to a calibration issue.&lt;br /&gt;
it seems that i had to imagine the screen turned around by 90° clockwise and only by guessing where the buttons would be I was able to open up the console and did a ts_calibrate to re orientate the screen - now everything works as expected.&lt;br /&gt;
&lt;br /&gt;
Same problem here with a ubuntu 32bit running 2007.2. How did you do the ts_calibrate? It's already difficult for getting in the terminal (on the phone), but then I couldn't find the onscreen keyboard. How do you activate it?&lt;br /&gt;
[[User:Dolfje|Dolfje]] 13:03, 21 August 2007 (CEST) - the mokomakefile runs qemu with your keyboard as an usb device so you can use it to type. [[User:JoSch|JoSch]] 17:57, 25 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Again same problem :) Would really like to try this out, but it is hard without calibration. 14:29 (CEST) Saturday, August 25 2007&lt;br /&gt;
&lt;br /&gt;
Run qemu with the -portrait option to make the calibration at least match qemu's input orientation (which should be enough to start a terminal and type ts_calibrate for further calibration). Adding &amp;quot;-usbdevice keyboard&amp;quot; enables the USB keyboard. --[[User:Danielmewes|Danielmewes]] 19:39, 28 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Segfault when flash.sh runs / 'bad magic number' error from qemu ==&lt;br /&gt;
&lt;br /&gt;
I had an issue where make qemu and make flash-qemu-official both had a segfault when running flash.sh then when running make run-qemu I got errors from the bootloader about a 'bad magic number'. &lt;br /&gt;
&lt;br /&gt;
The quick fix (per Mek in #openmoko) is to comment out the line in flash.sh that reads 'nand createbbt' .&lt;br /&gt;
== Hangs at setenv bootcmd ==&lt;br /&gt;
&lt;br /&gt;
Both manually and with MokoMakefile, flash.sh hangs for me at &amp;quot;setenv bootcmd '&amp;quot; (up to and including the apostrophe prints initially, then it goes onto &amp;quot;openmoko/flash.sh&amp;quot; after 300 sec):&lt;br /&gt;
 Creating BBT. Please wait ...Bad block table not found for chip 0&lt;br /&gt;
 Bad block table not found for chip 0&lt;br /&gt;
 Bad block table written to 0x03ffc000, version 0x01&lt;br /&gt;
 Bad block table written to 0x03ff8000, version 0x01&lt;br /&gt;
 &lt;br /&gt;
 GTA01Bv4 # setenv bootcmd 'openmoko/flash.sh: line 88: 23632 Terminated \&lt;br /&gt;
 $qemu -mtdblock  &amp;quot;$script_dir/$flash_base&amp;quot; -kernel &amp;quot;$script_dir/$1&amp;quot; \&lt;br /&gt;
 -serial stdio -nographic -usb -monitor null 0&amp;lt;&amp;amp;0&lt;br /&gt;
 &lt;br /&gt;
 U-boot failed to finish writing in 300 seconds, giving up.&lt;br /&gt;
Any ideas?  Debian testing, 2.6.22 kernel, all the openmoko/OE/qemu dependencies installed AFAIK.  --[[User:Tsuki|Tsuki]] 21:02, 5 October 2007 (CEST)&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-21T19:54:39Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD under Qemu */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers. Still, it's derived from the longstanding SMDK2410 kernel, given the Neo1973 is [http://wiki.openmoko.org/wiki/QT2410 Armzone QT2410], so SMDK2410, based.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071017&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071017.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071017.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071017 (netboot)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071017.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071017.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-20071017 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD on the Neo ===&lt;br /&gt;
&lt;br /&gt;
First, please note that NetBSD isn't actually known to work on the Neo, so your mileage here may vary quite a bit.   Having said that, if you want to try to boot NetBSD, it's pretty easy.&lt;br /&gt;
&lt;br /&gt;
First, NetBSD requires a larger kernel partition than Linux.   I think this is because NetBSD is a statically-linked kernel, whereas Linux pulls modules out of the jffs partition, but that's just a theory.   Also, NetBSD will tend to come with a ramdisk, which is part of the kernel image.&lt;br /&gt;
&lt;br /&gt;
Anyway, to rearrange the partitions, you will need to get into the u-boot console.   How you do this varies depending on the operating system you are running.   On NetBSD, you're going to type something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% screen /dev/tty.usbmodem00000001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you see a prompt like this, you're in business:&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 #&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can dump the current partition table like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 # mtdparts&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will print a list of partitions and some other information; it might be a good idea to make a copy if you want to install Linux later and don't want to keep the larger kernel partition size.&lt;br /&gt;
&lt;br /&gt;
To change the partition table, you're going to have to delete all the partitions from the kernel onward, and then re-add them.   When you do this, beware: you're going to wipe out the nice boot splash screen.   It has its own partition, which you are going to move.   So after you've made this change, you're going to see a dead black splash screen when the phone boots, which you may find alarming.   Don't say you weren't warned.   Also, please read the full instructions here before proceeding - don't just blindly start typing now.&lt;br /&gt;
&lt;br /&gt;
Okay, you've gathered your courage and are ready to go for it.   Here are the commands you need, first to delete the partitions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts del kernel&lt;br /&gt;
GTA01Bv4 # mtdparts del splash&lt;br /&gt;
GTA01Bv4 # mtdparts del rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then to add the new ones:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x300000 kernel&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x0a0000 splash&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x3a1c000 rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As far as I can tell there's no way to get mtdparts to say &amp;quot;use the rest of the flash memory for this partition.&amp;quot;   Sorry about that.   So you just have to do the math.   Also, the amount of space a partition consumes changes if there are bad blocks in it.   So you may have to fiddle around with the size of the rootfs partition.   You can check to see how the partition table came out like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts&lt;br /&gt;
&lt;br /&gt;
device nand0 &amp;lt;neo1973-nand&amp;gt;, # parts = 5&lt;br /&gt;
 #: name                        size            offset          mask_flags&lt;br /&gt;
 0: u-boot              0x00040000      0x00000000      0&lt;br /&gt;
 1: u-boot_env          0x00004000      0x00040000      0&lt;br /&gt;
 2: kernel              0x00214000      0x00044000      0&lt;br /&gt;
 3: splash              0x000a0000      0x00258000      0&lt;br /&gt;
 4: rootfs              0x03a1c000      0x002f8000      0&lt;br /&gt;
&lt;br /&gt;
active partition: nand0,0 - (u-boot) 0x00040000 @ 0x00000000&lt;br /&gt;
&lt;br /&gt;
defaults:&lt;br /&gt;
mtdids  : nand0=neo1973-nand&lt;br /&gt;
mtdparts: &amp;lt;NULL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, you haven't actually changed anything yet - if you power cycle the phone at this point, the partition table will go back to the way it was.   To make it permanent, you have to save it to flash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # saveenv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is obvious, but I'll say it anyway: don't delete the u-boot or u-boot_env partitions.   If you do, you'll probably brick your phone.   Heck, you'll probably brick your phone anyway.   I told you you needed to be brave, didn't I?&lt;br /&gt;
&lt;br /&gt;
Now, to install the kernel, assuming that you've survived all of these steps, you can use dfu-util:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% dfu-util -a kernel -R -D ~/Desktop/netbsd.boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD under Qemu ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/qemu-neo1973; qemu-neo1973 -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's a [[:Image:Netbsd-evbarm-neo1973.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
I made small progress and now have ramdisk, usb device from qemu and draw_test_pattern to lcd. Here's the [[:Image:Netbsd-evbarm-neo1973-lcd.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Progress again, active in a nfs boot.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
We have netboot and uname -a.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot-uname.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Here's the accompanying 20071017 [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  syssrc]] and [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  kernel image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-21T19:52:54Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Prebuild NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers. Still, it's derived from the longstanding SMDK2410 kernel, given the Neo1973 is [http://wiki.openmoko.org/wiki/QT2410 Armzone QT2410], so SMDK2410, based.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071017&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071017.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071017.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071017 (netboot)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071017.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071017.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-20071017 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD on the Neo ===&lt;br /&gt;
&lt;br /&gt;
First, please note that NetBSD isn't actually known to work on the Neo, so your mileage here may vary quite a bit.   Having said that, if you want to try to boot NetBSD, it's pretty easy.&lt;br /&gt;
&lt;br /&gt;
First, NetBSD requires a larger kernel partition than Linux.   I think this is because NetBSD is a statically-linked kernel, whereas Linux pulls modules out of the jffs partition, but that's just a theory.   Also, NetBSD will tend to come with a ramdisk, which is part of the kernel image.&lt;br /&gt;
&lt;br /&gt;
Anyway, to rearrange the partitions, you will need to get into the u-boot console.   How you do this varies depending on the operating system you are running.   On NetBSD, you're going to type something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% screen /dev/tty.usbmodem00000001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you see a prompt like this, you're in business:&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 #&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can dump the current partition table like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 # mtdparts&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will print a list of partitions and some other information; it might be a good idea to make a copy if you want to install Linux later and don't want to keep the larger kernel partition size.&lt;br /&gt;
&lt;br /&gt;
To change the partition table, you're going to have to delete all the partitions from the kernel onward, and then re-add them.   When you do this, beware: you're going to wipe out the nice boot splash screen.   It has its own partition, which you are going to move.   So after you've made this change, you're going to see a dead black splash screen when the phone boots, which you may find alarming.   Don't say you weren't warned.   Also, please read the full instructions here before proceeding - don't just blindly start typing now.&lt;br /&gt;
&lt;br /&gt;
Okay, you've gathered your courage and are ready to go for it.   Here are the commands you need, first to delete the partitions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts del kernel&lt;br /&gt;
GTA01Bv4 # mtdparts del splash&lt;br /&gt;
GTA01Bv4 # mtdparts del rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then to add the new ones:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x300000 kernel&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x0a0000 splash&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x3a1c000 rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As far as I can tell there's no way to get mtdparts to say &amp;quot;use the rest of the flash memory for this partition.&amp;quot;   Sorry about that.   So you just have to do the math.   Also, the amount of space a partition consumes changes if there are bad blocks in it.   So you may have to fiddle around with the size of the rootfs partition.   You can check to see how the partition table came out like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts&lt;br /&gt;
&lt;br /&gt;
device nand0 &amp;lt;neo1973-nand&amp;gt;, # parts = 5&lt;br /&gt;
 #: name                        size            offset          mask_flags&lt;br /&gt;
 0: u-boot              0x00040000      0x00000000      0&lt;br /&gt;
 1: u-boot_env          0x00004000      0x00040000      0&lt;br /&gt;
 2: kernel              0x00214000      0x00044000      0&lt;br /&gt;
 3: splash              0x000a0000      0x00258000      0&lt;br /&gt;
 4: rootfs              0x03a1c000      0x002f8000      0&lt;br /&gt;
&lt;br /&gt;
active partition: nand0,0 - (u-boot) 0x00040000 @ 0x00000000&lt;br /&gt;
&lt;br /&gt;
defaults:&lt;br /&gt;
mtdids  : nand0=neo1973-nand&lt;br /&gt;
mtdparts: &amp;lt;NULL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, you haven't actually changed anything yet - if you power cycle the phone at this point, the partition table will go back to the way it was.   To make it permanent, you have to save it to flash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # saveenv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is obvious, but I'll say it anyway: don't delete the u-boot or u-boot_env partitions.   If you do, you'll probably brick your phone.   Heck, you'll probably brick your phone anyway.   I told you you needed to be brave, didn't I?&lt;br /&gt;
&lt;br /&gt;
Now, to install the kernel, assuming that you've survived all of these steps, you can use dfu-util:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% dfu-util -a kernel -R -D ~/Desktop/netbsd.boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD under Qemu ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's a [[:Image:Netbsd-evbarm-neo1973.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
I made small progress and now have ramdisk, usb device from qemu and draw_test_pattern to lcd. Here's the [[:Image:Netbsd-evbarm-neo1973-lcd.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Progress again, active in a nfs boot.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
We have netboot and uname -a.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot-uname.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Here's the accompanying 20071017 [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  syssrc]] and [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  kernel image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-21T19:51:15Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Building NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers. Still, it's derived from the longstanding SMDK2410 kernel, given the Neo1973 is [http://wiki.openmoko.org/wiki/QT2410 Armzone QT2410], so SMDK2410, based.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071017&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071017.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071017.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD on the Neo ===&lt;br /&gt;
&lt;br /&gt;
First, please note that NetBSD isn't actually known to work on the Neo, so your mileage here may vary quite a bit.   Having said that, if you want to try to boot NetBSD, it's pretty easy.&lt;br /&gt;
&lt;br /&gt;
First, NetBSD requires a larger kernel partition than Linux.   I think this is because NetBSD is a statically-linked kernel, whereas Linux pulls modules out of the jffs partition, but that's just a theory.   Also, NetBSD will tend to come with a ramdisk, which is part of the kernel image.&lt;br /&gt;
&lt;br /&gt;
Anyway, to rearrange the partitions, you will need to get into the u-boot console.   How you do this varies depending on the operating system you are running.   On NetBSD, you're going to type something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% screen /dev/tty.usbmodem00000001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you see a prompt like this, you're in business:&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 #&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can dump the current partition table like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 # mtdparts&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will print a list of partitions and some other information; it might be a good idea to make a copy if you want to install Linux later and don't want to keep the larger kernel partition size.&lt;br /&gt;
&lt;br /&gt;
To change the partition table, you're going to have to delete all the partitions from the kernel onward, and then re-add them.   When you do this, beware: you're going to wipe out the nice boot splash screen.   It has its own partition, which you are going to move.   So after you've made this change, you're going to see a dead black splash screen when the phone boots, which you may find alarming.   Don't say you weren't warned.   Also, please read the full instructions here before proceeding - don't just blindly start typing now.&lt;br /&gt;
&lt;br /&gt;
Okay, you've gathered your courage and are ready to go for it.   Here are the commands you need, first to delete the partitions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts del kernel&lt;br /&gt;
GTA01Bv4 # mtdparts del splash&lt;br /&gt;
GTA01Bv4 # mtdparts del rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then to add the new ones:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x300000 kernel&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x0a0000 splash&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x3a1c000 rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As far as I can tell there's no way to get mtdparts to say &amp;quot;use the rest of the flash memory for this partition.&amp;quot;   Sorry about that.   So you just have to do the math.   Also, the amount of space a partition consumes changes if there are bad blocks in it.   So you may have to fiddle around with the size of the rootfs partition.   You can check to see how the partition table came out like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts&lt;br /&gt;
&lt;br /&gt;
device nand0 &amp;lt;neo1973-nand&amp;gt;, # parts = 5&lt;br /&gt;
 #: name                        size            offset          mask_flags&lt;br /&gt;
 0: u-boot              0x00040000      0x00000000      0&lt;br /&gt;
 1: u-boot_env          0x00004000      0x00040000      0&lt;br /&gt;
 2: kernel              0x00214000      0x00044000      0&lt;br /&gt;
 3: splash              0x000a0000      0x00258000      0&lt;br /&gt;
 4: rootfs              0x03a1c000      0x002f8000      0&lt;br /&gt;
&lt;br /&gt;
active partition: nand0,0 - (u-boot) 0x00040000 @ 0x00000000&lt;br /&gt;
&lt;br /&gt;
defaults:&lt;br /&gt;
mtdids  : nand0=neo1973-nand&lt;br /&gt;
mtdparts: &amp;lt;NULL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, you haven't actually changed anything yet - if you power cycle the phone at this point, the partition table will go back to the way it was.   To make it permanent, you have to save it to flash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # saveenv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is obvious, but I'll say it anyway: don't delete the u-boot or u-boot_env partitions.   If you do, you'll probably brick your phone.   Heck, you'll probably brick your phone anyway.   I told you you needed to be brave, didn't I?&lt;br /&gt;
&lt;br /&gt;
Now, to install the kernel, assuming that you've survived all of these steps, you can use dfu-util:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% dfu-util -a kernel -R -D ~/Desktop/netbsd.boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD under Qemu ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's a [[:Image:Netbsd-evbarm-neo1973.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
I made small progress and now have ramdisk, usb device from qemu and draw_test_pattern to lcd. Here's the [[:Image:Netbsd-evbarm-neo1973-lcd.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Progress again, active in a nfs boot.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
We have netboot and uname -a.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot-uname.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Here's the accompanying 20071017 [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  syssrc]] and [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  kernel image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/User:Noud</id>
		<title>User:Noud</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/User:Noud"/>
				<updated>2007-10-20T16:06:02Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Main goal..to get [http://netbsd.org NetBSD] running on-top [[Neo1973]] hardware ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I did port [http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/dfu-util/ dfu-util], u-boot's [http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/u-boot/ mkimage], [http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/mtd-utils/ mtd-utils] and [http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/qemu-neo1973 qemu-neo1973] to [http://netbsd.org NetBSD].&lt;br /&gt;
&lt;br /&gt;
I have an experimental [[NetBSD|NetBSD/evbarm Neo1973 kernel]] booting on [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]], booting from the network or a ramdisk.&lt;br /&gt;
&lt;br /&gt;
You can make me happy by trying this [[NetBSD#Prebuild_NetBSD|NetBSD kernel]] on-top real Neo1973 hardware..and post, send or show the dmesg ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e: noud4 - home.nl&lt;br /&gt;
&lt;br /&gt;
l: the [[OpenMoko_Local_Groups:_Netherlands|Netherlands]], near [[OpenMoko_Local_Groups:_Eindhoven|Eindhoven]]/Tilburg&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/Talk:Userspace_root_image</id>
		<title>Talk:Userspace root image</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/Talk:Userspace_root_image"/>
				<updated>2007-10-20T15:52:48Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== mkfs.jffs2 and others from mtd-utils on NetBSD ==&lt;br /&gt;
&lt;br /&gt;
1. fetch pkgsrc from http://pkgsrc.org&lt;br /&gt;
&lt;br /&gt;
2. fetch wip from http://pkgsrc-wip.sourceforge.net&lt;br /&gt;
&lt;br /&gt;
3. build package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/pkgsrc/wip/mtd-utils; make package&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use mkfs.jffs2 to create a root file system image for storage in NAND flash.&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-20T13:23:51Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD on Neo1973 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers. Still, it's derived from the longstanding SMDK2410 kernel, given the Neo1973 is [http://wiki.openmoko.org/wiki/QT2410 Armzone QT2410], so SMDK2410, based.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD on the Neo ===&lt;br /&gt;
&lt;br /&gt;
First, please note that NetBSD isn't actually known to work on the Neo, so your mileage here may vary quite a bit.   Having said that, if you want to try to boot NetBSD, it's pretty easy.&lt;br /&gt;
&lt;br /&gt;
First, NetBSD requires a larger kernel partition than Linux.   I think this is because NetBSD is a statically-linked kernel, whereas Linux pulls modules out of the jffs partition, but that's just a theory.   Also, NetBSD will tend to come with a ramdisk, which is part of the kernel image.&lt;br /&gt;
&lt;br /&gt;
Anyway, to rearrange the partitions, you will need to get into the u-boot console.   How you do this varies depending on the operating system you are running.   On NetBSD, you're going to type something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% screen /dev/tty.usbmodem00000001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you see a prompt like this, you're in business:&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 #&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can dump the current partition table like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 # mtdparts&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will print a list of partitions and some other information; it might be a good idea to make a copy if you want to install Linux later and don't want to keep the larger kernel partition size.&lt;br /&gt;
&lt;br /&gt;
To change the partition table, you're going to have to delete all the partitions from the kernel onward, and then re-add them.   When you do this, beware: you're going to wipe out the nice boot splash screen.   It has its own partition, which you are going to move.   So after you've made this change, you're going to see a dead black splash screen when the phone boots, which you may find alarming.   Don't say you weren't warned.   Also, please read the full instructions here before proceeding - don't just blindly start typing now.&lt;br /&gt;
&lt;br /&gt;
Okay, you've gathered your courage and are ready to go for it.   Here are the commands you need, first to delete the partitions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts del kernel&lt;br /&gt;
GTA01Bv4 # mtdparts del splash&lt;br /&gt;
GTA01Bv4 # mtdparts del rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then to add the new ones:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x300000 kernel&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x0a0000 splash&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x3a1c000 rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As far as I can tell there's no way to get mtdparts to say &amp;quot;use the rest of the flash memory for this partition.&amp;quot;   Sorry about that.   So you just have to do the math.   Also, the amount of space a partition consumes changes if there are bad blocks in it.   So you may have to fiddle around with the size of the rootfs partition.   You can check to see how the partition table came out like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts&lt;br /&gt;
&lt;br /&gt;
device nand0 &amp;lt;neo1973-nand&amp;gt;, # parts = 5&lt;br /&gt;
 #: name                        size            offset          mask_flags&lt;br /&gt;
 0: u-boot              0x00040000      0x00000000      0&lt;br /&gt;
 1: u-boot_env          0x00004000      0x00040000      0&lt;br /&gt;
 2: kernel              0x00214000      0x00044000      0&lt;br /&gt;
 3: splash              0x000a0000      0x00258000      0&lt;br /&gt;
 4: rootfs              0x03a1c000      0x002f8000      0&lt;br /&gt;
&lt;br /&gt;
active partition: nand0,0 - (u-boot) 0x00040000 @ 0x00000000&lt;br /&gt;
&lt;br /&gt;
defaults:&lt;br /&gt;
mtdids  : nand0=neo1973-nand&lt;br /&gt;
mtdparts: &amp;lt;NULL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, you haven't actually changed anything yet - if you power cycle the phone at this point, the partition table will go back to the way it was.   To make it permanent, you have to save it to flash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # saveenv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is obvious, but I'll say it anyway: don't delete the u-boot or u-boot_env partitions.   If you do, you'll probably brick your phone.   Heck, you'll probably brick your phone anyway.   I told you you needed to be brave, didn't I?&lt;br /&gt;
&lt;br /&gt;
Now, to install the kernel, assuming that you've survived all of these steps, you can use dfu-util:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% dfu-util -a kernel -R -D ~/Desktop/netbsd.boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD under Qemu ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's a [[:Image:Netbsd-evbarm-neo1973.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
I made small progress and now have ramdisk, usb device from qemu and draw_test_pattern to lcd. Here's the [[:Image:Netbsd-evbarm-neo1973-lcd.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Progress again, active in a nfs boot.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
We have netboot and uname -a.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot-uname.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Here's the accompanying 20071017 [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  syssrc]] and [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  kernel image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-17T20:55:00Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD under Qemu */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD on the Neo ===&lt;br /&gt;
&lt;br /&gt;
First, please note that NetBSD isn't actually known to work on the Neo, so your mileage here may vary quite a bit.   Having said that, if you want to try to boot NetBSD, it's pretty easy.&lt;br /&gt;
&lt;br /&gt;
First, NetBSD requires a larger kernel partition than Linux.   I think this is because NetBSD is a statically-linked kernel, whereas Linux pulls modules out of the jffs partition, but that's just a theory.   Also, NetBSD will tend to come with a ramdisk, which is part of the kernel image.&lt;br /&gt;
&lt;br /&gt;
Anyway, to rearrange the partitions, you will need to get into the u-boot console.   How you do this varies depending on the operating system you are running.   On NetBSD, you're going to type something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% screen /dev/tty.usbmodem00000001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you see a prompt like this, you're in business:&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 #&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can dump the current partition table like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 # mtdparts&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will print a list of partitions and some other information; it might be a good idea to make a copy if you want to install Linux later and don't want to keep the larger kernel partition size.&lt;br /&gt;
&lt;br /&gt;
To change the partition table, you're going to have to delete all the partitions from the kernel onward, and then re-add them.   When you do this, beware: you're going to wipe out the nice boot splash screen.   It has its own partition, which you are going to move.   So after you've made this change, you're going to see a dead black splash screen when the phone boots, which you may find alarming.   Don't say you weren't warned.   Also, please read the full instructions here before proceeding - don't just blindly start typing now.&lt;br /&gt;
&lt;br /&gt;
Okay, you've gathered your courage and are ready to go for it.   Here are the commands you need, first to delete the partitions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts del kernel&lt;br /&gt;
GTA01Bv4 # mtdparts del splash&lt;br /&gt;
GTA01Bv4 # mtdparts del rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then to add the new ones:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x300000 kernel&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x0a0000 splash&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x3a1c000 rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As far as I can tell there's no way to get mtdparts to say &amp;quot;use the rest of the flash memory for this partition.&amp;quot;   Sorry about that.   So you just have to do the math.   Also, the amount of space a partition consumes changes if there are bad blocks in it.   So you may have to fiddle around with the size of the rootfs partition.   You can check to see how the partition table came out like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts&lt;br /&gt;
&lt;br /&gt;
device nand0 &amp;lt;neo1973-nand&amp;gt;, # parts = 5&lt;br /&gt;
 #: name                        size            offset          mask_flags&lt;br /&gt;
 0: u-boot              0x00040000      0x00000000      0&lt;br /&gt;
 1: u-boot_env          0x00004000      0x00040000      0&lt;br /&gt;
 2: kernel              0x00214000      0x00044000      0&lt;br /&gt;
 3: splash              0x000a0000      0x00258000      0&lt;br /&gt;
 4: rootfs              0x03a1c000      0x002f8000      0&lt;br /&gt;
&lt;br /&gt;
active partition: nand0,0 - (u-boot) 0x00040000 @ 0x00000000&lt;br /&gt;
&lt;br /&gt;
defaults:&lt;br /&gt;
mtdids  : nand0=neo1973-nand&lt;br /&gt;
mtdparts: &amp;lt;NULL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, you haven't actually changed anything yet - if you power cycle the phone at this point, the partition table will go back to the way it was.   To make it permanent, you have to save it to flash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # saveenv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is obvious, but I'll say it anyway: don't delete the u-boot or u-boot_env partitions.   If you do, you'll probably brick your phone.   Heck, you'll probably brick your phone anyway.   I told you you needed to be brave, didn't I?&lt;br /&gt;
&lt;br /&gt;
Now, to install the kernel, assuming that you've survived all of these steps, you can use dfu-util:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% dfu-util -a kernel -R -D ~/Desktop/netbsd.boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD under Qemu ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's a [[:Image:Netbsd-evbarm-neo1973.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
I made small progress and now have ramdisk, usb device from qemu and draw_test_pattern to lcd. Here's the [[:Image:Netbsd-evbarm-neo1973-lcd.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Progress again, active in a nfs boot.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
We have netboot and uname -a.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot-uname.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Here's the accompanying 20071017 [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  syssrc]] and [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914  kernel image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-17T01:59:11Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD on the Neo ===&lt;br /&gt;
&lt;br /&gt;
First, please note that NetBSD isn't actually known to work on the Neo, so your mileage here may vary quite a bit.   Having said that, if you want to try to boot NetBSD, it's pretty easy.&lt;br /&gt;
&lt;br /&gt;
First, NetBSD requires a larger kernel size than Linux.   I think this is because NetBSD is a full kernel, whereas Linux pulls modules out of the jffs partition, but that's just a theory.   Also, NetBSD will tend to come with a ramdisk, which is linked into the kernel and part of the kernel, and is very useful for diskless boots.&lt;br /&gt;
&lt;br /&gt;
Anyway, to rearrange the partitions, you will need to get into the u-boot console.   How you do this varies depending on the operating system you are running.   On NetBSD, you're going to type something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% screen /dev/tty.usbmodem00000001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you see a prompt like this, you're in business:&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 #&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can dump the current partition table like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GTA01Bv4 # mtdparts&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will print a list of partitions and some other information; it might be a good idea to make a copy if you want to install Linux later and don't want to keep the larger kernel partition size.&lt;br /&gt;
&lt;br /&gt;
To change the partition table, you're going to have to delete all the partitions from the kernel onward, and then re-add them.   When you do this, beware: you're going to wipe out the nice boot splash screen.   It has its own partition, which you are going to move.   So after you've made this change, you're going to see a dead black splash screen when the phone boots, which you may find alarming.   Don't say you weren't warned.&lt;br /&gt;
&lt;br /&gt;
Okay, you've gathered your courage and are ready to go for it.   Here are the commands you need, first to delete the partitions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts del kernel&lt;br /&gt;
GTA01Bv4 # mtdparts del splash&lt;br /&gt;
GTA01Bv4 # mtdparts del rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then to add the new ones:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x300000 kernel&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x0a0000 splash&lt;br /&gt;
GTA01Bv4 # mtdparts add nand0 0x3a1c000 rootfs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As far as I can tell there's no way to get mtdparts to say &amp;quot;use the rest of the flash memory for this partition.&amp;quot;   Sorry about that.   So you just have to do the math.   Also, the amount of space a partition consumes changes if there are bad blocks in it.   So you may have to fiddle around with the size of the rootfs partition.   You can check to see how the partition table came out like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # mtdparts&lt;br /&gt;
&lt;br /&gt;
device nand0 &amp;lt;neo1973-nand&amp;gt;, # parts = 5&lt;br /&gt;
 #: name                        size            offset          mask_flags&lt;br /&gt;
 0: u-boot              0x00040000      0x00000000      0&lt;br /&gt;
 1: u-boot_env          0x00004000      0x00040000      0&lt;br /&gt;
 2: kernel              0x00214000      0x00044000      0&lt;br /&gt;
 3: splash              0x000a0000      0x00258000      0&lt;br /&gt;
 4: rootfs              0x03a1c000      0x002f8000      0&lt;br /&gt;
&lt;br /&gt;
active partition: nand0,0 - (u-boot) 0x00040000 @ 0x00000000&lt;br /&gt;
&lt;br /&gt;
defaults:&lt;br /&gt;
mtdids  : nand0=neo1973-nand&lt;br /&gt;
mtdparts: &amp;lt;NULL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, you haven't actually changed anything yet - if you power cycle the phone at this point, the partition table will go back to the way it was.   To make it permanent, you have to save it to flash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GTA01Bv4 # saveenv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is obvious, but I'll say it anyway: don't delete the u-boot or u-boot_env partitions.   If you do, you'll probably brick your phone.   Heck, you'll probably brick your phone anyway.   I told you you needed to be brave, didn't I?&lt;br /&gt;
&lt;br /&gt;
Now, to install the kernel, assuming that you've survived all of these steps, you can use dfu-util:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uma% dfu-util -a kernel -R -D ~/Desktop/netbsd.boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD under Qemu ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's a [[:Image:Netbsd-evbarm-neo1973.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
I made small progress and now have ramdisk, usb device from qemu and draw_test_pattern to lcd. Here's the [[:Image:Netbsd-evbarm-neo1973-lcd.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Progress again, active in a nfs boot.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
We have netboot and uname -a.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot-uname.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-16T23:24:19Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's a [[:Image:Netbsd-evbarm-neo1973.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
I made small progress and now have ramdisk, usb device from qemu and draw_test_pattern to lcd. Here's the [[:Image:Netbsd-evbarm-neo1973-lcd.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
Progress again, active in a nfs boot.&lt;br /&gt;
[[:Image:Netbsd-evbarm-neo1973-nfs_boot.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-16T18:59:58Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's a [[:Image:Netbsd-evbarm-neo1973.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
I made small progress and now have ramdisk, usb device from qemu and draw_test_pattern to lcd. Here's the [[:Image:Netbsd-evbarm-neo1973-lcd.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-16T18:18:16Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's a [[:Image:Netbsd-evbarm-neo1973.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
I made small progress and now have ramdisk, usb device from qemu and testpicture to the lcd. Here's the [[:Image:Netbsd-evbarm-neo1973-lcd.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/Other_OSes</id>
		<title>Other OSes</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/Other_OSes"/>
				<updated>2007-10-14T09:40:16Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* FreeBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are two areas in which other OSes can take a part in OpenMoko.&lt;br /&gt;
First, not everybody will use Linux to download (and/or develop) software into their phones; we call this the Host OS.&lt;br /&gt;
Secondly, it is possible that some people may wish to run alternate OSes on their phone itself.&lt;br /&gt;
&lt;br /&gt;
== Alternate Host OS ==&lt;br /&gt;
&lt;br /&gt;
=== Microsoft Windows ===&lt;br /&gt;
&lt;br /&gt;
(link to this page...)&lt;br /&gt;
&lt;br /&gt;
=== Mac OS X ===&lt;br /&gt;
&lt;br /&gt;
Covered elsewhere; see [[MacOS_X]]. They have dfu-util and ether-gadget working.&lt;br /&gt;
&lt;br /&gt;
=== FreeBSD ===&lt;br /&gt;
&lt;br /&gt;
qemu-neo1973 works see [[Talk:OpenMoko_under_QEMU#FreeBSD_and_last_qemu...]]. Nothing else known. See [[FreeBSD]]&lt;br /&gt;
&lt;br /&gt;
=== NetBSD ===&lt;br /&gt;
&lt;br /&gt;
We have an experimental [[NetBSD|NetBSD/evbarm Neo1973 kernel]] booting on [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]].&lt;br /&gt;
&lt;br /&gt;
=== OpenBSD ===&lt;br /&gt;
&lt;br /&gt;
The umodem(4) driver works with the u-boot console. When the umodem driver claims device 0x1457:0x5118, it becomes inaccessible to libusb-based applications such as dfu-util. The cdce(4) driver works &amp;quot;out of the box&amp;quot; with OpenMoko's ethergadget interface, so you can ssh in, run remote X clients, scp in or out, etc.&lt;br /&gt;
&lt;br /&gt;
[[User:Idarwin|Ian Darwin]] has a port of dfu-util partly working (list works but not download).&lt;br /&gt;
&lt;br /&gt;
== Alternate Software In the Neo Phone ==&lt;br /&gt;
&lt;br /&gt;
The OpenMoko project has invested a lot of time &amp;amp; energy in making the OpenMoko software stack work nicely on the Neo1973 phone. But it is your phone and, unlike most providers, they will not stop you from running whatever you like on the &amp;quot;bare metal&amp;quot; of the phone itself. And some people are never satisfied with a device until they've flashed the firmware multiple times. Here are some alternatives.&lt;br /&gt;
&lt;br /&gt;
=== Other Linux Distros ===&lt;br /&gt;
&lt;br /&gt;
* JavaFX Mobile -- At JavaOne, Sun demonstrated JavaFX running in the phone. Although based on a similar Linux kernel, this is a completely different user-mode stack.&lt;br /&gt;
*[[Angstrom_on_Neo1973|Angstrom]]&lt;br /&gt;
*[http://www.o-hand.com OpenedHand] provides http://pokylinux.org/&lt;br /&gt;
&lt;br /&gt;
=== Windows CE? ===&lt;br /&gt;
&lt;br /&gt;
Windows CE runs on some Arm-based handhelds, so it is theoretically possible.&lt;br /&gt;
&lt;br /&gt;
=== Other OSes? ===&lt;br /&gt;
&lt;br /&gt;
Anything other than Linux or WinCE?&lt;br /&gt;
&lt;br /&gt;
e.g. OpenBSD or maybe [[FreeBSD]] or [[NetBSD]]?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer software]]&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/Other_OSes</id>
		<title>Other OSes</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/Other_OSes"/>
				<updated>2007-10-14T09:27:10Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Other OSes? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are two areas in which other OSes can take a part in OpenMoko.&lt;br /&gt;
First, not everybody will use Linux to download (and/or develop) software into their phones; we call this the Host OS.&lt;br /&gt;
Secondly, it is possible that some people may wish to run alternate OSes on their phone itself.&lt;br /&gt;
&lt;br /&gt;
== Alternate Host OS ==&lt;br /&gt;
&lt;br /&gt;
=== Microsoft Windows ===&lt;br /&gt;
&lt;br /&gt;
(link to this page...)&lt;br /&gt;
&lt;br /&gt;
=== Mac OS X ===&lt;br /&gt;
&lt;br /&gt;
Covered elsewhere; see [[MacOS_X]]. They have dfu-util and ether-gadget working.&lt;br /&gt;
&lt;br /&gt;
=== FreeBSD ===&lt;br /&gt;
&lt;br /&gt;
qemu-neo1973 works see [[Talk:OpenMoko_under_QEMU#FreeBSD_and_last_qemu...]]. Nothing else known. See [[FreeBSD]]&lt;br /&gt;
&lt;br /&gt;
=== OpenBSD ===&lt;br /&gt;
&lt;br /&gt;
The umodem(4) driver works with the u-boot console. When the umodem driver claims device 0x1457:0x5118, it becomes inaccessible to libusb-based applications such as dfu-util. The cdce(4) driver works &amp;quot;out of the box&amp;quot; with OpenMoko's ethergadget interface, so you can ssh in, run remote X clients, scp in or out, etc.&lt;br /&gt;
&lt;br /&gt;
[[User:Idarwin|Ian Darwin]] has a port of dfu-util partly working (list works but not download).&lt;br /&gt;
&lt;br /&gt;
== Alternate Software In the Neo Phone ==&lt;br /&gt;
&lt;br /&gt;
The OpenMoko project has invested a lot of time &amp;amp; energy in making the OpenMoko software stack work nicely on the Neo1973 phone. But it is your phone and, unlike most providers, they will not stop you from running whatever you like on the &amp;quot;bare metal&amp;quot; of the phone itself. And some people are never satisfied with a device until they've flashed the firmware multiple times. Here are some alternatives.&lt;br /&gt;
&lt;br /&gt;
=== Other Linux Distros ===&lt;br /&gt;
&lt;br /&gt;
* JavaFX Mobile -- At JavaOne, Sun demonstrated JavaFX running in the phone. Although based on a similar Linux kernel, this is a completely different user-mode stack.&lt;br /&gt;
*[[Angstrom_on_Neo1973|Angstrom]]&lt;br /&gt;
*[http://www.o-hand.com OpenedHand] provides http://pokylinux.org/&lt;br /&gt;
&lt;br /&gt;
=== Windows CE? ===&lt;br /&gt;
&lt;br /&gt;
Windows CE runs on some Arm-based handhelds, so it is theoretically possible.&lt;br /&gt;
&lt;br /&gt;
=== Other OSes? ===&lt;br /&gt;
&lt;br /&gt;
Anything other than Linux or WinCE?&lt;br /&gt;
&lt;br /&gt;
e.g. OpenBSD or maybe [[FreeBSD]] or [[NetBSD]]?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer software]]&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-11T19:26:14Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's a [[:Image:Netbsd-evbarm-neo1973.png|screenshot]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/Talk:Openmoko_under_QEMU</id>
		<title>Talk:Openmoko under QEMU</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/Talk:Openmoko_under_QEMU"/>
				<updated>2007-10-10T21:59:45Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* NetBSD/i386 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Broken Link ==&lt;br /&gt;
Under the header Pre-built binaries on this page the link to the zip file is broken.&lt;br /&gt;
&lt;br /&gt;
--[[User:Kodafox|Kodafox]] 18:59, 28 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Error connecting ==&lt;br /&gt;
If you get an error like&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh: connect to host 192.168.0.202 port 22: No route to host&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you try to ssh, it could most probably be because one of your other network interfaces (wired/wireless) is being assigned an IP address of the form 192.168.0.* ,because of which the routing table contains a default gateway entry that is confusing poor new usb0 interface.&lt;br /&gt;
&lt;br /&gt;
The easiest way to work around this is to specify a tighter netmask for usb0 like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo ifconfig usb0 inet 192.168.0.200 netmask 255.255.255.240&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
[[User:Skn|Skn]] 18:50, 5 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Debian Sid ==&lt;br /&gt;
&lt;br /&gt;
under Debian Sid. I have to change slightly openmoko/env and openmoko/download.sh to make it run on Linux:&lt;br /&gt;
* in openmoko/env s/make=gmake/make=make/&lt;br /&gt;
* in openmoko/download.sh changed line 34 to:  files=`lynx -dump $download_dir | grep http | sed &amp;quot;s,[0-9 \t\.]*$download_dir\([a-zA-Z0-9_\.-]\)[ \t]*,\1,&amp;quot;` &lt;br /&gt;
[[User:Any Key|Any Key]] 14:16, 4 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Thanks, hopefully should be fixed. make was changed to gmake in the first place to account for BSD.[[User:Balrog|balrog]] 23:11, 5 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Gentoo, AMD64 ==&lt;br /&gt;
&lt;br /&gt;
Where can I report bugs in QEMU-Neo1973? It fails to compile:&lt;br /&gt;
 /server/projects/openmoko/qemu-neo1973/target-arm/op.c: In function 'op_iwmmxt_movq_wRn_M0':&lt;br /&gt;
 /server/projects/openmoko/qemu-neo1973/target-arm/op.c:1374: error: unable to find a register to spill in class 'GENERAL_REGS'&lt;br /&gt;
--[[User:Zbraniecki|Zbraniecki]] 12:52, 7 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
:I assume you're using gcc4 (gcc-config -l). Qemu fails to build if you use gcc4 as it only builds with gcc3 at this time. More information:&lt;br /&gt;
http://gentoo-wiki.com/HOWTO:_Qemu&lt;br /&gt;
&lt;br /&gt;
http://kidsquid.com/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-1dd86241b11d36963df140c9f6ab46ef402d4244 &lt;br /&gt;
&lt;br /&gt;
http://bugs.gentoo.org/show_bug.cgi?id=132667&lt;br /&gt;
&lt;br /&gt;
How to do a downgrade to gcc3 just for Qemu: http://forums.gentoo.org/viewtopic-t-537643-highlight-qemu.html - be aware, though, that the kernel modules may not load if you built the kernel with gcc4, so a kernel recompilation may be in order also. [[User:Abraxa|Abraxa]] 19:38, 7 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
I encountered the same problem, but I still had a gcc3 installed (gcc-3.4.6-r1 in a seperate slot from the system default gcc4, to be exact. This means that if you're using gentoo, you will '''not''' need to downgrade your system gcc). I simply added --cc=gcc-3.4.6 to ./configure's switches and make finished without major problems. --[[User:LordHelmchen|LordHelmchen]] 20:12, 11 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
If you still encounter this problem with gcc3, make sure you don't have -march set anywhere like in CFLAGS (I had -march=athlon-xp). unsetting CFLAGS before re-running the configure script solved the problem for me. --[[User:Vegar|Vegar]] 22:10, 24 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
If nothing else works, you should try to use gcc-3.3.* (tested using the x86-chroot as building environment) --[[User:Mathias|Mathias]]&lt;br /&gt;
&lt;br /&gt;
== Basic question ==&lt;br /&gt;
&lt;br /&gt;
I am using the emulator after compiling 'make qemu'.&lt;br /&gt;
The basic gui screen has been created and it asks the following:&lt;br /&gt;
&lt;br /&gt;
'Touch the crosshairs to calibrate the screen'&lt;br /&gt;
&lt;br /&gt;
Unfortunately I do not know how to continue from this stage on...&lt;br /&gt;
Any mouse click on the crosshairs, or a keyboard touch won't initiate a click...&lt;br /&gt;
&lt;br /&gt;
Does any body know how can I click the emulator screen and continue from this stage? --[[User:nighthawk|nighthawk]] 01:12, 9 April 2007&lt;br /&gt;
&lt;br /&gt;
I use mouse click and it works --[[User:Filippo|Filippo]] 22:16, 8 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
I find a single click will not register. Which makes sense if you think about a fingerpress on the screen. I hold down the mouse and wiggle it a bit to get the buttons to register. -- DonPark 8Apr07&lt;br /&gt;
&lt;br /&gt;
Still got problem with enabling the mouse. I tried according to the QEMU guide to see which mice are available under what I used. (ALT-CTRL-2, command 'mice info') and there was only the following:&lt;br /&gt;
* Mouse #0: QEMU S3C2410-driven Touchscreen&lt;br /&gt;
&lt;br /&gt;
Does anybody got the same problem as I got?&lt;br /&gt;
--[[User:nighthawk|nighthawk]] 04:14am, 9 April 2007&lt;br /&gt;
&lt;br /&gt;
Please see http://lists.openmoko.org/pipermail/openmoko-devel/2007-April/000837.html [[User:Balrog|balrog]] 01:20, 18 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== FreeBSD and Qemu... ==&lt;br /&gt;
&lt;br /&gt;
1. Comment lines 49 and 50 in file gnokiigsm/device.h&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//size_t device_read(__ptr_t buf, size_t nbytes, struct gn_statemachine *state);&lt;br /&gt;
//size_t device_write(const __ptr_t buf, size_t n, struct gn_statemachine *state);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Compile all with gmake&lt;br /&gt;
&lt;br /&gt;
3. as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#kldload aio&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Have fun :)&lt;br /&gt;
&lt;br /&gt;
(MokoMakefile ist too Linux specific to work on FreeBSD&lt;br /&gt;
&lt;br /&gt;
== NetBSD/i386 ==&lt;br /&gt;
To get the [[Talk:OpenMoko_under_QEMU#Qemu_Neo1973_emulator_on_NetBSD|Qemu Neo1973 emulator on NetBSD]]:&lt;br /&gt;
&lt;br /&gt;
1. fetch pkgsrc from http://pkgsrc.org&lt;br /&gt;
&lt;br /&gt;
2. fetch wip from http://pkgsrc-wip.sourceforge.net&lt;br /&gt;
&lt;br /&gt;
3. build package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/pkgsrc/wip/qemu-neo1973; make package&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshots showing [[OpenMoko|Linux OpenMoko]] booting on [[Talk:OpenMoko_under_QEMU#Qemu_Neo1973_emulator_on_NetBSD|Qemu Neo1973 emulator on NetBSD]]:&lt;br /&gt;
[[:Image:Netbsd-openmoko000.png|0]]&lt;br /&gt;
[[:Image:Netbsd-openmoko001.png|1]]&lt;br /&gt;
[[:Image:Netbsd-openmoko002.png|2]]&lt;br /&gt;
[[:Image:Netbsd-openmoko003.png|3]]&lt;br /&gt;
[[:Image:Netbsd-openmoko004.png|4]]&lt;br /&gt;
[[:Image:Netbsd-openmoko004.png|5]]&lt;br /&gt;
..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
note:&lt;br /&gt;
there's an experimental [[NetBSD|NetBSD/evbarm Neo1973 kernel]] booting on [[Talk:OpenMoko_under_QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]]&lt;br /&gt;
&lt;br /&gt;
== flash.sh fails ==&lt;br /&gt;
Try installing lynx (sudo apt-get install lynx) and run the openmoko/download.sh again,&lt;br /&gt;
then it should work.&lt;br /&gt;
&lt;br /&gt;
===question/answers===&lt;br /&gt;
&lt;br /&gt;
looks like I'm somehow getting a variable confused... when I try to run flash.sh with no arguments, I get a bunch of errors from sleep telling me that items such as `nand' for instance is an invalid time.  I've encountered this problem both from the makefile and from a manual download.  From what I can deduce, $2 should contain the number of (micro?)seconds for sleep to wait, but it looks like there's a target list, or some series of commands that are getting crosswired in.&lt;br /&gt;
&lt;br /&gt;
If it helps, I'm running ubuntu fiesty X64 &lt;br /&gt;
&lt;br /&gt;
any help would be appreciated&lt;br /&gt;
&lt;br /&gt;
Thank you,&lt;br /&gt;
&lt;br /&gt;
--[[User:JeffAndros|JeffAndros]] 21:32, 30 June 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Hi Jeff,&lt;br /&gt;
&lt;br /&gt;
I had the same output, and in my case the problem was that my image hadn't&lt;br /&gt;
built. I guess the flash.sh script behaves this way if there is no image&lt;br /&gt;
(todo: it would be good to modify the script to first check for an image, and&lt;br /&gt;
if it is missing, report it as such and exit.). &lt;br /&gt;
&lt;br /&gt;
Michael -[[User:MichaelShiloh|MichaelShiloh]]&lt;br /&gt;
&lt;br /&gt;
error transcript follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Neo NAND is 128k sectors big&lt;br /&gt;
cat .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec &amp;gt; openmoko-flash.base&lt;br /&gt;
rm -rf .8b .16b .512b .sec .8sec .64sec .512sec .2ksec .16ksec&lt;br /&gt;
Please wait, programming the NAND flash...&lt;br /&gt;
Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal&lt;br /&gt;
error, but for better emulation accuracy either use a 2.6 host Linux kernel or&lt;br /&gt;
type 'echo 1024 &amp;gt; /proc/sys/dev/rtc/max-user-freq' as root.&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `dontask'&lt;br /&gt;
sleep: invalid time interval `y'&lt;br /&gt;
sleep: invalid time interval `nand'&lt;br /&gt;
sleep: invalid time interval `createbbt'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `bootcmd'&lt;br /&gt;
sleep: invalid time interval `\'setenv'&lt;br /&gt;
sleep: invalid time interval `bootargs'&lt;br /&gt;
sleep: invalid time interval `${bootargs_base}'&lt;br /&gt;
sleep: invalid time interval `${mtdparts};'&lt;br /&gt;
sleep: invalid time interval `bootm'&lt;br /&gt;
sleep: invalid time interval `0x31000000\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_1'&lt;br /&gt;
sleep: invalid time interval `\'Set'&lt;br /&gt;
sleep: invalid time interval `console'&lt;br /&gt;
sleep: invalid time interval `to'&lt;br /&gt;
sleep: invalid time interval `USB:'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdin'&lt;br /&gt;
sleep: invalid time interval `usbtty;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdout'&lt;br /&gt;
sleep: invalid time interval `usbtty;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stderr'&lt;br /&gt;
sleep: invalid time interval `usbtty\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_2'&lt;br /&gt;
sleep: invalid time interval `\'Set'&lt;br /&gt;
sleep: invalid time interval `console'&lt;br /&gt;
sleep: invalid time interval `to'&lt;br /&gt;
sleep: invalid time interval `serial:'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdin'&lt;br /&gt;
sleep: invalid time interval `serial;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdout'&lt;br /&gt;
sleep: invalid time interval `serial;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stderr'&lt;br /&gt;
sleep: invalid time interval `serial\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_3'&lt;br /&gt;
sleep: invalid time interval `\'Power'&lt;br /&gt;
sleep: invalid time interval `off:'&lt;br /&gt;
sleep: invalid time interval `neo1973'&lt;br /&gt;
sleep: invalid time interval `power-off\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `splashimage'&lt;br /&gt;
sleep: invalid time interval `\'nand'&lt;br /&gt;
sleep: invalid time interval `read.e'&lt;br /&gt;
sleep: invalid time interval `splash'&lt;br /&gt;
sleep: invalid time interval `0x5000;'&lt;br /&gt;
sleep: invalid time interval `unzip'&lt;br /&gt;
sleep: invalid time interval `0x96000\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `mtdids'&lt;br /&gt;
sleep: invalid time interval `nand0=neo1973-nand'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `mtdparts'&lt;br /&gt;
sleep: invalid time interval `mtdparts=neo1973-nand:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs)'&lt;br /&gt;
sleep: invalid time interval `#dynpart'&lt;br /&gt;
sleep: invalid time interval `nand'&lt;br /&gt;
sleep: invalid time interval `write.e'&lt;br /&gt;
sleep: invalid time interval `u-boot'&lt;br /&gt;
sleep: invalid time interval `dynenv'&lt;br /&gt;
sleep: invalid time interval `set'&lt;br /&gt;
sleep: invalid time interval `u-boot_env'&lt;br /&gt;
sleep: invalid time interval `saveenv'&lt;br /&gt;
Try `sleep --help' for more information.&lt;br /&gt;
openmoko/flash.sh: line 88: 26649 Terminated              $qemu -mtdblock &amp;quot;$script_dir/$flash_base&amp;quot; -kernel &amp;quot;$script_dir/$1&amp;quot; -serial stdio -nographic -usb -monitor null 0&amp;lt;&amp;amp;0&lt;br /&gt;
&lt;br /&gt;
U-boot failed to finish writing in setenv dontask y nand createbbt setenv bootcmd 'setenv bootargs ${bootargs_base} ${mtdparts}; bootm 0x31000000' setenv menu_1 'Set console to USB: setenv stdin usbtty; setenv stdout usbtty; setenv stderr usbtty' setenv menu_2 'Set console to serial: setenv stdin serial; setenv stdout serial; setenv stderr serial' setenv menu_3 'Power off: neo1973 power-off' setenv splashimage 'nand read.e 0x36000000 splash 0x5000; unzip 0x36000000 0x33d00000 0x96000' setenv mtdids nand0=neo1973-nand setenv mtdparts mtdparts=neo1973-nand:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs) #dynpart nand write.e 0x31000000 u-boot 0x1000 dynenv set u-boot_env saveenv seconds, giving up.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Make sure you have lynx installed. It's required to download the files with download.sh. I was getting the same error, then I installed lynx, and it worked fine.&lt;br /&gt;
:--[[User:Bloodylip|Bloodylip]] 15:22, 19 July 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Compiling QEMU with SUSE 10.2 ==&lt;br /&gt;
&lt;br /&gt;
* Install gcc version 3.3.6. It can be downloaded from [http://gcc.cybermirror.org/releases/gcc-3.3.6/gcc-core-3.3.6.tar.gz http://gcc.cybermirror.org/releases/gcc-3.3.6/gcc-core-3.3.6.tar.gz], for example. After unpacking it somewhere do&lt;br /&gt;
&lt;br /&gt;
  cd gcc-3.3.6/&lt;br /&gt;
  ./configure --prefix=/home/archive/moko/gcc33 --program-suffix=-3.3&lt;br /&gt;
  make bootstrap&lt;br /&gt;
  make install&lt;br /&gt;
&lt;br /&gt;
Please '''replace''' /home/archive/moko/gcc33 with a path of your choice, since it will be the one where gcc33 will be installed. &lt;br /&gt;
&lt;br /&gt;
* Add the following line in file openmoko/trunk/src/host/qemu-neo1973/usb-linux.c to get it compiled:&lt;br /&gt;
&lt;br /&gt;
  #include &amp;lt;sys/ioctl.h&amp;gt;&lt;br /&gt;
  #include &amp;lt;linux/compiler.h&amp;gt; &amp;lt;-- ADD THIS!&lt;br /&gt;
  #include &amp;lt;linux/usbdevice_fs.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(Hint found at [http://osdir.com/ml/emulators.kvm.devel/2007-01/msg00101.html http://osdir.com/ml/emulators.kvm.devel/2007-01/msg00101.html])&lt;br /&gt;
&lt;br /&gt;
The next steps depend on what method you use to compile stuff:&lt;br /&gt;
&lt;br /&gt;
* If you are using [[MokoMakefile]], as I do,  edit Makefile around line 266 to involve gcc33:&lt;br /&gt;
&lt;br /&gt;
          $${OMDIR}/openmoko/trunk/src/host/qemu-neo1973/configure \&lt;br /&gt;
                --target-list=arm-softmmu \&lt;br /&gt;
                --cc=/home/archive/moko/gcc33/bin/gcc-3.3) &lt;br /&gt;
        [ -e build/qemu/openmoko ] || \&lt;br /&gt;
* Manually on the command line:&lt;br /&gt;
     ./configure --target-list=arm-softmmu --cc=/home/archive/moko/gcc33/bin/gcc-3.3&lt;br /&gt;
     make&lt;br /&gt;
&lt;br /&gt;
Please remember to use the path you chose above for gcc33!&lt;br /&gt;
&lt;br /&gt;
* Finally run&lt;br /&gt;
 make qemu&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Taki|Taki]] 12:45, 14 July 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==calibration problem==&lt;br /&gt;
by using the current makefile for 2007.2 on 64bit ubuntu I was not able to point to buttons on the qemu screen correctly due to a calibration issue.&lt;br /&gt;
it seems that i had to imagine the screen turned around by 90° clockwise and only by guessing where the buttons would be I was able to open up the console and did a ts_calibrate to re orientate the screen - now everything works as expected.&lt;br /&gt;
&lt;br /&gt;
Same problem here with a ubuntu 32bit running 2007.2. How did you do the ts_calibrate? It's already difficult for getting in the terminal (on the phone), but then I couldn't find the onscreen keyboard. How do you activate it?&lt;br /&gt;
[[User:Dolfje|Dolfje]] 13:03, 21 August 2007 (CEST) - the mokomakefile runs qemu with your keyboard as an usb device so you can use it to type. [[User:JoSch|JoSch]] 17:57, 25 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Again same problem :) Would really like to try this out, but it is hard without calibration. 14:29 (CEST) Saturday, August 25 2007&lt;br /&gt;
&lt;br /&gt;
Run qemu with the -portrait option to make the calibration at least match qemu's input orientation (which should be enough to start a terminal and type ts_calibrate for further calibration). Adding &amp;quot;-usbdevice keyboard&amp;quot; enables the USB keyboard. --[[User:Danielmewes|Danielmewes]] 19:39, 28 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Segfault when flash.sh runs / 'bad magic number' error from qemu ==&lt;br /&gt;
&lt;br /&gt;
I had an issue where make qemu and make flash-qemu-official both had a segfault when running flash.sh then when running make run-qemu I got errors from the bootloader about a 'bad magic number'. &lt;br /&gt;
&lt;br /&gt;
The quick fix (per Mek in #openmoko) is to comment out the line in flash.sh that reads 'nand createbbt' .&lt;br /&gt;
== Hangs at setenv bootcmd ==&lt;br /&gt;
&lt;br /&gt;
Both manually and with MokoMakefile, flash.sh hangs for me at &amp;quot;setenv bootcmd '&amp;quot; (up to and including the apostrophe prints initially, then it goes onto &amp;quot;openmoko/flash.sh&amp;quot; after 300 sec):&lt;br /&gt;
 Creating BBT. Please wait ...Bad block table not found for chip 0&lt;br /&gt;
 Bad block table not found for chip 0&lt;br /&gt;
 Bad block table written to 0x03ffc000, version 0x01&lt;br /&gt;
 Bad block table written to 0x03ff8000, version 0x01&lt;br /&gt;
 &lt;br /&gt;
 GTA01Bv4 # setenv bootcmd 'openmoko/flash.sh: line 88: 23632 Terminated \&lt;br /&gt;
 $qemu -mtdblock  &amp;quot;$script_dir/$flash_base&amp;quot; -kernel &amp;quot;$script_dir/$1&amp;quot; \&lt;br /&gt;
 -serial stdio -nographic -usb -monitor null 0&amp;lt;&amp;amp;0&lt;br /&gt;
 &lt;br /&gt;
 U-boot failed to finish writing in 300 seconds, giving up.&lt;br /&gt;
Any ideas?  Debian testing, 2.6.22 kernel, all the openmoko/OE/qemu dependencies installed AFAIK.  --[[User:Tsuki|Tsuki]] 21:02, 5 October 2007 (CEST)&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/User:Noud</id>
		<title>User:Noud</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/User:Noud"/>
				<updated>2007-10-10T21:29:41Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Main goal..to get [http://netbsd.org NetBSD] running ontop [[Neo1973]] hardware ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I have an experimental [[NetBSD|NetBSD/evbarm Neo1973 kernel]] booting on [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]].&lt;br /&gt;
&lt;br /&gt;
You can make me happy by trying this [[NetBSD#Prebuild_NetBSD|NetBSD kernel]] ontop real Neo1973 hardware..and post, send or show the dmesg ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e: noud4 - home.nl&lt;br /&gt;
&lt;br /&gt;
l: the [[OpenMoko_Local_Groups:_Netherlands|Netherlands]], near [[OpenMoko_Local_Groups:_Eindhoven|Eindhoven]]/Tilburg&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/Talk:Openmoko_under_QEMU</id>
		<title>Talk:Openmoko under QEMU</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/Talk:Openmoko_under_QEMU"/>
				<updated>2007-10-10T21:28:53Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* NetBSD/i386 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Broken Link ==&lt;br /&gt;
Under the header Pre-built binaries on this page the link to the zip file is broken.&lt;br /&gt;
&lt;br /&gt;
--[[User:Kodafox|Kodafox]] 18:59, 28 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Error connecting ==&lt;br /&gt;
If you get an error like&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh: connect to host 192.168.0.202 port 22: No route to host&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you try to ssh, it could most probably be because one of your other network interfaces (wired/wireless) is being assigned an IP address of the form 192.168.0.* ,because of which the routing table contains a default gateway entry that is confusing poor new usb0 interface.&lt;br /&gt;
&lt;br /&gt;
The easiest way to work around this is to specify a tighter netmask for usb0 like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo ifconfig usb0 inet 192.168.0.200 netmask 255.255.255.240&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
[[User:Skn|Skn]] 18:50, 5 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Debian Sid ==&lt;br /&gt;
&lt;br /&gt;
under Debian Sid. I have to change slightly openmoko/env and openmoko/download.sh to make it run on Linux:&lt;br /&gt;
* in openmoko/env s/make=gmake/make=make/&lt;br /&gt;
* in openmoko/download.sh changed line 34 to:  files=`lynx -dump $download_dir | grep http | sed &amp;quot;s,[0-9 \t\.]*$download_dir\([a-zA-Z0-9_\.-]\)[ \t]*,\1,&amp;quot;` &lt;br /&gt;
[[User:Any Key|Any Key]] 14:16, 4 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Thanks, hopefully should be fixed. make was changed to gmake in the first place to account for BSD.[[User:Balrog|balrog]] 23:11, 5 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Gentoo, AMD64 ==&lt;br /&gt;
&lt;br /&gt;
Where can I report bugs in QEMU-Neo1973? It fails to compile:&lt;br /&gt;
 /server/projects/openmoko/qemu-neo1973/target-arm/op.c: In function 'op_iwmmxt_movq_wRn_M0':&lt;br /&gt;
 /server/projects/openmoko/qemu-neo1973/target-arm/op.c:1374: error: unable to find a register to spill in class 'GENERAL_REGS'&lt;br /&gt;
--[[User:Zbraniecki|Zbraniecki]] 12:52, 7 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
:I assume you're using gcc4 (gcc-config -l). Qemu fails to build if you use gcc4 as it only builds with gcc3 at this time. More information:&lt;br /&gt;
http://gentoo-wiki.com/HOWTO:_Qemu&lt;br /&gt;
&lt;br /&gt;
http://kidsquid.com/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-1dd86241b11d36963df140c9f6ab46ef402d4244 &lt;br /&gt;
&lt;br /&gt;
http://bugs.gentoo.org/show_bug.cgi?id=132667&lt;br /&gt;
&lt;br /&gt;
How to do a downgrade to gcc3 just for Qemu: http://forums.gentoo.org/viewtopic-t-537643-highlight-qemu.html - be aware, though, that the kernel modules may not load if you built the kernel with gcc4, so a kernel recompilation may be in order also. [[User:Abraxa|Abraxa]] 19:38, 7 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
I encountered the same problem, but I still had a gcc3 installed (gcc-3.4.6-r1 in a seperate slot from the system default gcc4, to be exact. This means that if you're using gentoo, you will '''not''' need to downgrade your system gcc). I simply added --cc=gcc-3.4.6 to ./configure's switches and make finished without major problems. --[[User:LordHelmchen|LordHelmchen]] 20:12, 11 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
If you still encounter this problem with gcc3, make sure you don't have -march set anywhere like in CFLAGS (I had -march=athlon-xp). unsetting CFLAGS before re-running the configure script solved the problem for me. --[[User:Vegar|Vegar]] 22:10, 24 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
If nothing else works, you should try to use gcc-3.3.* (tested using the x86-chroot as building environment) --[[User:Mathias|Mathias]]&lt;br /&gt;
&lt;br /&gt;
== Basic question ==&lt;br /&gt;
&lt;br /&gt;
I am using the emulator after compiling 'make qemu'.&lt;br /&gt;
The basic gui screen has been created and it asks the following:&lt;br /&gt;
&lt;br /&gt;
'Touch the crosshairs to calibrate the screen'&lt;br /&gt;
&lt;br /&gt;
Unfortunately I do not know how to continue from this stage on...&lt;br /&gt;
Any mouse click on the crosshairs, or a keyboard touch won't initiate a click...&lt;br /&gt;
&lt;br /&gt;
Does any body know how can I click the emulator screen and continue from this stage? --[[User:nighthawk|nighthawk]] 01:12, 9 April 2007&lt;br /&gt;
&lt;br /&gt;
I use mouse click and it works --[[User:Filippo|Filippo]] 22:16, 8 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
I find a single click will not register. Which makes sense if you think about a fingerpress on the screen. I hold down the mouse and wiggle it a bit to get the buttons to register. -- DonPark 8Apr07&lt;br /&gt;
&lt;br /&gt;
Still got problem with enabling the mouse. I tried according to the QEMU guide to see which mice are available under what I used. (ALT-CTRL-2, command 'mice info') and there was only the following:&lt;br /&gt;
* Mouse #0: QEMU S3C2410-driven Touchscreen&lt;br /&gt;
&lt;br /&gt;
Does anybody got the same problem as I got?&lt;br /&gt;
--[[User:nighthawk|nighthawk]] 04:14am, 9 April 2007&lt;br /&gt;
&lt;br /&gt;
Please see http://lists.openmoko.org/pipermail/openmoko-devel/2007-April/000837.html [[User:Balrog|balrog]] 01:20, 18 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== FreeBSD and Qemu... ==&lt;br /&gt;
&lt;br /&gt;
1. Comment lines 49 and 50 in file gnokiigsm/device.h&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//size_t device_read(__ptr_t buf, size_t nbytes, struct gn_statemachine *state);&lt;br /&gt;
//size_t device_write(const __ptr_t buf, size_t n, struct gn_statemachine *state);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Compile all with gmake&lt;br /&gt;
&lt;br /&gt;
3. as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#kldload aio&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Have fun :)&lt;br /&gt;
&lt;br /&gt;
(MokoMakefile ist too Linux specific to work on FreeBSD&lt;br /&gt;
&lt;br /&gt;
== NetBSD/i386 ==&lt;br /&gt;
To get the [[Talk:OpenMoko_under_QEMU#Qemu_Neo1973_emulator_on_NetBSD|Qemu Neo1973 emulator on NetBSD]]:&lt;br /&gt;
&lt;br /&gt;
1. fetch pkgsrc from http://pkgsrc.org&lt;br /&gt;
&lt;br /&gt;
2. fetch wip from http://pkgsrc-wip.sourceforge.net&lt;br /&gt;
&lt;br /&gt;
3. build package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/pkgsrc/wip/qemu-neo1973; make package&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshots showing&lt;br /&gt;
&lt;br /&gt;
[[OpenMoko|Linux OpenMoko]] booting on [[Talk:OpenMoko_under_QEMU#Qemu_Neo1973_emulator_on_NetBSD|Qemu Neo1973 emulator on NetBSD]]:&lt;br /&gt;
[[:Image:Netbsd-openmoko000.png|0]]&lt;br /&gt;
[[:Image:Netbsd-openmoko001.png|1]]&lt;br /&gt;
[[:Image:Netbsd-openmoko002.png|2]]&lt;br /&gt;
[[:Image:Netbsd-openmoko003.png|3]]&lt;br /&gt;
[[:Image:Netbsd-openmoko004.png|4]]&lt;br /&gt;
[[:Image:Netbsd-openmoko004.png|5]]&lt;br /&gt;
..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
note:&lt;br /&gt;
there's an experimental&lt;br /&gt;
&lt;br /&gt;
[[NetBSD|NetBSD/evbarm Neo1973 kernel]] booting on [[Talk:OpenMoko_under_QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]]&lt;br /&gt;
&lt;br /&gt;
== flash.sh fails ==&lt;br /&gt;
Try installing lynx (sudo apt-get install lynx) and run the openmoko/download.sh again,&lt;br /&gt;
then it should work.&lt;br /&gt;
&lt;br /&gt;
===question/answers===&lt;br /&gt;
&lt;br /&gt;
looks like I'm somehow getting a variable confused... when I try to run flash.sh with no arguments, I get a bunch of errors from sleep telling me that items such as `nand' for instance is an invalid time.  I've encountered this problem both from the makefile and from a manual download.  From what I can deduce, $2 should contain the number of (micro?)seconds for sleep to wait, but it looks like there's a target list, or some series of commands that are getting crosswired in.&lt;br /&gt;
&lt;br /&gt;
If it helps, I'm running ubuntu fiesty X64 &lt;br /&gt;
&lt;br /&gt;
any help would be appreciated&lt;br /&gt;
&lt;br /&gt;
Thank you,&lt;br /&gt;
&lt;br /&gt;
--[[User:JeffAndros|JeffAndros]] 21:32, 30 June 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Hi Jeff,&lt;br /&gt;
&lt;br /&gt;
I had the same output, and in my case the problem was that my image hadn't&lt;br /&gt;
built. I guess the flash.sh script behaves this way if there is no image&lt;br /&gt;
(todo: it would be good to modify the script to first check for an image, and&lt;br /&gt;
if it is missing, report it as such and exit.). &lt;br /&gt;
&lt;br /&gt;
Michael -[[User:MichaelShiloh|MichaelShiloh]]&lt;br /&gt;
&lt;br /&gt;
error transcript follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Neo NAND is 128k sectors big&lt;br /&gt;
cat .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec &amp;gt; openmoko-flash.base&lt;br /&gt;
rm -rf .8b .16b .512b .sec .8sec .64sec .512sec .2ksec .16ksec&lt;br /&gt;
Please wait, programming the NAND flash...&lt;br /&gt;
Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal&lt;br /&gt;
error, but for better emulation accuracy either use a 2.6 host Linux kernel or&lt;br /&gt;
type 'echo 1024 &amp;gt; /proc/sys/dev/rtc/max-user-freq' as root.&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `dontask'&lt;br /&gt;
sleep: invalid time interval `y'&lt;br /&gt;
sleep: invalid time interval `nand'&lt;br /&gt;
sleep: invalid time interval `createbbt'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `bootcmd'&lt;br /&gt;
sleep: invalid time interval `\'setenv'&lt;br /&gt;
sleep: invalid time interval `bootargs'&lt;br /&gt;
sleep: invalid time interval `${bootargs_base}'&lt;br /&gt;
sleep: invalid time interval `${mtdparts};'&lt;br /&gt;
sleep: invalid time interval `bootm'&lt;br /&gt;
sleep: invalid time interval `0x31000000\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_1'&lt;br /&gt;
sleep: invalid time interval `\'Set'&lt;br /&gt;
sleep: invalid time interval `console'&lt;br /&gt;
sleep: invalid time interval `to'&lt;br /&gt;
sleep: invalid time interval `USB:'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdin'&lt;br /&gt;
sleep: invalid time interval `usbtty;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdout'&lt;br /&gt;
sleep: invalid time interval `usbtty;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stderr'&lt;br /&gt;
sleep: invalid time interval `usbtty\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_2'&lt;br /&gt;
sleep: invalid time interval `\'Set'&lt;br /&gt;
sleep: invalid time interval `console'&lt;br /&gt;
sleep: invalid time interval `to'&lt;br /&gt;
sleep: invalid time interval `serial:'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdin'&lt;br /&gt;
sleep: invalid time interval `serial;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdout'&lt;br /&gt;
sleep: invalid time interval `serial;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stderr'&lt;br /&gt;
sleep: invalid time interval `serial\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_3'&lt;br /&gt;
sleep: invalid time interval `\'Power'&lt;br /&gt;
sleep: invalid time interval `off:'&lt;br /&gt;
sleep: invalid time interval `neo1973'&lt;br /&gt;
sleep: invalid time interval `power-off\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `splashimage'&lt;br /&gt;
sleep: invalid time interval `\'nand'&lt;br /&gt;
sleep: invalid time interval `read.e'&lt;br /&gt;
sleep: invalid time interval `splash'&lt;br /&gt;
sleep: invalid time interval `0x5000;'&lt;br /&gt;
sleep: invalid time interval `unzip'&lt;br /&gt;
sleep: invalid time interval `0x96000\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `mtdids'&lt;br /&gt;
sleep: invalid time interval `nand0=neo1973-nand'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `mtdparts'&lt;br /&gt;
sleep: invalid time interval `mtdparts=neo1973-nand:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs)'&lt;br /&gt;
sleep: invalid time interval `#dynpart'&lt;br /&gt;
sleep: invalid time interval `nand'&lt;br /&gt;
sleep: invalid time interval `write.e'&lt;br /&gt;
sleep: invalid time interval `u-boot'&lt;br /&gt;
sleep: invalid time interval `dynenv'&lt;br /&gt;
sleep: invalid time interval `set'&lt;br /&gt;
sleep: invalid time interval `u-boot_env'&lt;br /&gt;
sleep: invalid time interval `saveenv'&lt;br /&gt;
Try `sleep --help' for more information.&lt;br /&gt;
openmoko/flash.sh: line 88: 26649 Terminated              $qemu -mtdblock &amp;quot;$script_dir/$flash_base&amp;quot; -kernel &amp;quot;$script_dir/$1&amp;quot; -serial stdio -nographic -usb -monitor null 0&amp;lt;&amp;amp;0&lt;br /&gt;
&lt;br /&gt;
U-boot failed to finish writing in setenv dontask y nand createbbt setenv bootcmd 'setenv bootargs ${bootargs_base} ${mtdparts}; bootm 0x31000000' setenv menu_1 'Set console to USB: setenv stdin usbtty; setenv stdout usbtty; setenv stderr usbtty' setenv menu_2 'Set console to serial: setenv stdin serial; setenv stdout serial; setenv stderr serial' setenv menu_3 'Power off: neo1973 power-off' setenv splashimage 'nand read.e 0x36000000 splash 0x5000; unzip 0x36000000 0x33d00000 0x96000' setenv mtdids nand0=neo1973-nand setenv mtdparts mtdparts=neo1973-nand:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs) #dynpart nand write.e 0x31000000 u-boot 0x1000 dynenv set u-boot_env saveenv seconds, giving up.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Make sure you have lynx installed. It's required to download the files with download.sh. I was getting the same error, then I installed lynx, and it worked fine.&lt;br /&gt;
:--[[User:Bloodylip|Bloodylip]] 15:22, 19 July 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Compiling QEMU with SUSE 10.2 ==&lt;br /&gt;
&lt;br /&gt;
* Install gcc version 3.3.6. It can be downloaded from [http://gcc.cybermirror.org/releases/gcc-3.3.6/gcc-core-3.3.6.tar.gz http://gcc.cybermirror.org/releases/gcc-3.3.6/gcc-core-3.3.6.tar.gz], for example. After unpacking it somewhere do&lt;br /&gt;
&lt;br /&gt;
  cd gcc-3.3.6/&lt;br /&gt;
  ./configure --prefix=/home/archive/moko/gcc33 --program-suffix=-3.3&lt;br /&gt;
  make bootstrap&lt;br /&gt;
  make install&lt;br /&gt;
&lt;br /&gt;
Please '''replace''' /home/archive/moko/gcc33 with a path of your choice, since it will be the one where gcc33 will be installed. &lt;br /&gt;
&lt;br /&gt;
* Add the following line in file openmoko/trunk/src/host/qemu-neo1973/usb-linux.c to get it compiled:&lt;br /&gt;
&lt;br /&gt;
  #include &amp;lt;sys/ioctl.h&amp;gt;&lt;br /&gt;
  #include &amp;lt;linux/compiler.h&amp;gt; &amp;lt;-- ADD THIS!&lt;br /&gt;
  #include &amp;lt;linux/usbdevice_fs.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(Hint found at [http://osdir.com/ml/emulators.kvm.devel/2007-01/msg00101.html http://osdir.com/ml/emulators.kvm.devel/2007-01/msg00101.html])&lt;br /&gt;
&lt;br /&gt;
The next steps depend on what method you use to compile stuff:&lt;br /&gt;
&lt;br /&gt;
* If you are using [[MokoMakefile]], as I do,  edit Makefile around line 266 to involve gcc33:&lt;br /&gt;
&lt;br /&gt;
          $${OMDIR}/openmoko/trunk/src/host/qemu-neo1973/configure \&lt;br /&gt;
                --target-list=arm-softmmu \&lt;br /&gt;
                --cc=/home/archive/moko/gcc33/bin/gcc-3.3) &lt;br /&gt;
        [ -e build/qemu/openmoko ] || \&lt;br /&gt;
* Manually on the command line:&lt;br /&gt;
     ./configure --target-list=arm-softmmu --cc=/home/archive/moko/gcc33/bin/gcc-3.3&lt;br /&gt;
     make&lt;br /&gt;
&lt;br /&gt;
Please remember to use the path you chose above for gcc33!&lt;br /&gt;
&lt;br /&gt;
* Finally run&lt;br /&gt;
 make qemu&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Taki|Taki]] 12:45, 14 July 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==calibration problem==&lt;br /&gt;
by using the current makefile for 2007.2 on 64bit ubuntu I was not able to point to buttons on the qemu screen correctly due to a calibration issue.&lt;br /&gt;
it seems that i had to imagine the screen turned around by 90° clockwise and only by guessing where the buttons would be I was able to open up the console and did a ts_calibrate to re orientate the screen - now everything works as expected.&lt;br /&gt;
&lt;br /&gt;
Same problem here with a ubuntu 32bit running 2007.2. How did you do the ts_calibrate? It's already difficult for getting in the terminal (on the phone), but then I couldn't find the onscreen keyboard. How do you activate it?&lt;br /&gt;
[[User:Dolfje|Dolfje]] 13:03, 21 August 2007 (CEST) - the mokomakefile runs qemu with your keyboard as an usb device so you can use it to type. [[User:JoSch|JoSch]] 17:57, 25 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Again same problem :) Would really like to try this out, but it is hard without calibration. 14:29 (CEST) Saturday, August 25 2007&lt;br /&gt;
&lt;br /&gt;
Run qemu with the -portrait option to make the calibration at least match qemu's input orientation (which should be enough to start a terminal and type ts_calibrate for further calibration). Adding &amp;quot;-usbdevice keyboard&amp;quot; enables the USB keyboard. --[[User:Danielmewes|Danielmewes]] 19:39, 28 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Segfault when flash.sh runs / 'bad magic number' error from qemu ==&lt;br /&gt;
&lt;br /&gt;
I had an issue where make qemu and make flash-qemu-official both had a segfault when running flash.sh then when running make run-qemu I got errors from the bootloader about a 'bad magic number'. &lt;br /&gt;
&lt;br /&gt;
The quick fix (per Mek in #openmoko) is to comment out the line in flash.sh that reads 'nand createbbt' .&lt;br /&gt;
== Hangs at setenv bootcmd ==&lt;br /&gt;
&lt;br /&gt;
Both manually and with MokoMakefile, flash.sh hangs for me at &amp;quot;setenv bootcmd '&amp;quot; (up to and including the apostrophe prints initially, then it goes onto &amp;quot;openmoko/flash.sh&amp;quot; after 300 sec):&lt;br /&gt;
 Creating BBT. Please wait ...Bad block table not found for chip 0&lt;br /&gt;
 Bad block table not found for chip 0&lt;br /&gt;
 Bad block table written to 0x03ffc000, version 0x01&lt;br /&gt;
 Bad block table written to 0x03ff8000, version 0x01&lt;br /&gt;
 &lt;br /&gt;
 GTA01Bv4 # setenv bootcmd 'openmoko/flash.sh: line 88: 23632 Terminated \&lt;br /&gt;
 $qemu -mtdblock  &amp;quot;$script_dir/$flash_base&amp;quot; -kernel &amp;quot;$script_dir/$1&amp;quot; \&lt;br /&gt;
 -serial stdio -nographic -usb -monitor null 0&amp;lt;&amp;amp;0&lt;br /&gt;
 &lt;br /&gt;
 U-boot failed to finish writing in 300 seconds, giving up.&lt;br /&gt;
Any ideas?  Debian testing, 2.6.22 kernel, all the openmoko/OE/qemu dependencies installed AFAIK.  --[[User:Tsuki|Tsuki]] 21:02, 5 October 2007 (CEST)&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/Talk:Openmoko_under_QEMU</id>
		<title>Talk:Openmoko under QEMU</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/Talk:Openmoko_under_QEMU"/>
				<updated>2007-10-10T21:27:14Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Qemu Neo1973 emulator on NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Broken Link ==&lt;br /&gt;
Under the header Pre-built binaries on this page the link to the zip file is broken.&lt;br /&gt;
&lt;br /&gt;
--[[User:Kodafox|Kodafox]] 18:59, 28 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Error connecting ==&lt;br /&gt;
If you get an error like&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh: connect to host 192.168.0.202 port 22: No route to host&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you try to ssh, it could most probably be because one of your other network interfaces (wired/wireless) is being assigned an IP address of the form 192.168.0.* ,because of which the routing table contains a default gateway entry that is confusing poor new usb0 interface.&lt;br /&gt;
&lt;br /&gt;
The easiest way to work around this is to specify a tighter netmask for usb0 like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo ifconfig usb0 inet 192.168.0.200 netmask 255.255.255.240&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
[[User:Skn|Skn]] 18:50, 5 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Debian Sid ==&lt;br /&gt;
&lt;br /&gt;
under Debian Sid. I have to change slightly openmoko/env and openmoko/download.sh to make it run on Linux:&lt;br /&gt;
* in openmoko/env s/make=gmake/make=make/&lt;br /&gt;
* in openmoko/download.sh changed line 34 to:  files=`lynx -dump $download_dir | grep http | sed &amp;quot;s,[0-9 \t\.]*$download_dir\([a-zA-Z0-9_\.-]\)[ \t]*,\1,&amp;quot;` &lt;br /&gt;
[[User:Any Key|Any Key]] 14:16, 4 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Thanks, hopefully should be fixed. make was changed to gmake in the first place to account for BSD.[[User:Balrog|balrog]] 23:11, 5 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Gentoo, AMD64 ==&lt;br /&gt;
&lt;br /&gt;
Where can I report bugs in QEMU-Neo1973? It fails to compile:&lt;br /&gt;
 /server/projects/openmoko/qemu-neo1973/target-arm/op.c: In function 'op_iwmmxt_movq_wRn_M0':&lt;br /&gt;
 /server/projects/openmoko/qemu-neo1973/target-arm/op.c:1374: error: unable to find a register to spill in class 'GENERAL_REGS'&lt;br /&gt;
--[[User:Zbraniecki|Zbraniecki]] 12:52, 7 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
:I assume you're using gcc4 (gcc-config -l). Qemu fails to build if you use gcc4 as it only builds with gcc3 at this time. More information:&lt;br /&gt;
http://gentoo-wiki.com/HOWTO:_Qemu&lt;br /&gt;
&lt;br /&gt;
http://kidsquid.com/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-1dd86241b11d36963df140c9f6ab46ef402d4244 &lt;br /&gt;
&lt;br /&gt;
http://bugs.gentoo.org/show_bug.cgi?id=132667&lt;br /&gt;
&lt;br /&gt;
How to do a downgrade to gcc3 just for Qemu: http://forums.gentoo.org/viewtopic-t-537643-highlight-qemu.html - be aware, though, that the kernel modules may not load if you built the kernel with gcc4, so a kernel recompilation may be in order also. [[User:Abraxa|Abraxa]] 19:38, 7 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
I encountered the same problem, but I still had a gcc3 installed (gcc-3.4.6-r1 in a seperate slot from the system default gcc4, to be exact. This means that if you're using gentoo, you will '''not''' need to downgrade your system gcc). I simply added --cc=gcc-3.4.6 to ./configure's switches and make finished without major problems. --[[User:LordHelmchen|LordHelmchen]] 20:12, 11 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
If you still encounter this problem with gcc3, make sure you don't have -march set anywhere like in CFLAGS (I had -march=athlon-xp). unsetting CFLAGS before re-running the configure script solved the problem for me. --[[User:Vegar|Vegar]] 22:10, 24 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
If nothing else works, you should try to use gcc-3.3.* (tested using the x86-chroot as building environment) --[[User:Mathias|Mathias]]&lt;br /&gt;
&lt;br /&gt;
== Basic question ==&lt;br /&gt;
&lt;br /&gt;
I am using the emulator after compiling 'make qemu'.&lt;br /&gt;
The basic gui screen has been created and it asks the following:&lt;br /&gt;
&lt;br /&gt;
'Touch the crosshairs to calibrate the screen'&lt;br /&gt;
&lt;br /&gt;
Unfortunately I do not know how to continue from this stage on...&lt;br /&gt;
Any mouse click on the crosshairs, or a keyboard touch won't initiate a click...&lt;br /&gt;
&lt;br /&gt;
Does any body know how can I click the emulator screen and continue from this stage? --[[User:nighthawk|nighthawk]] 01:12, 9 April 2007&lt;br /&gt;
&lt;br /&gt;
I use mouse click and it works --[[User:Filippo|Filippo]] 22:16, 8 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
I find a single click will not register. Which makes sense if you think about a fingerpress on the screen. I hold down the mouse and wiggle it a bit to get the buttons to register. -- DonPark 8Apr07&lt;br /&gt;
&lt;br /&gt;
Still got problem with enabling the mouse. I tried according to the QEMU guide to see which mice are available under what I used. (ALT-CTRL-2, command 'mice info') and there was only the following:&lt;br /&gt;
* Mouse #0: QEMU S3C2410-driven Touchscreen&lt;br /&gt;
&lt;br /&gt;
Does anybody got the same problem as I got?&lt;br /&gt;
--[[User:nighthawk|nighthawk]] 04:14am, 9 April 2007&lt;br /&gt;
&lt;br /&gt;
Please see http://lists.openmoko.org/pipermail/openmoko-devel/2007-April/000837.html [[User:Balrog|balrog]] 01:20, 18 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== FreeBSD and Qemu... ==&lt;br /&gt;
&lt;br /&gt;
1. Comment lines 49 and 50 in file gnokiigsm/device.h&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//size_t device_read(__ptr_t buf, size_t nbytes, struct gn_statemachine *state);&lt;br /&gt;
//size_t device_write(const __ptr_t buf, size_t n, struct gn_statemachine *state);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Compile all with gmake&lt;br /&gt;
&lt;br /&gt;
3. as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#kldload aio&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Have fun :)&lt;br /&gt;
&lt;br /&gt;
(MokoMakefile ist too Linux specific to work on FreeBSD&lt;br /&gt;
&lt;br /&gt;
== NetBSD/i386 ==&lt;br /&gt;
&lt;br /&gt;
1. fetch pkgsrc from http://pkgsrc.org&lt;br /&gt;
&lt;br /&gt;
2. fetch wip from http://pkgsrc-wip.sourceforge.net&lt;br /&gt;
&lt;br /&gt;
3. build package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/pkgsrc/wip/qemu-neo1973; make package&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshots showing&lt;br /&gt;
&lt;br /&gt;
[[OpenMoko|Linux OpenMoko]] booting on [[Talk:OpenMoko_under_QEMU#Qemu_Neo1973_emulator_on_NetBSD|Qemu Neo1973 emulator on NetBSD]]:&lt;br /&gt;
[[:Image:Netbsd-openmoko000.png|0]]&lt;br /&gt;
[[:Image:Netbsd-openmoko001.png|1]]&lt;br /&gt;
[[:Image:Netbsd-openmoko002.png|2]]&lt;br /&gt;
[[:Image:Netbsd-openmoko003.png|3]]&lt;br /&gt;
[[:Image:Netbsd-openmoko004.png|4]]&lt;br /&gt;
[[:Image:Netbsd-openmoko004.png|5]]&lt;br /&gt;
..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
note:&lt;br /&gt;
there's an experimental&lt;br /&gt;
&lt;br /&gt;
[[NetBSD|NetBSD/evbarm Neo1973 kernel]] booting on [[Talk:OpenMoko_under_QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]]&lt;br /&gt;
&lt;br /&gt;
== flash.sh fails ==&lt;br /&gt;
Try installing lynx (sudo apt-get install lynx) and run the openmoko/download.sh again,&lt;br /&gt;
then it should work.&lt;br /&gt;
&lt;br /&gt;
===question/answers===&lt;br /&gt;
&lt;br /&gt;
looks like I'm somehow getting a variable confused... when I try to run flash.sh with no arguments, I get a bunch of errors from sleep telling me that items such as `nand' for instance is an invalid time.  I've encountered this problem both from the makefile and from a manual download.  From what I can deduce, $2 should contain the number of (micro?)seconds for sleep to wait, but it looks like there's a target list, or some series of commands that are getting crosswired in.&lt;br /&gt;
&lt;br /&gt;
If it helps, I'm running ubuntu fiesty X64 &lt;br /&gt;
&lt;br /&gt;
any help would be appreciated&lt;br /&gt;
&lt;br /&gt;
Thank you,&lt;br /&gt;
&lt;br /&gt;
--[[User:JeffAndros|JeffAndros]] 21:32, 30 June 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Hi Jeff,&lt;br /&gt;
&lt;br /&gt;
I had the same output, and in my case the problem was that my image hadn't&lt;br /&gt;
built. I guess the flash.sh script behaves this way if there is no image&lt;br /&gt;
(todo: it would be good to modify the script to first check for an image, and&lt;br /&gt;
if it is missing, report it as such and exit.). &lt;br /&gt;
&lt;br /&gt;
Michael -[[User:MichaelShiloh|MichaelShiloh]]&lt;br /&gt;
&lt;br /&gt;
error transcript follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Neo NAND is 128k sectors big&lt;br /&gt;
cat .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec &amp;gt; openmoko-flash.base&lt;br /&gt;
rm -rf .8b .16b .512b .sec .8sec .64sec .512sec .2ksec .16ksec&lt;br /&gt;
Please wait, programming the NAND flash...&lt;br /&gt;
Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal&lt;br /&gt;
error, but for better emulation accuracy either use a 2.6 host Linux kernel or&lt;br /&gt;
type 'echo 1024 &amp;gt; /proc/sys/dev/rtc/max-user-freq' as root.&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `dontask'&lt;br /&gt;
sleep: invalid time interval `y'&lt;br /&gt;
sleep: invalid time interval `nand'&lt;br /&gt;
sleep: invalid time interval `createbbt'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `bootcmd'&lt;br /&gt;
sleep: invalid time interval `\'setenv'&lt;br /&gt;
sleep: invalid time interval `bootargs'&lt;br /&gt;
sleep: invalid time interval `${bootargs_base}'&lt;br /&gt;
sleep: invalid time interval `${mtdparts};'&lt;br /&gt;
sleep: invalid time interval `bootm'&lt;br /&gt;
sleep: invalid time interval `0x31000000\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_1'&lt;br /&gt;
sleep: invalid time interval `\'Set'&lt;br /&gt;
sleep: invalid time interval `console'&lt;br /&gt;
sleep: invalid time interval `to'&lt;br /&gt;
sleep: invalid time interval `USB:'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdin'&lt;br /&gt;
sleep: invalid time interval `usbtty;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdout'&lt;br /&gt;
sleep: invalid time interval `usbtty;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stderr'&lt;br /&gt;
sleep: invalid time interval `usbtty\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_2'&lt;br /&gt;
sleep: invalid time interval `\'Set'&lt;br /&gt;
sleep: invalid time interval `console'&lt;br /&gt;
sleep: invalid time interval `to'&lt;br /&gt;
sleep: invalid time interval `serial:'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdin'&lt;br /&gt;
sleep: invalid time interval `serial;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdout'&lt;br /&gt;
sleep: invalid time interval `serial;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stderr'&lt;br /&gt;
sleep: invalid time interval `serial\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_3'&lt;br /&gt;
sleep: invalid time interval `\'Power'&lt;br /&gt;
sleep: invalid time interval `off:'&lt;br /&gt;
sleep: invalid time interval `neo1973'&lt;br /&gt;
sleep: invalid time interval `power-off\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `splashimage'&lt;br /&gt;
sleep: invalid time interval `\'nand'&lt;br /&gt;
sleep: invalid time interval `read.e'&lt;br /&gt;
sleep: invalid time interval `splash'&lt;br /&gt;
sleep: invalid time interval `0x5000;'&lt;br /&gt;
sleep: invalid time interval `unzip'&lt;br /&gt;
sleep: invalid time interval `0x96000\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `mtdids'&lt;br /&gt;
sleep: invalid time interval `nand0=neo1973-nand'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `mtdparts'&lt;br /&gt;
sleep: invalid time interval `mtdparts=neo1973-nand:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs)'&lt;br /&gt;
sleep: invalid time interval `#dynpart'&lt;br /&gt;
sleep: invalid time interval `nand'&lt;br /&gt;
sleep: invalid time interval `write.e'&lt;br /&gt;
sleep: invalid time interval `u-boot'&lt;br /&gt;
sleep: invalid time interval `dynenv'&lt;br /&gt;
sleep: invalid time interval `set'&lt;br /&gt;
sleep: invalid time interval `u-boot_env'&lt;br /&gt;
sleep: invalid time interval `saveenv'&lt;br /&gt;
Try `sleep --help' for more information.&lt;br /&gt;
openmoko/flash.sh: line 88: 26649 Terminated              $qemu -mtdblock &amp;quot;$script_dir/$flash_base&amp;quot; -kernel &amp;quot;$script_dir/$1&amp;quot; -serial stdio -nographic -usb -monitor null 0&amp;lt;&amp;amp;0&lt;br /&gt;
&lt;br /&gt;
U-boot failed to finish writing in setenv dontask y nand createbbt setenv bootcmd 'setenv bootargs ${bootargs_base} ${mtdparts}; bootm 0x31000000' setenv menu_1 'Set console to USB: setenv stdin usbtty; setenv stdout usbtty; setenv stderr usbtty' setenv menu_2 'Set console to serial: setenv stdin serial; setenv stdout serial; setenv stderr serial' setenv menu_3 'Power off: neo1973 power-off' setenv splashimage 'nand read.e 0x36000000 splash 0x5000; unzip 0x36000000 0x33d00000 0x96000' setenv mtdids nand0=neo1973-nand setenv mtdparts mtdparts=neo1973-nand:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs) #dynpart nand write.e 0x31000000 u-boot 0x1000 dynenv set u-boot_env saveenv seconds, giving up.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Make sure you have lynx installed. It's required to download the files with download.sh. I was getting the same error, then I installed lynx, and it worked fine.&lt;br /&gt;
:--[[User:Bloodylip|Bloodylip]] 15:22, 19 July 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Compiling QEMU with SUSE 10.2 ==&lt;br /&gt;
&lt;br /&gt;
* Install gcc version 3.3.6. It can be downloaded from [http://gcc.cybermirror.org/releases/gcc-3.3.6/gcc-core-3.3.6.tar.gz http://gcc.cybermirror.org/releases/gcc-3.3.6/gcc-core-3.3.6.tar.gz], for example. After unpacking it somewhere do&lt;br /&gt;
&lt;br /&gt;
  cd gcc-3.3.6/&lt;br /&gt;
  ./configure --prefix=/home/archive/moko/gcc33 --program-suffix=-3.3&lt;br /&gt;
  make bootstrap&lt;br /&gt;
  make install&lt;br /&gt;
&lt;br /&gt;
Please '''replace''' /home/archive/moko/gcc33 with a path of your choice, since it will be the one where gcc33 will be installed. &lt;br /&gt;
&lt;br /&gt;
* Add the following line in file openmoko/trunk/src/host/qemu-neo1973/usb-linux.c to get it compiled:&lt;br /&gt;
&lt;br /&gt;
  #include &amp;lt;sys/ioctl.h&amp;gt;&lt;br /&gt;
  #include &amp;lt;linux/compiler.h&amp;gt; &amp;lt;-- ADD THIS!&lt;br /&gt;
  #include &amp;lt;linux/usbdevice_fs.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(Hint found at [http://osdir.com/ml/emulators.kvm.devel/2007-01/msg00101.html http://osdir.com/ml/emulators.kvm.devel/2007-01/msg00101.html])&lt;br /&gt;
&lt;br /&gt;
The next steps depend on what method you use to compile stuff:&lt;br /&gt;
&lt;br /&gt;
* If you are using [[MokoMakefile]], as I do,  edit Makefile around line 266 to involve gcc33:&lt;br /&gt;
&lt;br /&gt;
          $${OMDIR}/openmoko/trunk/src/host/qemu-neo1973/configure \&lt;br /&gt;
                --target-list=arm-softmmu \&lt;br /&gt;
                --cc=/home/archive/moko/gcc33/bin/gcc-3.3) &lt;br /&gt;
        [ -e build/qemu/openmoko ] || \&lt;br /&gt;
* Manually on the command line:&lt;br /&gt;
     ./configure --target-list=arm-softmmu --cc=/home/archive/moko/gcc33/bin/gcc-3.3&lt;br /&gt;
     make&lt;br /&gt;
&lt;br /&gt;
Please remember to use the path you chose above for gcc33!&lt;br /&gt;
&lt;br /&gt;
* Finally run&lt;br /&gt;
 make qemu&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Taki|Taki]] 12:45, 14 July 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==calibration problem==&lt;br /&gt;
by using the current makefile for 2007.2 on 64bit ubuntu I was not able to point to buttons on the qemu screen correctly due to a calibration issue.&lt;br /&gt;
it seems that i had to imagine the screen turned around by 90° clockwise and only by guessing where the buttons would be I was able to open up the console and did a ts_calibrate to re orientate the screen - now everything works as expected.&lt;br /&gt;
&lt;br /&gt;
Same problem here with a ubuntu 32bit running 2007.2. How did you do the ts_calibrate? It's already difficult for getting in the terminal (on the phone), but then I couldn't find the onscreen keyboard. How do you activate it?&lt;br /&gt;
[[User:Dolfje|Dolfje]] 13:03, 21 August 2007 (CEST) - the mokomakefile runs qemu with your keyboard as an usb device so you can use it to type. [[User:JoSch|JoSch]] 17:57, 25 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Again same problem :) Would really like to try this out, but it is hard without calibration. 14:29 (CEST) Saturday, August 25 2007&lt;br /&gt;
&lt;br /&gt;
Run qemu with the -portrait option to make the calibration at least match qemu's input orientation (which should be enough to start a terminal and type ts_calibrate for further calibration). Adding &amp;quot;-usbdevice keyboard&amp;quot; enables the USB keyboard. --[[User:Danielmewes|Danielmewes]] 19:39, 28 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Segfault when flash.sh runs / 'bad magic number' error from qemu ==&lt;br /&gt;
&lt;br /&gt;
I had an issue where make qemu and make flash-qemu-official both had a segfault when running flash.sh then when running make run-qemu I got errors from the bootloader about a 'bad magic number'. &lt;br /&gt;
&lt;br /&gt;
The quick fix (per Mek in #openmoko) is to comment out the line in flash.sh that reads 'nand createbbt' .&lt;br /&gt;
== Hangs at setenv bootcmd ==&lt;br /&gt;
&lt;br /&gt;
Both manually and with MokoMakefile, flash.sh hangs for me at &amp;quot;setenv bootcmd '&amp;quot; (up to and including the apostrophe prints initially, then it goes onto &amp;quot;openmoko/flash.sh&amp;quot; after 300 sec):&lt;br /&gt;
 Creating BBT. Please wait ...Bad block table not found for chip 0&lt;br /&gt;
 Bad block table not found for chip 0&lt;br /&gt;
 Bad block table written to 0x03ffc000, version 0x01&lt;br /&gt;
 Bad block table written to 0x03ff8000, version 0x01&lt;br /&gt;
 &lt;br /&gt;
 GTA01Bv4 # setenv bootcmd 'openmoko/flash.sh: line 88: 23632 Terminated \&lt;br /&gt;
 $qemu -mtdblock  &amp;quot;$script_dir/$flash_base&amp;quot; -kernel &amp;quot;$script_dir/$1&amp;quot; \&lt;br /&gt;
 -serial stdio -nographic -usb -monitor null 0&amp;lt;&amp;amp;0&lt;br /&gt;
 &lt;br /&gt;
 U-boot failed to finish writing in 300 seconds, giving up.&lt;br /&gt;
Any ideas?  Debian testing, 2.6.22 kernel, all the openmoko/OE/qemu dependencies installed AFAIK.  --[[User:Tsuki|Tsuki]] 21:02, 5 October 2007 (CEST)&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/User:Noud</id>
		<title>User:Noud</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/User:Noud"/>
				<updated>2007-10-10T20:21:49Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Main goal..to get [http://netbsd.org NetBSD] running ontop [[Neo1973]] hardware ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I have an experimental [[NetBSD|NetBSD/evbarm Neo1973 kernel]] booting on [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|Qemu Neo1973 emulator on NetBSD]].&lt;br /&gt;
&lt;br /&gt;
You can make me happy by trying this [[NetBSD#Prebuild_NetBSD|NetBSD kernel]] ontop real Neo1973 hardware..and post, send or show the dmesg ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e: noud4 - home.nl&lt;br /&gt;
&lt;br /&gt;
l: the [[OpenMoko_Local_Groups:_Netherlands|Netherlands]], near [[OpenMoko_Local_Groups:_Eindhoven|Eindhoven]]/Tilburg&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/User:Noud</id>
		<title>User:Noud</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/User:Noud"/>
				<updated>2007-10-10T20:20:34Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Main goal..to get [http://netbsd.org NetBSD] running ontop [[Neo1973]] hardware ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I have an experimental [[NetBSD|NetBSD/evbarm Neo1973 kernel]] booting on [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|Qemu Neo1973 emulator on NetBSD]].&lt;br /&gt;
&lt;br /&gt;
You can make me happy by trying this [[NetBSD#Prebuild_NetBSD|NetBSD kernel]] ontop real Neo1973 hardware..and post, send or show the dmesg ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
e: noud4 - home.nl&lt;br /&gt;
&lt;br /&gt;
l: the [[OpenMoko_Local_Groups:_Netherlands|Netherlands]], near [[OpenMoko_Local_Groups:_Eindhoven|Eindhoven]]&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/Talk:U-Boot</id>
		<title>Talk:U-Boot</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/Talk:U-Boot"/>
				<updated>2007-10-10T20:02:13Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* mkimage from u-boot on NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== mkimage from u-boot on NetBSD ==&lt;br /&gt;
&lt;br /&gt;
1. fetch pkgsrc from http://pkgsrc.org&lt;br /&gt;
&lt;br /&gt;
2. fetch wip from http://pkgsrc-wip.sourceforge.net&lt;br /&gt;
&lt;br /&gt;
3. build package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/pkgsrc/wip/u-boot; make package&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use mkimage to make an image from a selfmade [[NetBSD|NetBSD/evbarm Neo1973 kernel]].&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/User:Noud</id>
		<title>User:Noud</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/User:Noud"/>
				<updated>2007-10-10T20:01:19Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;main goal..to get NetBSD running ontop the Neo1973 hardware ;)&lt;br /&gt;
&lt;br /&gt;
[[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|OpenMoko under QEMU on NetBSD/i386]]&lt;br /&gt;
&lt;br /&gt;
[[NetBSD|Booting NetBSD in Qemu-neo1973]]&lt;br /&gt;
&lt;br /&gt;
e: noud4 - home.nl&lt;br /&gt;
&lt;br /&gt;
i live in the [[http://wiki.openmoko.org/wiki/OpenMoko_Local_Groups:_Netherlands Netherlands]] near [[http://wiki.openmoko.org/wiki/OpenMoko_Local_Groups:_Eindhoven Eindhoven]]&lt;br /&gt;
&lt;br /&gt;
you can make me happy by trying this [[http://wiki.openmoko.org/wiki/NetBSD#Prebuild_NetBSD NetBSD kernel]] ontop real Neo1973 hardware..and posting the dmesg ;)&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T19:59:36Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T19:58:11Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T19:57:20Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD on Neo1973 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
The NetBSD/evbarm Neo1973 kernel is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T19:55:04Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
A NetBSD kernel is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T19:52:53Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD on Neo1973 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
A NetBSD kernel is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T19:52:19Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD in Qemu-neo1973 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD on Neo1973 ==&lt;br /&gt;
A NetBSD port is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T19:47:07Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Required tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD in Qemu-neo1973 ==&lt;br /&gt;
A NetBSD port is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have a [[Neo1973]], you will need a [[OpenMoko under QEMU|Qemu Neo1973 emulator]], for instance the one running ontop [[Talk:OpenMoko under QEMU#Qemu_Neo1973_emulator_on_NetBSD|NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/Talk:Openmoko_under_QEMU</id>
		<title>Talk:Openmoko under QEMU</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/Talk:Openmoko_under_QEMU"/>
				<updated>2007-10-10T19:41:12Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Qemu Neo1973 emulator on NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Broken Link ==&lt;br /&gt;
Under the header Pre-built binaries on this page the link to the zip file is broken.&lt;br /&gt;
&lt;br /&gt;
--[[User:Kodafox|Kodafox]] 18:59, 28 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Error connecting ==&lt;br /&gt;
If you get an error like&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh: connect to host 192.168.0.202 port 22: No route to host&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you try to ssh, it could most probably be because one of your other network interfaces (wired/wireless) is being assigned an IP address of the form 192.168.0.* ,because of which the routing table contains a default gateway entry that is confusing poor new usb0 interface.&lt;br /&gt;
&lt;br /&gt;
The easiest way to work around this is to specify a tighter netmask for usb0 like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo ifconfig usb0 inet 192.168.0.200 netmask 255.255.255.240&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
[[User:Skn|Skn]] 18:50, 5 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Debian Sid ==&lt;br /&gt;
&lt;br /&gt;
under Debian Sid. I have to change slightly openmoko/env and openmoko/download.sh to make it run on Linux:&lt;br /&gt;
* in openmoko/env s/make=gmake/make=make/&lt;br /&gt;
* in openmoko/download.sh changed line 34 to:  files=`lynx -dump $download_dir | grep http | sed &amp;quot;s,[0-9 \t\.]*$download_dir\([a-zA-Z0-9_\.-]\)[ \t]*,\1,&amp;quot;` &lt;br /&gt;
[[User:Any Key|Any Key]] 14:16, 4 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Thanks, hopefully should be fixed. make was changed to gmake in the first place to account for BSD.[[User:Balrog|balrog]] 23:11, 5 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Gentoo, AMD64 ==&lt;br /&gt;
&lt;br /&gt;
Where can I report bugs in QEMU-Neo1973? It fails to compile:&lt;br /&gt;
 /server/projects/openmoko/qemu-neo1973/target-arm/op.c: In function 'op_iwmmxt_movq_wRn_M0':&lt;br /&gt;
 /server/projects/openmoko/qemu-neo1973/target-arm/op.c:1374: error: unable to find a register to spill in class 'GENERAL_REGS'&lt;br /&gt;
--[[User:Zbraniecki|Zbraniecki]] 12:52, 7 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
:I assume you're using gcc4 (gcc-config -l). Qemu fails to build if you use gcc4 as it only builds with gcc3 at this time. More information:&lt;br /&gt;
http://gentoo-wiki.com/HOWTO:_Qemu&lt;br /&gt;
&lt;br /&gt;
http://kidsquid.com/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-1dd86241b11d36963df140c9f6ab46ef402d4244 &lt;br /&gt;
&lt;br /&gt;
http://bugs.gentoo.org/show_bug.cgi?id=132667&lt;br /&gt;
&lt;br /&gt;
How to do a downgrade to gcc3 just for Qemu: http://forums.gentoo.org/viewtopic-t-537643-highlight-qemu.html - be aware, though, that the kernel modules may not load if you built the kernel with gcc4, so a kernel recompilation may be in order also. [[User:Abraxa|Abraxa]] 19:38, 7 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
I encountered the same problem, but I still had a gcc3 installed (gcc-3.4.6-r1 in a seperate slot from the system default gcc4, to be exact. This means that if you're using gentoo, you will '''not''' need to downgrade your system gcc). I simply added --cc=gcc-3.4.6 to ./configure's switches and make finished without major problems. --[[User:LordHelmchen|LordHelmchen]] 20:12, 11 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
If you still encounter this problem with gcc3, make sure you don't have -march set anywhere like in CFLAGS (I had -march=athlon-xp). unsetting CFLAGS before re-running the configure script solved the problem for me. --[[User:Vegar|Vegar]] 22:10, 24 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
If nothing else works, you should try to use gcc-3.3.* (tested using the x86-chroot as building environment) --[[User:Mathias|Mathias]]&lt;br /&gt;
&lt;br /&gt;
== Basic question ==&lt;br /&gt;
&lt;br /&gt;
I am using the emulator after compiling 'make qemu'.&lt;br /&gt;
The basic gui screen has been created and it asks the following:&lt;br /&gt;
&lt;br /&gt;
'Touch the crosshairs to calibrate the screen'&lt;br /&gt;
&lt;br /&gt;
Unfortunately I do not know how to continue from this stage on...&lt;br /&gt;
Any mouse click on the crosshairs, or a keyboard touch won't initiate a click...&lt;br /&gt;
&lt;br /&gt;
Does any body know how can I click the emulator screen and continue from this stage? --[[User:nighthawk|nighthawk]] 01:12, 9 April 2007&lt;br /&gt;
&lt;br /&gt;
I use mouse click and it works --[[User:Filippo|Filippo]] 22:16, 8 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
I find a single click will not register. Which makes sense if you think about a fingerpress on the screen. I hold down the mouse and wiggle it a bit to get the buttons to register. -- DonPark 8Apr07&lt;br /&gt;
&lt;br /&gt;
Still got problem with enabling the mouse. I tried according to the QEMU guide to see which mice are available under what I used. (ALT-CTRL-2, command 'mice info') and there was only the following:&lt;br /&gt;
* Mouse #0: QEMU S3C2410-driven Touchscreen&lt;br /&gt;
&lt;br /&gt;
Does anybody got the same problem as I got?&lt;br /&gt;
--[[User:nighthawk|nighthawk]] 04:14am, 9 April 2007&lt;br /&gt;
&lt;br /&gt;
Please see http://lists.openmoko.org/pipermail/openmoko-devel/2007-April/000837.html [[User:Balrog|balrog]] 01:20, 18 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== FreeBSD and Qemu... ==&lt;br /&gt;
&lt;br /&gt;
1. Comment lines 49 and 50 in file gnokiigsm/device.h&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//size_t device_read(__ptr_t buf, size_t nbytes, struct gn_statemachine *state);&lt;br /&gt;
//size_t device_write(const __ptr_t buf, size_t n, struct gn_statemachine *state);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Compile all with gmake&lt;br /&gt;
&lt;br /&gt;
3. as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#kldload aio&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Have fun :)&lt;br /&gt;
&lt;br /&gt;
(MokoMakefile ist too Linux specific to work on FreeBSD&lt;br /&gt;
&lt;br /&gt;
== Qemu Neo1973 emulator on NetBSD ==&lt;br /&gt;
&lt;br /&gt;
1. fetch pkgsrc from http://pkgsrc.org&lt;br /&gt;
&lt;br /&gt;
2. fetch wip from http://pkgsrc-wip.sourceforge.net&lt;br /&gt;
&lt;br /&gt;
3. build package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/pkgsrc/wip/qemu-neo1973; make package&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshots showing&lt;br /&gt;
&lt;br /&gt;
[[OpenMoko|Linux OpenMoko]] booting on [[Talk:OpenMoko_under_QEMU#Qemu_Neo1973_emulator_on_NetBSD|Qemu Neo1973 emulator on NetBSD]]:&lt;br /&gt;
[[:Image:Netbsd-openmoko000.png|0]]&lt;br /&gt;
[[:Image:Netbsd-openmoko001.png|1]]&lt;br /&gt;
[[:Image:Netbsd-openmoko002.png|2]]&lt;br /&gt;
[[:Image:Netbsd-openmoko003.png|3]]&lt;br /&gt;
[[:Image:Netbsd-openmoko004.png|4]]&lt;br /&gt;
[[:Image:Netbsd-openmoko004.png|5]]&lt;br /&gt;
..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
note:&lt;br /&gt;
there's an experimental&lt;br /&gt;
&lt;br /&gt;
[[NetBSD|NetBSD/evbarm Neo1973 kernel]] booting on [[Talk:OpenMoko_under_QEMU#Qemu_Neo1973_emulator_on_NetBSD|Qemu Neo1973 emulator on NetBSD]]&lt;br /&gt;
&lt;br /&gt;
== flash.sh fails ==&lt;br /&gt;
Try installing lynx (sudo apt-get install lynx) and run the openmoko/download.sh again,&lt;br /&gt;
then it should work.&lt;br /&gt;
&lt;br /&gt;
===question/answers===&lt;br /&gt;
&lt;br /&gt;
looks like I'm somehow getting a variable confused... when I try to run flash.sh with no arguments, I get a bunch of errors from sleep telling me that items such as `nand' for instance is an invalid time.  I've encountered this problem both from the makefile and from a manual download.  From what I can deduce, $2 should contain the number of (micro?)seconds for sleep to wait, but it looks like there's a target list, or some series of commands that are getting crosswired in.&lt;br /&gt;
&lt;br /&gt;
If it helps, I'm running ubuntu fiesty X64 &lt;br /&gt;
&lt;br /&gt;
any help would be appreciated&lt;br /&gt;
&lt;br /&gt;
Thank you,&lt;br /&gt;
&lt;br /&gt;
--[[User:JeffAndros|JeffAndros]] 21:32, 30 June 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Hi Jeff,&lt;br /&gt;
&lt;br /&gt;
I had the same output, and in my case the problem was that my image hadn't&lt;br /&gt;
built. I guess the flash.sh script behaves this way if there is no image&lt;br /&gt;
(todo: it would be good to modify the script to first check for an image, and&lt;br /&gt;
if it is missing, report it as such and exit.). &lt;br /&gt;
&lt;br /&gt;
Michael -[[User:MichaelShiloh|MichaelShiloh]]&lt;br /&gt;
&lt;br /&gt;
error transcript follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Neo NAND is 128k sectors big&lt;br /&gt;
cat .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec &amp;gt; openmoko-flash.base&lt;br /&gt;
rm -rf .8b .16b .512b .sec .8sec .64sec .512sec .2ksec .16ksec&lt;br /&gt;
Please wait, programming the NAND flash...&lt;br /&gt;
Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal&lt;br /&gt;
error, but for better emulation accuracy either use a 2.6 host Linux kernel or&lt;br /&gt;
type 'echo 1024 &amp;gt; /proc/sys/dev/rtc/max-user-freq' as root.&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `dontask'&lt;br /&gt;
sleep: invalid time interval `y'&lt;br /&gt;
sleep: invalid time interval `nand'&lt;br /&gt;
sleep: invalid time interval `createbbt'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `bootcmd'&lt;br /&gt;
sleep: invalid time interval `\'setenv'&lt;br /&gt;
sleep: invalid time interval `bootargs'&lt;br /&gt;
sleep: invalid time interval `${bootargs_base}'&lt;br /&gt;
sleep: invalid time interval `${mtdparts};'&lt;br /&gt;
sleep: invalid time interval `bootm'&lt;br /&gt;
sleep: invalid time interval `0x31000000\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_1'&lt;br /&gt;
sleep: invalid time interval `\'Set'&lt;br /&gt;
sleep: invalid time interval `console'&lt;br /&gt;
sleep: invalid time interval `to'&lt;br /&gt;
sleep: invalid time interval `USB:'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdin'&lt;br /&gt;
sleep: invalid time interval `usbtty;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdout'&lt;br /&gt;
sleep: invalid time interval `usbtty;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stderr'&lt;br /&gt;
sleep: invalid time interval `usbtty\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_2'&lt;br /&gt;
sleep: invalid time interval `\'Set'&lt;br /&gt;
sleep: invalid time interval `console'&lt;br /&gt;
sleep: invalid time interval `to'&lt;br /&gt;
sleep: invalid time interval `serial:'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdin'&lt;br /&gt;
sleep: invalid time interval `serial;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdout'&lt;br /&gt;
sleep: invalid time interval `serial;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stderr'&lt;br /&gt;
sleep: invalid time interval `serial\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_3'&lt;br /&gt;
sleep: invalid time interval `\'Power'&lt;br /&gt;
sleep: invalid time interval `off:'&lt;br /&gt;
sleep: invalid time interval `neo1973'&lt;br /&gt;
sleep: invalid time interval `power-off\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `splashimage'&lt;br /&gt;
sleep: invalid time interval `\'nand'&lt;br /&gt;
sleep: invalid time interval `read.e'&lt;br /&gt;
sleep: invalid time interval `splash'&lt;br /&gt;
sleep: invalid time interval `0x5000;'&lt;br /&gt;
sleep: invalid time interval `unzip'&lt;br /&gt;
sleep: invalid time interval `0x96000\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `mtdids'&lt;br /&gt;
sleep: invalid time interval `nand0=neo1973-nand'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `mtdparts'&lt;br /&gt;
sleep: invalid time interval `mtdparts=neo1973-nand:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs)'&lt;br /&gt;
sleep: invalid time interval `#dynpart'&lt;br /&gt;
sleep: invalid time interval `nand'&lt;br /&gt;
sleep: invalid time interval `write.e'&lt;br /&gt;
sleep: invalid time interval `u-boot'&lt;br /&gt;
sleep: invalid time interval `dynenv'&lt;br /&gt;
sleep: invalid time interval `set'&lt;br /&gt;
sleep: invalid time interval `u-boot_env'&lt;br /&gt;
sleep: invalid time interval `saveenv'&lt;br /&gt;
Try `sleep --help' for more information.&lt;br /&gt;
openmoko/flash.sh: line 88: 26649 Terminated              $qemu -mtdblock &amp;quot;$script_dir/$flash_base&amp;quot; -kernel &amp;quot;$script_dir/$1&amp;quot; -serial stdio -nographic -usb -monitor null 0&amp;lt;&amp;amp;0&lt;br /&gt;
&lt;br /&gt;
U-boot failed to finish writing in setenv dontask y nand createbbt setenv bootcmd 'setenv bootargs ${bootargs_base} ${mtdparts}; bootm 0x31000000' setenv menu_1 'Set console to USB: setenv stdin usbtty; setenv stdout usbtty; setenv stderr usbtty' setenv menu_2 'Set console to serial: setenv stdin serial; setenv stdout serial; setenv stderr serial' setenv menu_3 'Power off: neo1973 power-off' setenv splashimage 'nand read.e 0x36000000 splash 0x5000; unzip 0x36000000 0x33d00000 0x96000' setenv mtdids nand0=neo1973-nand setenv mtdparts mtdparts=neo1973-nand:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs) #dynpart nand write.e 0x31000000 u-boot 0x1000 dynenv set u-boot_env saveenv seconds, giving up.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Make sure you have lynx installed. It's required to download the files with download.sh. I was getting the same error, then I installed lynx, and it worked fine.&lt;br /&gt;
:--[[User:Bloodylip|Bloodylip]] 15:22, 19 July 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Compiling QEMU with SUSE 10.2 ==&lt;br /&gt;
&lt;br /&gt;
* Install gcc version 3.3.6. It can be downloaded from [http://gcc.cybermirror.org/releases/gcc-3.3.6/gcc-core-3.3.6.tar.gz http://gcc.cybermirror.org/releases/gcc-3.3.6/gcc-core-3.3.6.tar.gz], for example. After unpacking it somewhere do&lt;br /&gt;
&lt;br /&gt;
  cd gcc-3.3.6/&lt;br /&gt;
  ./configure --prefix=/home/archive/moko/gcc33 --program-suffix=-3.3&lt;br /&gt;
  make bootstrap&lt;br /&gt;
  make install&lt;br /&gt;
&lt;br /&gt;
Please '''replace''' /home/archive/moko/gcc33 with a path of your choice, since it will be the one where gcc33 will be installed. &lt;br /&gt;
&lt;br /&gt;
* Add the following line in file openmoko/trunk/src/host/qemu-neo1973/usb-linux.c to get it compiled:&lt;br /&gt;
&lt;br /&gt;
  #include &amp;lt;sys/ioctl.h&amp;gt;&lt;br /&gt;
  #include &amp;lt;linux/compiler.h&amp;gt; &amp;lt;-- ADD THIS!&lt;br /&gt;
  #include &amp;lt;linux/usbdevice_fs.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(Hint found at [http://osdir.com/ml/emulators.kvm.devel/2007-01/msg00101.html http://osdir.com/ml/emulators.kvm.devel/2007-01/msg00101.html])&lt;br /&gt;
&lt;br /&gt;
The next steps depend on what method you use to compile stuff:&lt;br /&gt;
&lt;br /&gt;
* If you are using [[MokoMakefile]], as I do,  edit Makefile around line 266 to involve gcc33:&lt;br /&gt;
&lt;br /&gt;
          $${OMDIR}/openmoko/trunk/src/host/qemu-neo1973/configure \&lt;br /&gt;
                --target-list=arm-softmmu \&lt;br /&gt;
                --cc=/home/archive/moko/gcc33/bin/gcc-3.3) &lt;br /&gt;
        [ -e build/qemu/openmoko ] || \&lt;br /&gt;
* Manually on the command line:&lt;br /&gt;
     ./configure --target-list=arm-softmmu --cc=/home/archive/moko/gcc33/bin/gcc-3.3&lt;br /&gt;
     make&lt;br /&gt;
&lt;br /&gt;
Please remember to use the path you chose above for gcc33!&lt;br /&gt;
&lt;br /&gt;
* Finally run&lt;br /&gt;
 make qemu&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Taki|Taki]] 12:45, 14 July 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==calibration problem==&lt;br /&gt;
by using the current makefile for 2007.2 on 64bit ubuntu I was not able to point to buttons on the qemu screen correctly due to a calibration issue.&lt;br /&gt;
it seems that i had to imagine the screen turned around by 90° clockwise and only by guessing where the buttons would be I was able to open up the console and did a ts_calibrate to re orientate the screen - now everything works as expected.&lt;br /&gt;
&lt;br /&gt;
Same problem here with a ubuntu 32bit running 2007.2. How did you do the ts_calibrate? It's already difficult for getting in the terminal (on the phone), but then I couldn't find the onscreen keyboard. How do you activate it?&lt;br /&gt;
[[User:Dolfje|Dolfje]] 13:03, 21 August 2007 (CEST) - the mokomakefile runs qemu with your keyboard as an usb device so you can use it to type. [[User:JoSch|JoSch]] 17:57, 25 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Again same problem :) Would really like to try this out, but it is hard without calibration. 14:29 (CEST) Saturday, August 25 2007&lt;br /&gt;
&lt;br /&gt;
Run qemu with the -portrait option to make the calibration at least match qemu's input orientation (which should be enough to start a terminal and type ts_calibrate for further calibration). Adding &amp;quot;-usbdevice keyboard&amp;quot; enables the USB keyboard. --[[User:Danielmewes|Danielmewes]] 19:39, 28 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Segfault when flash.sh runs / 'bad magic number' error from qemu ==&lt;br /&gt;
&lt;br /&gt;
I had an issue where make qemu and make flash-qemu-official both had a segfault when running flash.sh then when running make run-qemu I got errors from the bootloader about a 'bad magic number'. &lt;br /&gt;
&lt;br /&gt;
The quick fix (per Mek in #openmoko) is to comment out the line in flash.sh that reads 'nand createbbt' .&lt;br /&gt;
== Hangs at setenv bootcmd ==&lt;br /&gt;
&lt;br /&gt;
Both manually and with MokoMakefile, flash.sh hangs for me at &amp;quot;setenv bootcmd '&amp;quot; (up to and including the apostrophe prints initially, then it goes onto &amp;quot;openmoko/flash.sh&amp;quot; after 300 sec):&lt;br /&gt;
 Creating BBT. Please wait ...Bad block table not found for chip 0&lt;br /&gt;
 Bad block table not found for chip 0&lt;br /&gt;
 Bad block table written to 0x03ffc000, version 0x01&lt;br /&gt;
 Bad block table written to 0x03ff8000, version 0x01&lt;br /&gt;
 &lt;br /&gt;
 GTA01Bv4 # setenv bootcmd 'openmoko/flash.sh: line 88: 23632 Terminated \&lt;br /&gt;
 $qemu -mtdblock  &amp;quot;$script_dir/$flash_base&amp;quot; -kernel &amp;quot;$script_dir/$1&amp;quot; \&lt;br /&gt;
 -serial stdio -nographic -usb -monitor null 0&amp;lt;&amp;amp;0&lt;br /&gt;
 &lt;br /&gt;
 U-boot failed to finish writing in 300 seconds, giving up.&lt;br /&gt;
Any ideas?  Debian testing, 2.6.22 kernel, all the openmoko/OE/qemu dependencies installed AFAIK.  --[[User:Tsuki|Tsuki]] 21:02, 5 October 2007 (CEST)&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T19:36:24Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Required tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD in Qemu-neo1973 ==&lt;br /&gt;
A NetBSD port is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
If you don't have [Neo1973], you will need [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]].&lt;br /&gt;
&lt;br /&gt;
If you build the kernel yourself, you will need [[Talk:Bootloader|mkimage from u-boot]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T19:36:13Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Building NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD in Qemu-neo1973 ==&lt;br /&gt;
A NetBSD port is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
You will need [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/Talk:U-Boot</id>
		<title>Talk:U-Boot</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/Talk:U-Boot"/>
				<updated>2007-10-10T19:29:12Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== mkimage from u-boot on NetBSD ==&lt;br /&gt;
&lt;br /&gt;
1. fetch pkgsrc from http://pkgsrc.org&lt;br /&gt;
&lt;br /&gt;
2. fetch wip from http://pkgsrc-wip.sourceforge.net&lt;br /&gt;
&lt;br /&gt;
3. build package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/pkgsrc/wip/u-boot; make package&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T19:24:12Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Required tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD in Qemu-neo1973 ==&lt;br /&gt;
A NetBSD port is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
You will need [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]].&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You will need mkimage from u-boot. It's available in http://pkgsrc-wip.sourceforge.net under u-boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/Talk:Openmoko_under_QEMU</id>
		<title>Talk:Openmoko under QEMU</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/Talk:Openmoko_under_QEMU"/>
				<updated>2007-10-10T19:11:54Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* NetBSD/i386 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Broken Link ==&lt;br /&gt;
Under the header Pre-built binaries on this page the link to the zip file is broken.&lt;br /&gt;
&lt;br /&gt;
--[[User:Kodafox|Kodafox]] 18:59, 28 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Error connecting ==&lt;br /&gt;
If you get an error like&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh: connect to host 192.168.0.202 port 22: No route to host&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
when you try to ssh, it could most probably be because one of your other network interfaces (wired/wireless) is being assigned an IP address of the form 192.168.0.* ,because of which the routing table contains a default gateway entry that is confusing poor new usb0 interface.&lt;br /&gt;
&lt;br /&gt;
The easiest way to work around this is to specify a tighter netmask for usb0 like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo ifconfig usb0 inet 192.168.0.200 netmask 255.255.255.240&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
[[User:Skn|Skn]] 18:50, 5 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Debian Sid ==&lt;br /&gt;
&lt;br /&gt;
under Debian Sid. I have to change slightly openmoko/env and openmoko/download.sh to make it run on Linux:&lt;br /&gt;
* in openmoko/env s/make=gmake/make=make/&lt;br /&gt;
* in openmoko/download.sh changed line 34 to:  files=`lynx -dump $download_dir | grep http | sed &amp;quot;s,[0-9 \t\.]*$download_dir\([a-zA-Z0-9_\.-]\)[ \t]*,\1,&amp;quot;` &lt;br /&gt;
[[User:Any Key|Any Key]] 14:16, 4 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Thanks, hopefully should be fixed. make was changed to gmake in the first place to account for BSD.[[User:Balrog|balrog]] 23:11, 5 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Gentoo, AMD64 ==&lt;br /&gt;
&lt;br /&gt;
Where can I report bugs in QEMU-Neo1973? It fails to compile:&lt;br /&gt;
 /server/projects/openmoko/qemu-neo1973/target-arm/op.c: In function 'op_iwmmxt_movq_wRn_M0':&lt;br /&gt;
 /server/projects/openmoko/qemu-neo1973/target-arm/op.c:1374: error: unable to find a register to spill in class 'GENERAL_REGS'&lt;br /&gt;
--[[User:Zbraniecki|Zbraniecki]] 12:52, 7 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
:I assume you're using gcc4 (gcc-config -l). Qemu fails to build if you use gcc4 as it only builds with gcc3 at this time. More information:&lt;br /&gt;
http://gentoo-wiki.com/HOWTO:_Qemu&lt;br /&gt;
&lt;br /&gt;
http://kidsquid.com/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-1dd86241b11d36963df140c9f6ab46ef402d4244 &lt;br /&gt;
&lt;br /&gt;
http://bugs.gentoo.org/show_bug.cgi?id=132667&lt;br /&gt;
&lt;br /&gt;
How to do a downgrade to gcc3 just for Qemu: http://forums.gentoo.org/viewtopic-t-537643-highlight-qemu.html - be aware, though, that the kernel modules may not load if you built the kernel with gcc4, so a kernel recompilation may be in order also. [[User:Abraxa|Abraxa]] 19:38, 7 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
I encountered the same problem, but I still had a gcc3 installed (gcc-3.4.6-r1 in a seperate slot from the system default gcc4, to be exact. This means that if you're using gentoo, you will '''not''' need to downgrade your system gcc). I simply added --cc=gcc-3.4.6 to ./configure's switches and make finished without major problems. --[[User:LordHelmchen|LordHelmchen]] 20:12, 11 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
If you still encounter this problem with gcc3, make sure you don't have -march set anywhere like in CFLAGS (I had -march=athlon-xp). unsetting CFLAGS before re-running the configure script solved the problem for me. --[[User:Vegar|Vegar]] 22:10, 24 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
If nothing else works, you should try to use gcc-3.3.* (tested using the x86-chroot as building environment) --[[User:Mathias|Mathias]]&lt;br /&gt;
&lt;br /&gt;
== Basic question ==&lt;br /&gt;
&lt;br /&gt;
I am using the emulator after compiling 'make qemu'.&lt;br /&gt;
The basic gui screen has been created and it asks the following:&lt;br /&gt;
&lt;br /&gt;
'Touch the crosshairs to calibrate the screen'&lt;br /&gt;
&lt;br /&gt;
Unfortunately I do not know how to continue from this stage on...&lt;br /&gt;
Any mouse click on the crosshairs, or a keyboard touch won't initiate a click...&lt;br /&gt;
&lt;br /&gt;
Does any body know how can I click the emulator screen and continue from this stage? --[[User:nighthawk|nighthawk]] 01:12, 9 April 2007&lt;br /&gt;
&lt;br /&gt;
I use mouse click and it works --[[User:Filippo|Filippo]] 22:16, 8 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
I find a single click will not register. Which makes sense if you think about a fingerpress on the screen. I hold down the mouse and wiggle it a bit to get the buttons to register. -- DonPark 8Apr07&lt;br /&gt;
&lt;br /&gt;
Still got problem with enabling the mouse. I tried according to the QEMU guide to see which mice are available under what I used. (ALT-CTRL-2, command 'mice info') and there was only the following:&lt;br /&gt;
* Mouse #0: QEMU S3C2410-driven Touchscreen&lt;br /&gt;
&lt;br /&gt;
Does anybody got the same problem as I got?&lt;br /&gt;
--[[User:nighthawk|nighthawk]] 04:14am, 9 April 2007&lt;br /&gt;
&lt;br /&gt;
Please see http://lists.openmoko.org/pipermail/openmoko-devel/2007-April/000837.html [[User:Balrog|balrog]] 01:20, 18 April 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== FreeBSD and Qemu... ==&lt;br /&gt;
&lt;br /&gt;
1. Comment lines 49 and 50 in file gnokiigsm/device.h&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//size_t device_read(__ptr_t buf, size_t nbytes, struct gn_statemachine *state);&lt;br /&gt;
//size_t device_write(const __ptr_t buf, size_t n, struct gn_statemachine *state);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Compile all with gmake&lt;br /&gt;
&lt;br /&gt;
3. as root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#kldload aio&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Have fun :)&lt;br /&gt;
&lt;br /&gt;
(MokoMakefile ist too Linux specific to work on FreeBSD&lt;br /&gt;
&lt;br /&gt;
== Qemu Neo1973 emulator on NetBSD ==&lt;br /&gt;
&lt;br /&gt;
1. fetch pkgsrc from http://pkgsrc.org&lt;br /&gt;
&lt;br /&gt;
2. fetch wip from http://pkgsrc-wip.sourceforge.net&lt;br /&gt;
&lt;br /&gt;
3. build package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/pkgsrc/wip/qemu-neo1973; make package&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshots showing&lt;br /&gt;
&lt;br /&gt;
[[OpenMoko|Linux OpenMoko]] booting on [[Talk:OpenMoko_under_QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]]:&lt;br /&gt;
[[:Image:Netbsd-openmoko000.png|0]]&lt;br /&gt;
[[:Image:Netbsd-openmoko001.png|1]]&lt;br /&gt;
[[:Image:Netbsd-openmoko002.png|2]]&lt;br /&gt;
[[:Image:Netbsd-openmoko003.png|3]]&lt;br /&gt;
[[:Image:Netbsd-openmoko004.png|4]]&lt;br /&gt;
[[:Image:Netbsd-openmoko004.png|5]]&lt;br /&gt;
..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
note:&lt;br /&gt;
there's an experimental&lt;br /&gt;
&lt;br /&gt;
[[NetBSD|NetBSD/evbarm Neo1973 kernel]] booting on [[Talk:OpenMoko_under_QEMU#NetBSD.2Fi386|Qemu Neo1973 emulator on NetBSD]]&lt;br /&gt;
&lt;br /&gt;
== flash.sh fails ==&lt;br /&gt;
Try installing lynx (sudo apt-get install lynx) and run the openmoko/download.sh again,&lt;br /&gt;
then it should work.&lt;br /&gt;
&lt;br /&gt;
===question/answers===&lt;br /&gt;
&lt;br /&gt;
looks like I'm somehow getting a variable confused... when I try to run flash.sh with no arguments, I get a bunch of errors from sleep telling me that items such as `nand' for instance is an invalid time.  I've encountered this problem both from the makefile and from a manual download.  From what I can deduce, $2 should contain the number of (micro?)seconds for sleep to wait, but it looks like there's a target list, or some series of commands that are getting crosswired in.&lt;br /&gt;
&lt;br /&gt;
If it helps, I'm running ubuntu fiesty X64 &lt;br /&gt;
&lt;br /&gt;
any help would be appreciated&lt;br /&gt;
&lt;br /&gt;
Thank you,&lt;br /&gt;
&lt;br /&gt;
--[[User:JeffAndros|JeffAndros]] 21:32, 30 June 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Hi Jeff,&lt;br /&gt;
&lt;br /&gt;
I had the same output, and in my case the problem was that my image hadn't&lt;br /&gt;
built. I guess the flash.sh script behaves this way if there is no image&lt;br /&gt;
(todo: it would be good to modify the script to first check for an image, and&lt;br /&gt;
if it is missing, report it as such and exit.). &lt;br /&gt;
&lt;br /&gt;
Michael -[[User:MichaelShiloh|MichaelShiloh]]&lt;br /&gt;
&lt;br /&gt;
error transcript follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Neo NAND is 128k sectors big&lt;br /&gt;
cat .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec &amp;gt; openmoko-flash.base&lt;br /&gt;
rm -rf .8b .16b .512b .sec .8sec .64sec .512sec .2ksec .16ksec&lt;br /&gt;
Please wait, programming the NAND flash...&lt;br /&gt;
Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal&lt;br /&gt;
error, but for better emulation accuracy either use a 2.6 host Linux kernel or&lt;br /&gt;
type 'echo 1024 &amp;gt; /proc/sys/dev/rtc/max-user-freq' as root.&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `dontask'&lt;br /&gt;
sleep: invalid time interval `y'&lt;br /&gt;
sleep: invalid time interval `nand'&lt;br /&gt;
sleep: invalid time interval `createbbt'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `bootcmd'&lt;br /&gt;
sleep: invalid time interval `\'setenv'&lt;br /&gt;
sleep: invalid time interval `bootargs'&lt;br /&gt;
sleep: invalid time interval `${bootargs_base}'&lt;br /&gt;
sleep: invalid time interval `${mtdparts};'&lt;br /&gt;
sleep: invalid time interval `bootm'&lt;br /&gt;
sleep: invalid time interval `0x31000000\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_1'&lt;br /&gt;
sleep: invalid time interval `\'Set'&lt;br /&gt;
sleep: invalid time interval `console'&lt;br /&gt;
sleep: invalid time interval `to'&lt;br /&gt;
sleep: invalid time interval `USB:'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdin'&lt;br /&gt;
sleep: invalid time interval `usbtty;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdout'&lt;br /&gt;
sleep: invalid time interval `usbtty;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stderr'&lt;br /&gt;
sleep: invalid time interval `usbtty\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_2'&lt;br /&gt;
sleep: invalid time interval `\'Set'&lt;br /&gt;
sleep: invalid time interval `console'&lt;br /&gt;
sleep: invalid time interval `to'&lt;br /&gt;
sleep: invalid time interval `serial:'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdin'&lt;br /&gt;
sleep: invalid time interval `serial;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stdout'&lt;br /&gt;
sleep: invalid time interval `serial;'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `stderr'&lt;br /&gt;
sleep: invalid time interval `serial\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `menu_3'&lt;br /&gt;
sleep: invalid time interval `\'Power'&lt;br /&gt;
sleep: invalid time interval `off:'&lt;br /&gt;
sleep: invalid time interval `neo1973'&lt;br /&gt;
sleep: invalid time interval `power-off\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `splashimage'&lt;br /&gt;
sleep: invalid time interval `\'nand'&lt;br /&gt;
sleep: invalid time interval `read.e'&lt;br /&gt;
sleep: invalid time interval `splash'&lt;br /&gt;
sleep: invalid time interval `0x5000;'&lt;br /&gt;
sleep: invalid time interval `unzip'&lt;br /&gt;
sleep: invalid time interval `0x96000\''&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `mtdids'&lt;br /&gt;
sleep: invalid time interval `nand0=neo1973-nand'&lt;br /&gt;
sleep: invalid time interval `setenv'&lt;br /&gt;
sleep: invalid time interval `mtdparts'&lt;br /&gt;
sleep: invalid time interval `mtdparts=neo1973-nand:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs)'&lt;br /&gt;
sleep: invalid time interval `#dynpart'&lt;br /&gt;
sleep: invalid time interval `nand'&lt;br /&gt;
sleep: invalid time interval `write.e'&lt;br /&gt;
sleep: invalid time interval `u-boot'&lt;br /&gt;
sleep: invalid time interval `dynenv'&lt;br /&gt;
sleep: invalid time interval `set'&lt;br /&gt;
sleep: invalid time interval `u-boot_env'&lt;br /&gt;
sleep: invalid time interval `saveenv'&lt;br /&gt;
Try `sleep --help' for more information.&lt;br /&gt;
openmoko/flash.sh: line 88: 26649 Terminated              $qemu -mtdblock &amp;quot;$script_dir/$flash_base&amp;quot; -kernel &amp;quot;$script_dir/$1&amp;quot; -serial stdio -nographic -usb -monitor null 0&amp;lt;&amp;amp;0&lt;br /&gt;
&lt;br /&gt;
U-boot failed to finish writing in setenv dontask y nand createbbt setenv bootcmd 'setenv bootargs ${bootargs_base} ${mtdparts}; bootm 0x31000000' setenv menu_1 'Set console to USB: setenv stdin usbtty; setenv stdout usbtty; setenv stderr usbtty' setenv menu_2 'Set console to serial: setenv stdin serial; setenv stdout serial; setenv stderr serial' setenv menu_3 'Power off: neo1973 power-off' setenv splashimage 'nand read.e 0x36000000 splash 0x5000; unzip 0x36000000 0x33d00000 0x96000' setenv mtdids nand0=neo1973-nand setenv mtdparts mtdparts=neo1973-nand:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs) #dynpart nand write.e 0x31000000 u-boot 0x1000 dynenv set u-boot_env saveenv seconds, giving up.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Make sure you have lynx installed. It's required to download the files with download.sh. I was getting the same error, then I installed lynx, and it worked fine.&lt;br /&gt;
:--[[User:Bloodylip|Bloodylip]] 15:22, 19 July 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Compiling QEMU with SUSE 10.2 ==&lt;br /&gt;
&lt;br /&gt;
* Install gcc version 3.3.6. It can be downloaded from [http://gcc.cybermirror.org/releases/gcc-3.3.6/gcc-core-3.3.6.tar.gz http://gcc.cybermirror.org/releases/gcc-3.3.6/gcc-core-3.3.6.tar.gz], for example. After unpacking it somewhere do&lt;br /&gt;
&lt;br /&gt;
  cd gcc-3.3.6/&lt;br /&gt;
  ./configure --prefix=/home/archive/moko/gcc33 --program-suffix=-3.3&lt;br /&gt;
  make bootstrap&lt;br /&gt;
  make install&lt;br /&gt;
&lt;br /&gt;
Please '''replace''' /home/archive/moko/gcc33 with a path of your choice, since it will be the one where gcc33 will be installed. &lt;br /&gt;
&lt;br /&gt;
* Add the following line in file openmoko/trunk/src/host/qemu-neo1973/usb-linux.c to get it compiled:&lt;br /&gt;
&lt;br /&gt;
  #include &amp;lt;sys/ioctl.h&amp;gt;&lt;br /&gt;
  #include &amp;lt;linux/compiler.h&amp;gt; &amp;lt;-- ADD THIS!&lt;br /&gt;
  #include &amp;lt;linux/usbdevice_fs.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(Hint found at [http://osdir.com/ml/emulators.kvm.devel/2007-01/msg00101.html http://osdir.com/ml/emulators.kvm.devel/2007-01/msg00101.html])&lt;br /&gt;
&lt;br /&gt;
The next steps depend on what method you use to compile stuff:&lt;br /&gt;
&lt;br /&gt;
* If you are using [[MokoMakefile]], as I do,  edit Makefile around line 266 to involve gcc33:&lt;br /&gt;
&lt;br /&gt;
          $${OMDIR}/openmoko/trunk/src/host/qemu-neo1973/configure \&lt;br /&gt;
                --target-list=arm-softmmu \&lt;br /&gt;
                --cc=/home/archive/moko/gcc33/bin/gcc-3.3) &lt;br /&gt;
        [ -e build/qemu/openmoko ] || \&lt;br /&gt;
* Manually on the command line:&lt;br /&gt;
     ./configure --target-list=arm-softmmu --cc=/home/archive/moko/gcc33/bin/gcc-3.3&lt;br /&gt;
     make&lt;br /&gt;
&lt;br /&gt;
Please remember to use the path you chose above for gcc33!&lt;br /&gt;
&lt;br /&gt;
* Finally run&lt;br /&gt;
 make qemu&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:Taki|Taki]] 12:45, 14 July 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==calibration problem==&lt;br /&gt;
by using the current makefile for 2007.2 on 64bit ubuntu I was not able to point to buttons on the qemu screen correctly due to a calibration issue.&lt;br /&gt;
it seems that i had to imagine the screen turned around by 90° clockwise and only by guessing where the buttons would be I was able to open up the console and did a ts_calibrate to re orientate the screen - now everything works as expected.&lt;br /&gt;
&lt;br /&gt;
Same problem here with a ubuntu 32bit running 2007.2. How did you do the ts_calibrate? It's already difficult for getting in the terminal (on the phone), but then I couldn't find the onscreen keyboard. How do you activate it?&lt;br /&gt;
[[User:Dolfje|Dolfje]] 13:03, 21 August 2007 (CEST) - the mokomakefile runs qemu with your keyboard as an usb device so you can use it to type. [[User:JoSch|JoSch]] 17:57, 25 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
Again same problem :) Would really like to try this out, but it is hard without calibration. 14:29 (CEST) Saturday, August 25 2007&lt;br /&gt;
&lt;br /&gt;
Run qemu with the -portrait option to make the calibration at least match qemu's input orientation (which should be enough to start a terminal and type ts_calibrate for further calibration). Adding &amp;quot;-usbdevice keyboard&amp;quot; enables the USB keyboard. --[[User:Danielmewes|Danielmewes]] 19:39, 28 August 2007 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Segfault when flash.sh runs / 'bad magic number' error from qemu ==&lt;br /&gt;
&lt;br /&gt;
I had an issue where make qemu and make flash-qemu-official both had a segfault when running flash.sh then when running make run-qemu I got errors from the bootloader about a 'bad magic number'. &lt;br /&gt;
&lt;br /&gt;
The quick fix (per Mek in #openmoko) is to comment out the line in flash.sh that reads 'nand createbbt' .&lt;br /&gt;
== Hangs at setenv bootcmd ==&lt;br /&gt;
&lt;br /&gt;
Both manually and with MokoMakefile, flash.sh hangs for me at &amp;quot;setenv bootcmd '&amp;quot; (up to and including the apostrophe prints initially, then it goes onto &amp;quot;openmoko/flash.sh&amp;quot; after 300 sec):&lt;br /&gt;
 Creating BBT. Please wait ...Bad block table not found for chip 0&lt;br /&gt;
 Bad block table not found for chip 0&lt;br /&gt;
 Bad block table written to 0x03ffc000, version 0x01&lt;br /&gt;
 Bad block table written to 0x03ff8000, version 0x01&lt;br /&gt;
 &lt;br /&gt;
 GTA01Bv4 # setenv bootcmd 'openmoko/flash.sh: line 88: 23632 Terminated \&lt;br /&gt;
 $qemu -mtdblock  &amp;quot;$script_dir/$flash_base&amp;quot; -kernel &amp;quot;$script_dir/$1&amp;quot; \&lt;br /&gt;
 -serial stdio -nographic -usb -monitor null 0&amp;lt;&amp;amp;0&lt;br /&gt;
 &lt;br /&gt;
 U-boot failed to finish writing in 300 seconds, giving up.&lt;br /&gt;
Any ideas?  Debian testing, 2.6.22 kernel, all the openmoko/OE/qemu dependencies installed AFAIK.  --[[User:Tsuki|Tsuki]] 21:02, 5 October 2007 (CEST)&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T00:14:26Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Prebuild NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD in Qemu-neo1973 ==&lt;br /&gt;
A NetBSD port is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
You will need Qemu-neo1973.&lt;br /&gt;
&lt;br /&gt;
Hints on building it are avaliable from [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|OpenMoko under QEMU on NetBSD/i386]].&lt;br /&gt;
&lt;br /&gt;
The package itself is avaliable in&lt;br /&gt;
http://pkgsrc-wip.sourceforge.net under qemu-neo1973.&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You will need mkimage from u-boot. It's available in http://pkgsrc-wip.sourceforge.net under u-boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mkdir -f /usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T00:13:53Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Building NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD in Qemu-neo1973 ==&lt;br /&gt;
A NetBSD port is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
You will need Qemu-neo1973.&lt;br /&gt;
&lt;br /&gt;
Hints on building it are avaliable from [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|OpenMoko under QEMU on NetBSD/i386]].&lt;br /&gt;
&lt;br /&gt;
The package itself is avaliable in&lt;br /&gt;
http://pkgsrc-wip.sourceforge.net under qemu-neo1973.&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You will need mkimage from u-boot. It's available in http://pkgsrc-wip.sourceforge.net under u-boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T00:13:34Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Building NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD in Qemu-neo1973 ==&lt;br /&gt;
A NetBSD port is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
You will need Qemu-neo1973.&lt;br /&gt;
&lt;br /&gt;
Hints on building it are avaliable from [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|OpenMoko under QEMU on NetBSD/i386]].&lt;br /&gt;
&lt;br /&gt;
The package itself is avaliable in&lt;br /&gt;
http://pkgsrc-wip.sourceforge.net under qemu-neo1973.&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You will need mkimage from u-boot. It's available in http://pkgsrc-wip.sourceforge.net under u-boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree.&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
tar xfz syssrc-neo1973-20071010.tar.gz -C /&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-10T00:01:58Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Running NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD in Qemu-neo1973 ==&lt;br /&gt;
A NetBSD port is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
You will need Qemu-neo1973.&lt;br /&gt;
&lt;br /&gt;
Hints on building it are avaliable from [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|OpenMoko under QEMU on NetBSD/i386]].&lt;br /&gt;
&lt;br /&gt;
The package itself is avaliable in&lt;br /&gt;
http://pkgsrc-wip.sourceforge.net under qemu-neo1973.&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You will need mkimage from u-boot. It's available in http://pkgsrc-wip.sourceforge.net under u-boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;br /&gt;
&lt;br /&gt;
Page thanks to and inspired by the [[FreeBSD]] page&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/User:Noud</id>
		<title>User:Noud</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/User:Noud"/>
				<updated>2007-10-09T23:56:45Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;main goal..to get NetBSD running ontop the Neo1973 hardware ;)&lt;br /&gt;
&lt;br /&gt;
[[Talk:OpenMoko under QEMU#NetBSD.2Fi386|OpenMoko under QEMU on NetBSD/i386]]&lt;br /&gt;
&lt;br /&gt;
[[NetBSD|Booting NetBSD in Qemu-neo1973]]&lt;br /&gt;
&lt;br /&gt;
e: noud4 - home.nl&lt;br /&gt;
&lt;br /&gt;
i live in the [[http://wiki.openmoko.org/wiki/OpenMoko_Local_Groups:_Netherlands Netherlands]] near [[http://wiki.openmoko.org/wiki/OpenMoko_Local_Groups:_Eindhoven Eindhoven]]&lt;br /&gt;
&lt;br /&gt;
you can make me happy by trying this [[http://wiki.openmoko.org/wiki/NetBSD#Prebuild_NetBSD NetBSD kernel]] ontop real Neo1973 hardware..and posting the dmesg ;)&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/User:Noud</id>
		<title>User:Noud</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/User:Noud"/>
				<updated>2007-10-09T23:56:07Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;main goal..to get NetBSD running ontop the Neo1973 hardware ;)&lt;br /&gt;
&lt;br /&gt;
[[Talk:OpenMoko under QEMU#NetBSD.2Fi386|OpenMoko under QEMU on NetBSD/i386]]&lt;br /&gt;
&lt;br /&gt;
[[NetBSD|Booting NetBSD in Qemu-neo1973]]&lt;br /&gt;
&lt;br /&gt;
e: noud4 - home.nl&lt;br /&gt;
&lt;br /&gt;
i live in the [[http://wiki.openmoko.org/wiki/OpenMoko_Local_Groups:_Netherlands Netherlands]] near [[http://wiki.openmoko.org/wiki/OpenMoko_Local_Groups:_Eindhoven Eindhoven]]&lt;br /&gt;
&lt;br /&gt;
you can make me happy by trying this [[http://wiki.openmoko.org/wiki/NetBSD#Prebuild_NetBSD NetBSD kernel]] ontop real Neo1973 hardware..and post the dmesg ;)&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-09T23:19:54Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Required tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD in Qemu-neo1973 ==&lt;br /&gt;
A NetBSD port is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
You will need Qemu-neo1973.&lt;br /&gt;
&lt;br /&gt;
Hints on building it are avaliable from [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|OpenMoko under QEMU on NetBSD/i386]].&lt;br /&gt;
&lt;br /&gt;
The package itself is avaliable in&lt;br /&gt;
http://pkgsrc-wip.sourceforge.net under qemu-neo1973.&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You will need mkimage from u-boot. It's available in http://pkgsrc-wip.sourceforge.net under u-boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This all thanks to and inspired by the [[FreeBSD]] page&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-09T23:19:26Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Required tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD in Qemu-neo1973 ==&lt;br /&gt;
A NetBSD port is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
You will need Qemu-neo1973.&lt;br /&gt;
&lt;br /&gt;
Hints on building it are avaliable from [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|OpenMoko under QEMU on NetBSD/i386]].&lt;br /&gt;
&lt;br /&gt;
The package itself is avaliable at&lt;br /&gt;
http://pkgsrc-wip.sourceforge.net under qemu-neo1973.&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You will need mkimage from u-boot. It's available in http://pkgsrc-wip.sourceforge.net under u-boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This all thanks to and inspired by the [[FreeBSD]] page&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/wiki/NetBSD</id>
		<title>NetBSD</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/wiki/NetBSD"/>
				<updated>2007-10-09T23:15:15Z</updated>
		
		<summary type="html">&lt;p&gt;Noud: /* Building NetBSD */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Running NetBSD in Qemu-neo1973 ==&lt;br /&gt;
A NetBSD port is only ready for kernel developers.&lt;br /&gt;
&lt;br /&gt;
=== Required tools ===&lt;br /&gt;
You will need mkimage from u-boot. It's available in http://pkgsrc-wip.sourceforge.net under u-boot.&lt;br /&gt;
&lt;br /&gt;
You will also need Qemu-neo1973. Hints on building it are avaliable from [[Talk:OpenMoko under QEMU|this page.]]&lt;br /&gt;
&lt;br /&gt;
=== Building NetBSD ===&lt;br /&gt;
You will need mkimage from u-boot. It's available in http://pkgsrc-wip.sourceforge.net under u-boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You'll need to download some kernel files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 syssrc 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... syssrc-neo1973-20071010.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and extract it over the NetBSD src tree.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the NetBSD src tree run:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 ./build.sh -m evbarm tools&lt;br /&gt;
 ./build.sh -u -m evbarm kernel=NEO1973&lt;br /&gt;
 mkimage -A arm -O netbsd -T kernel -C none -a 30008000 -e 30008110 -n &amp;quot;Kernel Image&amp;quot; -d /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd  /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll now have a copy of the NetBSD kernel, called netbsd.boot, that's able to be loaded by u-boot.&lt;br /&gt;
&lt;br /&gt;
=== Prebuild NetBSD ===&lt;br /&gt;
You'll need to download a kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In [[http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=914 download-area]]&lt;br /&gt;
&lt;br /&gt;
pick Attachment: &amp;quot;NetBSD/evbarm 3.1 NEO1973 kernel 20071010&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save Link As... netbsd-NEO1973-20071010.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
extract and move this kernel into place:&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
gzip -d netbsd-NEO1973-20071010.gz&lt;br /&gt;
mv netbsd-NEO1973-2007101 /usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running NetBSD ===&lt;br /&gt;
&lt;br /&gt;
From the qemu directory edit the openmoko/flash.sh and add the line:&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 kernel_image=&amp;quot;/usr/obj/sys/arch/evbarm/compile/NEO1973/netbsd.boot&amp;quot;&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
after the four &amp;quot;most_recent&amp;quot; lines.&lt;br /&gt;
&lt;br /&gt;
(if you do use [[Talk:OpenMoko under QEMU#NetBSD.2Fi386|wip/qemu-neo1973]], the line is allready there..and you should only have to uncomment the line.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next run&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 ./openmoko/download.sh&lt;br /&gt;
 ./openmoko/flash.sh&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will fetch the required parts and create an image to run. They require you to have bash installed.&lt;br /&gt;
&lt;br /&gt;
Finally run qemu with&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 cd /usr/pkg/emul/neo1973; qemu-system-arm -M neo -m 130 -mtdblock openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor -serial telnet:localhost:1200,server&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from another xterm&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 telnet localhost 1200&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
and qemu will go on with the startup process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Qemu running u-boot,&lt;br /&gt;
&lt;br /&gt;
press Space to select option &amp;quot;Boot&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In telnet to the serial port you should see:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
host007# telnet localhost 1200&lt;br /&gt;
Trying 127.0.0.1...&lt;br /&gt;
Connected to localhost.&lt;br /&gt;
Escape character is '^]'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 1.2.0-moko9_r0 (Aug 19 2007 - 19:17:12)&lt;br /&gt;
&lt;br /&gt;
DRAM:  128 MB&lt;br /&gt;
NAND:  64 MiB&lt;br /&gt;
Found Environment offset in OOB..&lt;br /&gt;
Video: 640x480x8 31kHz 59Hz&lt;br /&gt;
&lt;br /&gt;
NAND read: device 0 offset 0x25c000, size 0x5000&lt;br /&gt;
&lt;br /&gt;
Reading data from 0x260e00 -- 100% complete.&lt;br /&gt;
 20480 bytes read: OK&lt;br /&gt;
USB:   S3C2410 USB Deviced&lt;br /&gt;
In:    serial&lt;br /&gt;
Out:   serial&lt;br /&gt;
Err:   serial&lt;br /&gt;
GTA01Bv4 # Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005&lt;br /&gt;
    The NetBSD Foundation, Inc.  All rights reserved.&lt;br /&gt;
Copyright (c) 1982, 1986, 1989, 1991, 1993&lt;br /&gt;
    The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
NetBSD 3.1 (NEO1973) #0: Tue Oct  9 23:08:38 CEST 2007&lt;br /&gt;
        noud4@host007.template:/usr/obj/sys/arch/evbarm/compile/NEO1973&lt;br /&gt;
total memory = 128 MB&lt;br /&gt;
avail memory = 119 MB&lt;br /&gt;
mainbus0 (root)&lt;br /&gt;
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)&lt;br /&gt;
cpu0: DC enabled IC enabled WB enabled EABT&lt;br /&gt;
cpu0: 16KB/32B 64-way Instruction cache&lt;br /&gt;
cpu0: 16KB/32B 64-way write-back-locking-A Data cache&lt;br /&gt;
ssio0 at mainbus0: fclk 266 MHz hclk 133 MHz pclk 66 MHz&lt;br /&gt;
ohci0 at ssio0 intr 26&lt;br /&gt;
ohci0: OHCI version 1.0&lt;br /&gt;
usb0 at ohci0: USB revision 1.0&lt;br /&gt;
uhub0 at usb0&lt;br /&gt;
uhub0: Samsung OHCI root hub, class 9/0, rev 1.00/1.00, addr 1&lt;br /&gt;
uhub0: 3 ports with 3 removable, self powered&lt;br /&gt;
sscom0 at ssio0 unit 0: UART0 addr=50000000&lt;br /&gt;
sscom0: console (major=104)&lt;br /&gt;
sscom1 at ssio0 unit 1: UART1 addr=50004000&lt;br /&gt;
ssextio0 at ssio0&lt;br /&gt;
lcd0 at ssio0&lt;br /&gt;
wsdisplay0 at lcd0 kbdmux 1&lt;br /&gt;
wsmux1: connecting to wsdisplay0&lt;br /&gt;
ssspi0 at ssio0 unit 0&lt;br /&gt;
ssspi1 at ssio0 unit 1&lt;br /&gt;
sskbd0 at ssspi1 intr 1&lt;br /&gt;
wskbd0 at sskbd0 mux 1&lt;br /&gt;
wskbd0: connecting to wsdisplay0&lt;br /&gt;
clock: hz=100 stathz = 64 PCLK=66500000 prescaler=2 tc=32470&lt;br /&gt;
ubt0 at uhub0 port 3 configuration 1 interface 0&lt;br /&gt;
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.58, addr 2&lt;br /&gt;
ubt0: has isoc data&lt;br /&gt;
bthci0 at ubt0&lt;br /&gt;
boot device: &amp;lt;unknown&amp;gt;&lt;br /&gt;
root device: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This all thanks to and inspired by the [[FreeBSD]] page&lt;br /&gt;
&lt;br /&gt;
This in comparance to  the [http://wiki.openmoko.org/wiki/Wishlist:Neo1973_P0_Review#System_information Linux dmesg]&lt;/div&gt;</summary>
		<author><name>Noud</name></author>	</entry>

	</feed>