<div dir="ltr">2008/9/25 yves mahe <span dir="ltr">&lt;<a href="mailto:ymahe@zindep.com">ymahe@zindep.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Here are my commands to setup the u-boot environment:<br>
<br>
setenv menu_1 Boot from microSD (partition 2): setenv bootargs<br>
\${bootargs_base} rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5<br>
\${mtdparts} ro\; mmcinit\; ext2load mmc 0:2 0x32000000 /boot/uImage\;<br>
bootm 0x32000000<br>
setenv menu_2 Boot from microSD (partition 3): setenv bootargs<br>
\${bootargs_base} rootfstype=ext2 root=/dev/mmcblk0p3 rootdelay=5<br>
\${mtdparts} ro\; mmcinit\; ext2load mmc 0:3 0x32000000<br>
/boot/uImage.bin\; bootm 0x32000000<br>
setenv menu_3 Boot from microSD (partition 4): setenv bootargs<br>
\${bootargs_base} rootfstype=ext2 root=/dev/mmcblk0p4 rootdelay=5<br>
\${mtdparts} ro\; mmcinit\; ext2load mmc 0:4 0x32000000<br>
/boot/uImage.bin\; bootm 0x32000000</blockquote><div><br>I create the environment with uboot-envedit (I prepare it on the desktop PC and just copy the binary over to the Freerunner and write it to the flash). I have no &quot;ro&quot; after $mtd_parts and just &quot;uImage.bin&quot; in the root-directory instead of &quot;/boot/uImage.bin&quot;.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Right now, you are able to boot from your partitions 1, 2, 3 and 6 ?</blockquote><div><br>Yes, and all 4 partitions work. Notice that&nbsp; mmcblk0p6 also starts beyond the 4 GB that Andy mentioned. Try to make the first 3 partitions 1 GB only (your last message has just arrived while I was writing this).<br>
<br>&nbsp;# fdisk -l /dev/mmcblk0<br><br>Disk /dev/mmcblk0: 8168 MB, 8168931328 bytes<br>4 heads, 16 sectors/track, 249296 cylinders<br>Units = cylinders of 64 * 512 = 32768 bytes<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Blocks&nbsp; Id System<br>
/dev/mmcblk0p1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 31251&nbsp;&nbsp;&nbsp;&nbsp; 1000024&nbsp; 83 Linux<br>/dev/mmcblk0p2&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 31252&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 62502&nbsp;&nbsp;&nbsp;&nbsp; 1000032&nbsp; 83 Linux<br>/dev/mmcblk0p3&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 62503&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 93753&nbsp;&nbsp;&nbsp;&nbsp; 1000032&nbsp; 83 Linux<br>/dev/mmcblk0p4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 93754&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 249296&nbsp;&nbsp;&nbsp;&nbsp; 4977376&nbsp;&nbsp; 5 Extended<br>
/dev/mmcblk0p5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 93754&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 109379&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 500024&nbsp; 82 Linux swap<br>/dev/mmcblk0p6&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 109380&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 249296&nbsp;&nbsp;&nbsp;&nbsp; 4477336&nbsp; 83 Linux<br><br></div></div><br></div>