<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://arm.mini-box.com/index.php?action=history&amp;feed=atom&amp;title=Building_an_image_from_scratch</id>
	<title>Building an image from scratch - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://arm.mini-box.com/index.php?action=history&amp;feed=atom&amp;title=Building_an_image_from_scratch"/>
	<link rel="alternate" type="text/html" href="https://arm.mini-box.com/index.php?title=Building_an_image_from_scratch&amp;action=history"/>
	<updated>2026-07-06T03:56:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>https://arm.mini-box.com/index.php?title=Building_an_image_from_scratch&amp;diff=94&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;=microSD Formatting= ==Building an image from scratch==  The microSD card must use a special partition layout so it can be used for booting in pico-SAM9G45.&lt;br&gt; Steps to follo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://arm.mini-box.com/index.php?title=Building_an_image_from_scratch&amp;diff=94&amp;oldid=prev"/>
		<updated>2020-10-20T06:36:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=microSD Formatting= ==Building an image from scratch==  The microSD card must use a special partition layout so it can be used for booting in pico-SAM9G45.&amp;lt;br&amp;gt; Steps to follo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=microSD Formatting=&lt;br /&gt;
==Building an image from scratch== &lt;br /&gt;
The microSD card must use a special partition layout so it can be used for booting in pico-SAM9G45.&amp;lt;br&amp;gt;&lt;br /&gt;
Steps to follow when you're installing a custom OS:&lt;br /&gt;
* [http://arm.mini-box.com/index.php?title=Using_dd#Identifying_the_microSD_device_name See this page] for identifying the microSD device name&lt;br /&gt;
* Create a '''FAT16''' (important!) partition at the beginning of the disk. You should use a small partition size for this (&amp;lt;= 24Mb).&lt;br /&gt;
* Create an ext3 partition for the rest of the space that will hold a linux or android root file system.&lt;br /&gt;
* Format the FAT16 partition with mkfs.msdos &amp;lt;your device 1st partition&amp;gt; (ie: mkfs.msdos /dev/sdf1)&lt;br /&gt;
* Format the ext3 partition with mkfs.ext3 &amp;lt;your device 2nd paritition&amp;gt; (ie: mkfs.ext3 /dev/sdf2)&lt;br /&gt;
* On the FAT16 partition copy the bootstrap (you can use the prebuild binary [http://arm.mini-box.com/releases/kernel_bootstrap/latest/BOOT.BIN BOOT.BIN]) that will load the linux kernel ([http://arm.mini-box.com/releases/kernel_bootstrap/latest/linux.bin linux.bin]) &lt;br /&gt;
If you intend to compile a custom kernel follow the steps from the [[Kernel Building]] page, and make sure you compile the kernel in the uImage format and you specify the boot kernel parameters on the kernel configure step.&lt;br /&gt;
&lt;br /&gt;
* On the ext3 partition copy your OS root file system, making sure that the init binary from your OS has the correct patch setup in the kernel boot kernel parameters when you configured the kernel.&lt;br /&gt;
The prebuild kernel expects init binary to be located on /.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
==Automatic formatting of microSD card with a script==&lt;br /&gt;
* [http://arm.mini-box.com/index.php?title=Using_dd#Identifying_the_microSD_device_name See this page] for identifying the microSD device name&amp;lt;br&amp;gt;&lt;br /&gt;
* Download [http://gitorious.org/picopc-tools/picopc-tools/blobs/master/setup-sdcard/setup-sdcard.sh Setup SD card script].&amp;lt;br&amp;gt;&lt;br /&gt;
* Run this script with:&lt;br /&gt;
  &amp;lt;pre style=&amp;quot;font-size: medium&amp;quot;&amp;gt;setup-sdcard.sh &amp;lt;target_device&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
(ie: ./setup-sdcard.sh /dev/sdf).&amp;lt;br&amp;gt;&lt;br /&gt;
This script will create the partition layout automatically as described above.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>