u-boot-imx has padding by default and machines using it need to skip
it when generating the sdcard.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
# Handle u-boot suffixes
UBOOT_SUFFIX ?= "bin"
+UBOOT_PADDING ?= "0"
#
# Create an image that can by written onto a SD card using dd.
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