[PATCH 1/2] ARM: break out the setup of OMAP systems as they need to have a vfat partition at the start of the disk in order for the SOC to load u-boot from. Signed-off-by: Dennis Gilmore <dennis at ausil.us>
Dennis Gilmore
dennis at ausil.us
Fri Aug 3 09:52:26 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
El Mon, 23 Jul 2012 13:37:38 -0700
"Brian C. Lane" <bcl at redhat.com> escribió:
> On Mon, Jul 16, 2012 at 11:24:43AM -0500, Dennis Gilmore wrote:
> > ---
> > pyanaconda/platform.py | 33 ++++++++++++++++++++++++++++++++-
> > 1 file changed, 32 insertions(+), 1 deletion(-)
> >
> > diff --git a/pyanaconda/platform.py b/pyanaconda/platform.py
> > index 1611797..05a496f 100644
> > --- a/pyanaconda/platform.py
> > +++ b/pyanaconda/platform.py
> > @@ -348,6 +348,32 @@ class ARM(Platform):
> > def armMachine(self):
> > return self._armMachine
> >
> > +class omapARM(ARM):
> > + _bootloaderClass = bootloader.UBOOTuEnv
> > + _boot_stage1_format_types = ["vfat"]
> > + _boot_stage1_device_types = ["partition"]
> > + _boot_stage1_mountpoints = ["/boot/uboot"]
> > + _boot_mbr_description = N_("Master Boot Record")
> > + _boot_descriptions = {"disk": _boot_mbr_description,
> > + "partition":
> > Platform._boot_partition_description} +
> > + def setDefaultPartitioning(self):
> > + from storage.partspec import PartSpec
> > + ret = Platform.setDefaultPartitioning(self)
> > + ret.append(PartSpec(mountpoint="/boot/uboot",
> > fstype="vfat", size=20,
> > + maxSize=20,
> > + grow=True,
> > weight=self.weight(fstype="vfat")))
> > + return ret
> > +
> > + def weight(self, fstype=None, mountpoint=None):
> > + score = Platform.weight(self, fstype=fstype,
> > mountpoint=mountpoint)
> > + if score:
> > + return score
> > + elif fstype == "vfat" and mountpoint == "/boot/uboot":
> > + return 6000
>
> This is always going to fail with your current call, mountpoint is
> None and you didn't pass in /boot/uboot
>
ok i based it on whats being done in the EFI class to make sure
that /boot/efi is there
OMAP systems need to have a fat partition at the start of the disk to
hold the bootloader and config the soc loads the bootloader from it.
open to better ways to do it
Dennis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
iEYEARECAAYFAlAbn1oACgkQkSxm47BaWfc9JQCeOrLR4hIvMVpXpLurKsphBoNh
BZsAn0eWmcYtsG8AVrrCotG5DJuNzNRg
=a2W1
-----END PGP SIGNATURE-----
More information about the anaconda-patches
mailing list