public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm: mx6: specify SPL padding
@ 2016-11-15  2:06 Stefan Agner
  2016-11-15  9:59 ` Max Krummenacher
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Agner @ 2016-11-15  2:06 UTC (permalink / raw)
  To: u-boot

From: Stefan Agner <stefan.agner@toradex.com>

When building SPL with eMMC boot support, specify standard padding
for payload to match the load sector during boot. This allows to
use the u-boot-with-spl.imx build target to generate a direcly
flashable image which can be flashed using:

  dd if=u-boot-with-spl.imx of=/dev/mmcblk0 bs=512 skip=2

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>

---

 include/configs/imx6_spl.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/configs/imx6_spl.h b/include/configs/imx6_spl.h
index 76d1ca0..ca3ed19 100644
--- a/include/configs/imx6_spl.h
+++ b/include/configs/imx6_spl.h
@@ -42,6 +42,12 @@
 #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION	1
 #define CONFIG_SYS_MONITOR_LEN  (CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS/2*1024)
 #define CONFIG_SPL_ABORT_ON_RAW_IMAGE
+/*
+ * SPL starts at 1KB (ROM offset), hence we need to pad SPL up to 68KB so
+ * that payload (U-Boot) will be at 69KB (sector 138) on the eMMC/SD card.
+ * Required for targets such as u-boot-with-spl.imx.
+ */
+#define CONFIG_SPL_PAD_TO			0x11000
 #endif
 
 /* SATA support */
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-11-15 18:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-15  2:06 [U-Boot] [PATCH] arm: mx6: specify SPL padding Stefan Agner
2016-11-15  9:59 ` Max Krummenacher
2016-11-15 16:12   ` Tom Rini
2016-11-15 17:42     ` Stefan Agner
2016-11-15 18:04       ` Marek Vasut
2016-11-15 18:04         ` Stefan Agner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox