diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image_types_fsl.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index 36f0894..a43e4c6 100644 --- a/classes/image_types_fsl.bbclass +++ b/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 |