From: Otavio Salvador Date: Wed, 3 Dec 2014 16:49:40 +0000 (-0200) Subject: image_types_fsl.bbclass: Use 69K as offset to load image X-Git-Tag: 2.1~750 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ab90df0651c740408a11c6c0ff54e6eaa292f32f;p=meta-freescale.git 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 --- 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