From: Stefano Babic Date: Tue, 29 Nov 2016 17:25:05 +0100 Subject: [U-Boot] [PATCH v2] arm: mx6: specify SPL padding In-Reply-To: <20161115183824.11860-1-stefan@agner.ch> References: <20161115183824.11860-1-stefan@agner.ch> Message-ID: <959170ce-d144-a107-4e99-d0fb38f240ee@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 15/11/2016 19:38, Stefan Agner wrote: > From: Stefan Agner > > Specify standard padding for payload to 68KB. This is derived from > the maximum header size plus maximum SPL size. It matches the > already defined offset for SD/eMMC devices (69KB) too. This allows > to use the u-boot-with-spl.imx build target to generate a directly > flashable image which can be flashed using: > > dd if=u-boot-with-spl.imx of=/dev/mmcblk0 bs=512 skip=2 > > While the patch has been created with SD/eMMC in mind, this also > works with other boot media. The board file needs to configure the > media specific (absolute) payload offset accordingly. Especially > the IVT offset is boot media specific and can be retrieved from the > reference manual (Table 8-25. Image Vector Table Offset and Initial > Load Region Size). For NAND boot a define like this should do the > job: > > #define CONFIG_SYS_NAND_U_BOOT_OFFS (SPL_PAD_TO + 0x400) > > Signed-off-by: Stefan Agner > > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================