From: Otavio Salvador Date: Sun, 29 Apr 2012 15:24:04 +0000 (-0300) Subject: image_types_fsl.bbclass: add support to skip u-boot padding X-Git-Tag: 2.1~1862 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ddc9992d4ca15397110385d98fea508ebcd00f0b;p=meta-freescale.git image_types_fsl.bbclass: add support to skip u-boot padding u-boot-imx has padding by default and machines using it need to skip it when generating the sdcard. 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 36f08946..a43e4c6b 100644 --- a/meta-fsl-arm/classes/image_types_fsl.bbclass +++ b/meta-fsl-arm/classes/image_types_fsl.bbclass @@ -4,6 +4,7 @@ IMAGE_BOOTLOADER ?= "u-boot" # Handle u-boot suffixes UBOOT_SUFFIX ?= "bin" +UBOOT_PADDING ?= "0" # # Create an image that can by written onto a SD card using dd. @@ -51,7 +52,7 @@ IMAGE_CMD_sdcard () { case "${IMAGE_BOOTLOADER}" in u-boot) - dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} of=${SDCARD} conv=notrunc seek=2 bs=512 + dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} of=${SDCARD} conv=notrunc seek=2 skip=${UBOOT_PADDING} bs=512 ;; barebox) dd if=${DEPLOY_DIR_IMAGE}/barebox-${MACHINE}.bin of=${SDCARD} conv=notrunc seek=1 skip=1 bs=512