diff options
| -rw-r--r-- | meta-fsl-arm/classes/image_types_fsl.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass index 36f089461..a43e4c6b8 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" | |||
| 4 | 4 | ||
| 5 | # Handle u-boot suffixes | 5 | # Handle u-boot suffixes |
| 6 | UBOOT_SUFFIX ?= "bin" | 6 | UBOOT_SUFFIX ?= "bin" |
| 7 | UBOOT_PADDING ?= "0" | ||
| 7 | 8 | ||
| 8 | # | 9 | # |
| 9 | # Create an image that can by written onto a SD card using dd. | 10 | # Create an image that can by written onto a SD card using dd. |
| @@ -51,7 +52,7 @@ IMAGE_CMD_sdcard () { | |||
| 51 | 52 | ||
| 52 | case "${IMAGE_BOOTLOADER}" in | 53 | case "${IMAGE_BOOTLOADER}" in |
| 53 | u-boot) | 54 | u-boot) |
| 54 | dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} of=${SDCARD} conv=notrunc seek=2 bs=512 | 55 | dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} of=${SDCARD} conv=notrunc seek=2 skip=${UBOOT_PADDING} bs=512 |
| 55 | ;; | 56 | ;; |
| 56 | barebox) | 57 | barebox) |
| 57 | dd if=${DEPLOY_DIR_IMAGE}/barebox-${MACHINE}.bin of=${SDCARD} conv=notrunc seek=1 skip=1 bs=512 | 58 | dd if=${DEPLOY_DIR_IMAGE}/barebox-${MACHINE}.bin of=${SDCARD} conv=notrunc seek=1 skip=1 bs=512 |
