grub in MTD partition #7?

Andy Green andy at openmoko.com
Tue Aug 26 21:18:12 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:
| Is it possible to create another small partition of 1 MB size and put
| grub into it? My hope is to have the kernel again within the partition
| like in the good old days (at least for the SD-card) and not in a
| separate partition.

You don't need grub to fish the kernel out of ext2 or ext3 filesystem on
SD Card, current U-Boot from NAND can do it.  Try this one-liner from
NAND U-Boot prompt (suitably meddled with perhaps, this is for one ext3
partition)

setenv bootcmd  mmcinit \; ext2load mmc 1 0x32000000 uImage.bin \;
setenv bootargs \${mtdparts} rootfstype=ext3 root=/dev/mmcblk0p1
console=ttySAC2,115200 loglevel=8 init=/sbin/init \; bootm 0x32000000 ; boot

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAki0VvQACgkQOjLpvpq7dMpcawCfWD5VQ7SSQppVLL3lfd0+NG6S
gyEAoJWx2g/EuwYztCoKYFqoNJdTmSpm
=cGfJ
-----END PGP SIGNATURE-----



More information about the support mailing list