[U-Boot] [PATCH v6 1/3] SPL: add support to boot from a partition type

Dalon Westergreen dalon.westergreen at linux.intel.com
Fri Feb 10 23:38:40 UTC 2017


On Fri, 2017-02-10 at 22:59 +0100, Alexander Graf wrote:
> 
> > 
> > Am 10.02.2017 um 22:43 schrieb Tom Rini <trini at konsulko.com>:
> > 
> > > 
> > > On Thu, Feb 09, 2017 at 12:20:02PM -0800, Dalon Westergreen wrote:
> > > 
> > > the socfpga bootrom supports mmc booting from either a raw image
> > > starting at 0x0, or from a partition of type 0xa2.  This patch
> > > adds support for locating the boot image in the first type 0xa2
> > > partition found.
> > > 
> > > Assigned a partition number of -1 will cause a search for a
> > > partition of type CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
> > > and use it to find the u-boot image
> > > 
> > > Signed-off-by: Dalon Westergreen <dwesterg at gmail.com>
> > [snip]
> > > 
> > > +config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
> > > +    hex "Partition Type on the MMC to load U-Boot from"
> > > +    depends on SPL && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
> > > +    default 0xa2
> > 
> > This default should depend on ARCH_SOCFPGA as well.
> 
> We discussed this in earlier review. IMHO 0xa2 is as good a default as 0x0 for
> non-socfpga targets.
> 
> Or asked differently: What default should we have for others? :)

i moved this to arch/arm/mach-socfpga per marek's suggestion.

> 
> Alex
> 
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot


More information about the U-Boot mailing list