summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-04-29 12:24:04 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2012-04-29 12:30:09 -0300
commit607b7f3095649fca4af5ce0ae1b0b66998045442 (patch)
tree36d39bee7e61f51862492f61fcc138e71efe0ec8 /classes
parentd8c6117146d6a6ac012d7758b3f2540f9bffc4f9 (diff)
downloadmeta-fsl-arm-607b7f3095649fca4af5ce0ae1b0b66998045442.tar.gz
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 <otavio@ossystems.com.br>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_fsl.bbclass3
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
6UBOOT_SUFFIX ?= "bin" 6UBOOT_SUFFIX ?= "bin"
7UBOOT_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