summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2014-12-03 14:49:40 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2014-12-11 10:08:10 -0200
commit7be17472a293f538702d375ba8cf3f48340f235a (patch)
treedb6b657fcaecfc5a6b8631af629f084257ef3106
parent9bc540eec9a7e280af13371ea70650fcc47ea627 (diff)
downloadmeta-fsl-arm-7be17472a293f538702d375ba8cf3f48340f235a.tar.gz
image_types_fsl.bbclass: Use 69K as offset to load image
The U-Boot mainline uses 69K as offset so we ought to use it here; this aligns the SD card image layout to work out of box with all U-Boot mainline based SPL boards. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--classes/image_types_fsl.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index c0fa9b6..097fdf3 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -133,7 +133,7 @@ generate_imx_sdcard () {
133 u-boot) 133 u-boot)
134 if [ -n "${SPL_BINARY}" ]; then 134 if [ -n "${SPL_BINARY}" ]; then
135 dd if=${DEPLOY_DIR_IMAGE}/${SPL_BINARY} of=${SDCARD} conv=notrunc seek=2 bs=512 135 dd if=${DEPLOY_DIR_IMAGE}/${SPL_BINARY} of=${SDCARD} conv=notrunc seek=2 bs=512
136 dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX_SDCARD} of=${SDCARD} conv=notrunc seek=42 bs=1K 136 dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX_SDCARD} of=${SDCARD} conv=notrunc seek=69 bs=1K
137 else 137 else
138 dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX_SDCARD} of=${SDCARD} conv=notrunc seek=2 skip=${UBOOT_PADDING} bs=512 138 dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX_SDCARD} of=${SDCARD} conv=notrunc seek=2 skip=${UBOOT_PADDING} bs=512
139 fi 139 fi