]> code.ossystems Code Review - meta-freescale.git/commitdiff
image_types_fsl.bbclass: Use 69K as offset to load image
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 3 Dec 2014 16:49:40 +0000 (14:49 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 4 Dec 2014 20:16:25 +0000 (18:16 -0200)
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@ossystems.com.br>
meta-fsl-arm/classes/image_types_fsl.bbclass

index 95335786889c2ce4f3c0793539a6eee83419bfce..53f8767a0e4eb938453932d8c14348fc46bd0f53 100644 (file)
@@ -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