[meta-freescale] [meta-fsl-arm][PATCH] image_types_fsl.bbclass: Use 69K as offset to load image

Otavio Salvador otavio at ossystems.com.br
Wed Dec 3 09:50:52 PST 2014


The U-Boot mainline uses 69K as offset so we ought to use it here;
this aligns the SD card image layout to work out of box with all
U-Boot mainline based SPL boards.

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
 classes/image_types_fsl.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index 9533578..53f8767 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -133,7 +133,7 @@ generate_imx_sdcard () {
 		u-boot)
 		if [ -n "${SPL_BINARY}" ]; then
 			dd if=${DEPLOY_DIR_IMAGE}/${SPL_BINARY} of=${SDCARD} conv=notrunc seek=2 bs=512
-			dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX_SDCARD} of=${SDCARD} conv=notrunc seek=42 bs=1K
+			dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX_SDCARD} of=${SDCARD} conv=notrunc seek=69 bs=1K
 		else
 			dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX_SDCARD} of=${SDCARD} conv=notrunc seek=2 skip=${UBOOT_PADDING} bs=512
 		fi
-- 
2.1.1



More information about the meta-freescale mailing list