From ab90df0651c740408a11c6c0ff54e6eaa292f32f Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Wed, 3 Dec 2014 14:49:40 -0200 Subject: [PATCH] image_types_fsl.bbclass: Use 69K as offset to load image 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 --- meta-fsl-arm/classes/image_types_fsl.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass index 95335786..53f8767a 100644 --- a/meta-fsl-arm/classes/image_types_fsl.bbclass +++ b/meta-fsl-arm/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.40.1