From mboxrd@z Thu Jan 1 00:00:00 1970 From: Max Krummenacher Date: Sat, 15 Oct 2016 21:17:12 +0200 Subject: [U-Boot] [PATCH 3/3] mx6: synchronize SPL to u-boot offset In-Reply-To: <68cb91d2-ef94-a3da-18d2-eda977bc617a@denx.de> References: <1476551416-10735-1-git-send-email-max.krummenacher@toradex.com> <1476551416-10735-3-git-send-email-max.krummenacher@toradex.com> <68cb91d2-ef94-a3da-18d2-eda977bc617a@denx.de> Message-ID: <1476559032.2434.16.camel@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marak > > --- a/include/configs/imx6_spl.h > > +++ b/include/configs/imx6_spl.h > > @@ -23,6 +23,8 @@ > > * which consists of a 4K header in front of us that contains > > the IVT, DCD > > * and some padding thus 'our' max size is really 0x00908000 - > > 0x00918000 > > * or 64KB > > + * - Padding between start of SPL(with IVT...) and U-Boot is > > 68KB, SPL starts > > + * at 1KB, U-Boot at 69kB into the storage media. > > */ > > #define CONFIG_SYS_THUMB_BUILD > > #define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/armv7/omap > > -common/u-boot-spl.lds" > > @@ -38,6 +40,7 @@ > > /* MMC support */ > > #if defined(CONFIG_SPL_MMC_SUPPORT) > > #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 138 /* > > offset 69KB */ > > +#define CONFIG_SPL_PAD_TO 0x11000 /* offset > > 68KB */ > > Does this mess up boards which can boot from both SD and other boot > media (NAND, SPI NOR, PNOR...) ? Good point. CONFIG_SPL_PAD_TO is used to create the combined SPL/U-Boot binary. While I have not found any use of this by any config which includes imx6_spl.h it might hinder future boards. So it's probably best to define CONFIG_SPL_PAD_TO in the individual board configs and skip this patch. Max