Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

The IGEP X-loader

893 bytes added, 22:46, 2 March 2012
no edit summary
= BOOT<br> =
The IGEP X-Loader must reside in the microSD card or in the OneNandNand Memory.<br>
== MMC Boot ==
You can follow this howto about how [http://code.google.com/p/beagleboard/wiki/LinuxBootDiskFormat prepare the microsd card] or [[How to boot from MicroSD Card]]<br>
Get a new mmc microsd card and create two partitions, the first one must be fat fat16/32 and the second one can be formated in any format type supported by linux kernel.<br>
=== Copy the files in the first (FAT) partition ===
In the first partition you must copy in this order:
#x-loader.bin.ift (you must rename this file to MLObefore copy it) / This is a signed image using contrib/signGP tool #x-loader configuration file [http://git.igep.es/?p=pub/scm/igep-x-loader.git;a=blob;f=scripts/igep.ini;h=7ecda91b2716d8984d48fa6c5eb5c74b8f0b0959;hb=HEAD igep.ini]&nbsp;also you can change the configuration file name editing the file:&nbsp;[http://git.igep.es/?p=pub/scm/igep-x-loader.git;a=blob;f=include/configs/igep0020-sdcard.h igep0020-sdcardigep00x0.h]&nbsp;(#define IGEP_BOOT_CFG_INI_FILE "igep.ini")
#Your desired kernel image.
or you can set the name for your kernel in the configuration file using the tag: kImageName
</pre>
Don't use a uImage kernel format (from uboot), only standard kernel formats it's be supported.
'''kernel build command example''':
<pre>sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules_install INSTALL_MOD_PATH=[path to your target rootfs]
</pre>
== OneNand Nand Boot ==
=== OneNand Nand Partitions<br> ===
We suggest use minimum 've defined 3 partitions on the OneNandNand Memory.
<pre>MTD partitions on "omap2-onenand":
(a) 0x000000000000-0x000000080000&nbsp;: "X-Loader"
*Not fs formated (onenand raw)
*Suggested sizeSize: 0x80000 (512 KiB)
*The xloader must be signed before copy it into the flash memory.
You should copy the x-loader in the firsts 4 blocks (first 512 KiB), this is not a&nbsp;formated partition due the ROM not permits boot from a formated partition in flash, you should use flash_eraseall and nandwrite [http://git.igep.es/?p=pub/scm/writeloader.git;a=summary writeloader] for copy x-loader in the first blocks. <pre><span class="Apple-style-span">Suggested procedure:
Sign the x-loader before write it on the flash or microsd card.
</span><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; white-space: normal; "><pre style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; ">Sign x-loader:
You should execute contrib/signGP for sign the xloader that resides inside the flash memory.
contrib/signGP x-load.bin
The signed x-loader it's named: x-load.bin.ift
</pre><div><br></div></span><span class="Apple-style-span">
Erase and copy the x-loader into the first flash partition:
$nand_eraseall /dev/mtd0
$nandwrite writeloader -p /dev/mtd0 i &lt;x-loader.bin.ift&gt;-o /dev/mtd0
Sign x-loader:
You should execute contrib/signGP for sign the xloader that resides inside the flash memory.
contrib/signGP x-load.bin
The signed x-loader it's named: x-load.bin.ift
Due the Onenand 512 MiB has two dies it's necessary split the x-loader and convert it to a 1 die binary.
for file in `ls split-a?`; do cat $file &gt;&gt; x-load-ddp.bin.ift; cat $file &gt;&gt; x-load-ddp.bin.ift; done
This last command generate a file named x-load-ddp.bin.ift this is the x-loader for copy it in the OneNand.</span></pre>
==== <span style="display: none;" id="1299156619608S">&nbsp;</span>Boot Partition ====
Also remember you can comment any line using ';' or '#' characters.
</pre>  
= FAQ =