[ALL DISTROS] SD with multiple distros
Joachim Ott
jo.omsl at googlemail.com
Thu Sep 25 12:57:46 CEST 2008
2008/9/25 yves mahe <ymahe at zindep.com>
> Here are my commands to setup the u-boot environment:
>
> setenv menu_1 Boot from microSD (partition 2): setenv bootargs
> \${bootargs_base} rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5
> \${mtdparts} ro\; mmcinit\; ext2load mmc 0:2 0x32000000 /boot/uImage\;
> bootm 0x32000000
> setenv menu_2 Boot from microSD (partition 3): setenv bootargs
> \${bootargs_base} rootfstype=ext2 root=/dev/mmcblk0p3 rootdelay=5
> \${mtdparts} ro\; mmcinit\; ext2load mmc 0:3 0x32000000
> /boot/uImage.bin\; bootm 0x32000000
> setenv menu_3 Boot from microSD (partition 4): setenv bootargs
> \${bootargs_base} rootfstype=ext2 root=/dev/mmcblk0p4 rootdelay=5
> \${mtdparts} ro\; mmcinit\; ext2load mmc 0:4 0x32000000
> /boot/uImage.bin\; bootm 0x32000000
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 "ro" after $mtd_parts and just "uImage.bin" in the root-directory
instead of "/boot/uImage.bin".
>
> Right now, you are able to boot from your partitions 1, 2, 3 and 6 ?
Yes, and all 4 partitions work. Notice that 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).
# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 8168 MB, 8168931328 bytes
4 heads, 16 sectors/track, 249296 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 1 31251 1000024 83 Linux
/dev/mmcblk0p2 * 31252 62502 1000032 83 Linux
/dev/mmcblk0p3 * 62503 93753 1000032 83 Linux
/dev/mmcblk0p4 93754 249296 4977376 5 Extended
/dev/mmcblk0p5 93754 109379 500024 82 Linux swap
/dev/mmcblk0p6 * 109380 249296 4477336 83 Linux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/support/attachments/20080925/6286fca6/attachment.htm
More information about the support
mailing list