Changes

How to boot from MicroSD Card

740 bytes added, 16:21, 24 May 2012
m
no edit summary
= Introduction Overview This how to explains how to '''create a customized microSD card''' to boot IGEPv2 or IGEP COM MODULE with other '''software distributions'''. That is, '''you can boot your IGEP Processor Boards with a different distributions''' than the pre-installed by ISEE (manufacturer).  {{Message/Information Message|message=To update your board with the latest version of the '''pre-installed software''' you can follow the article: [[Update the PRE-INSTALLED software image to a current release]].}}
This how to explains how to boot IGEPv2 or IGEP Module using a microSD card.
== Theory ==
OMAP35xx or DM37xx processors can boot from a microSD. IGEPv2 or IGEP Module uses COM MODULE use the microSD card as highest boot priority, it means that the processor try to boot from the microsd card before try to boot from other devices such the OneNand.
Exist There exist some rules for to boot from a microSD card.
*The microsd card must be content at latest 2 partitions.
''The processor ONLY load and execute the MLO program and ignore all the rest it's the X-loader(MLO) the program responsible to load the next programs such kernel or uboot if you use this last one approach.''
 
Therefore, we are going to '''setup a microSD card with these requirements''' and '''install a custom software distribution''' into it.
 
== Prerequisites ==
*Tools such, fdisk, mkfs.ext3, mkfs.vfat, gparted ...
*ToolChain.
 
== ToolChain<br> ==
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.43556 s, 2.4 MB/s</pre>
 
 
== Install GParted ==
We will use the gparted program for create the partitions, if you don't have this program installed then you must install it with this command:
<pre>sudo apt-get install gparted</pre>  
== GParted and Creation of Partitions ==
After that you can '''Apply'''.
 
=== Create the BOOT Partition ===
It is recommended to '''apply changes''' now or you might get an error later.
 
=== Create the ROOTFS Partition ===
[[Image:Gparted all configured.png|thumb|center]]
 
=== Apply all Changes ===
[[Image:Gparted boot flag.png|thumb|center]]Now we have the microsd prepared for copy the boot files
 == Boot Partition Structure ==
We commented in the theory point the OMAP needs only the MLO (x-loader) file for boot, we will start checking this point.
<br>
 
== X-Loader (MLO)<br> ==
[[Image:Rename Xloader to MLO.png|thumb|center]]Now we're ready for test the board boot from the microsd card.
 
=== X-Loader Boot ===
[[Image:IGEP-X-Loader Boot.png|thumb|center]]
 
=== Configure the IGEP-X-Loader ===
Create a new file into the boot partition named igep.ini with these content and save the file.
 == Kernel &amp; Rootfs ==
You can follow this other howto about [[The Linux kernel|how compile and install the Linux Kernel]].
Notes: The kernel binary resides inside the directory: $/home/jdoe/linux-omap-2.6/arch/arm/boot/'''zImage'''
We will use the [http://downloads.isee.biz/pub/files/linaro/releases/linaro-m-headless-tar-20101108-2.tar.gz linaro headless] image as rootfs but you can use your favorite rootfs also.
== Root File System == In this tutorial we will use the [http://downloads.isee.biz/pub/files/linaro/releases/linaro-m-headless-tar-20101108-2.tar.gz linaro headless] image as rootfs but you can use your favorite rootfs also. Here there are many articles about how to get many other [[:Category:Software distributions|software distributions]]. Here you've the [http://downloads.isee.biz/pub/files/linaro/releases/linaro-11.09-nano-n-tar-20110929-0.tar.gz linaro nano 11.09] available for download from our the ISEE server. 
=== Create the Rootfs mount point ===
$ sudo mkdir binary
</pre>
 
 
=== Mount the RootFS partition ===
<pre>$ media &gt; sudo mount /dev/mmcblkp2 /media/binary
</pre>
 
 
=== Untar the rootfs package ===
</pre>
 
 
=== Install the kernel Image<br> ===
Now we're ready for test our new microsd card<br>
 
= Test your new MicroSD<br> =
[[Image:Linaro Boot1.png|thumb|center]][[Image:Linaro Boot2.png|thumb|center]]
 
= Related articles =
*[[Boot up sequence]]
*[[Update the PRE-INSTALLED software image to a current release]]
*[[The Linux kernel]]
[[Category:Boot loaders]]
[[Category:Tutorials]]
[[Category:Software]]
[[Category:Merge|Update the PRE-INSTALLED software image to a current release]]
0
edits