diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2012-04-29 12:24:04 -0300 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-04-29 12:30:09 -0300 |
| commit | ddc9992d4ca15397110385d98fea508ebcd00f0b (patch) | |
| tree | 319110e6a3e277e4028d0aaad5a8556b24a4421c /meta-fsl-arm | |
| parent | 067b273b476a2b32e911ee93b497036eead506b8 (diff) | |
| download | meta-freescale-ddc9992d4ca15397110385d98fea508ebcd00f0b.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 'meta-fsl-arm')
| -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 |
