1,381
edits
Changes
From IGEP - ISEE Wiki
no edit summary
<pre>sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules_install INSTALL_MOD_PATH=[path to your target rootfs]
</pre>
== OneNand Boot ==
=== OneNand Partitions<br> ===
We suggest use minimum 3 partitions on the OneNand.
<pre>MTD partitions on "omap2-onenand":
(a) 0x000000000000-0x000000080000 : "X-Loader"(b) 0x000000080000-0x000000c80000 : "Boot"(c) 0x000000c80000-0x000020000000 : "File System"</pre> ==== X-Loader Partition ==== *Not fs formated (onenand raw) *Suggested size: 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 formated partition due the ROM not permits boot from a formated partition in flash, you should use flash_eraseall and nandwrite for copy x-loader in the first blocks.<pre><u>Suggested procedure:</u>Erase and copy the x-loader into the first flash partition:$nand_eraseall /dev/mtd0$nandwrite -p /dev/mtd0 <x-loader> Sign x-loader:You should execute contrib/signGP for sign the xloader that resides inside the flash memory.contrib/signGP x-load.binThe 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.This is a know OMAP/DM/AM OneNand/Nand boot limitation. This is the procedure for create the x-loader OneNand binary:You should execute: (You can use copy paste in your console)split -b 2K x-load.bin.ift split-for file in `ls split-a?`; do cat $file >> x-load-ddp.bin.ift; cat $file >> 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.</pre>==== <span style="display: none; " id="1299156619608S"> </span>Boot Partition ==== *fs used jffs2 zlib compressed filesystem.*Suggested size: 0xC00000 (12 MiB). X-Loader only support jffs2 partitions for boot partition. <u>Prepare the boot partition for the first use:</u> <u></u>You should follow the same procedure used for copy the x-loader in the first partition.<pre>Suggested procedure:Erase and copy the x-loader into the first flash partition:$nand_eraseall /dev/mtd0$nandwrite -p /dev/mtd0 <your_boot_initial_jffs2_file> Your initial boot partition can be a empty file the first time.
</pre>
<u>Next uses:</u> <u></u>You can mount the partition over your boot directory in the rootfs <pre>$mount /dev/mtdblck1 /boot</pre>And you can use the cp command for copy your kernel and igep.ini configuration file.<pre>$cp igep.ini /boot</pre>==== X-Loader Rootfs Partition ==== *fs (your prefered fs supported by linux, maybe a good choice it should be ubifs)*Size, all or you can create more partitions if you wish ... :) == Boot Priority == XLoader first try load from mmc and if it fails then try from OneNand.<br>
'''MLO (x-loader) in MMC, igep.ini and zImage in Onenand.'''<br>If only MLO it's provided this one try to load the other information from the Onenand.
=== ===
d) Sign x-loader<br>You should execute contrib/signGP for sign the xloader that resides inside the flash memory.<br>contrib/signGP x-load.bin <br>The signed x-loader it's named: x-load.bin.ift
<br>6 Contribution & Support & Report Bugs<br>======================================<br>Contributions to this project be welcome and you can send your patches to support@iseebcn.com<br>or you can use the igep forum for it.<br>You can access to IGEP-x-Loader repository using our git at git.igep.es<br>IGEP IRC Channel: http://webchat.freenode.net/?channels=igep<br><span style="display: none; " id="1299156619619E"> </span><br>