[U-Boot] [PATCH 1/8] arm: socfpga: Add distro boot to socfpga common header

Pavel Machek pavel at denx.de
Sun Feb 19 19:45:55 UTC 2017


Hi!

> > > > >  /* Environment for SDMMC boot */
> > > > >  #if defined(CONFIG_ENV_IS_IN_MMC) && !defined(CONFIG_ENV_OFFSET)
> > > > > -#define CONFIG_SYS_MMC_ENV_DEV		0	/* device 0 */
> > > > > -#define CONFIG_ENV_OFFSET		512	/* just after the
> > > > > MBR
> > > > > */
> > > > > +#define CONFIG_SYS_MMC_ENV_DEV		0		/*
> > > > > device 0
> > > > > */
> > > > > +#define CONFIG_ENV_OFFSET		(34*512)/* just after the GPT
> > > > > */
...
> I actually dont believe this will cause much of an issue. the env is placed
> immediately after the partition table.  I know this size fits between the
> table and the typical location of the first partition without issue.

Hmm. It is not immediately after partition table (==MBR), it is at
sector 34. Now, by changing size you already break the setups, so
moving it back to sector 1 does not help much, but can you explain?

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170219/af737bde/attachment.sig>


More information about the U-Boot mailing list