diff options
Diffstat (limited to 'classes/sdcard_image-socfpga.bbclass')
-rw-r--r-- | classes/sdcard_image-socfpga.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/sdcard_image-socfpga.bbclass b/classes/sdcard_image-socfpga.bbclass index 8ac12b1..672ea6d 100644 --- a/classes/sdcard_image-socfpga.bbclass +++ b/classes/sdcard_image-socfpga.bbclass | |||
@@ -26,6 +26,7 @@ FAT_SPACE ?= "102400" | |||
26 | 26 | ||
27 | # uBoot ENV offset | 27 | # uBoot ENV offset |
28 | SDIMG_UBOOT_ENV_OFFSET ?= "512" | 28 | SDIMG_UBOOT_ENV_OFFSET ?= "512" |
29 | ENV_BASE_NAME ??= "${UBOOT_CONFIG}" | ||
29 | 30 | ||
30 | # Boot partition begin at sector 1024 | 31 | # Boot partition begin at sector 1024 |
31 | # This is required as for c5/a5 mainline uboot hard codes the location | 32 | # This is required as for c5/a5 mainline uboot hard codes the location |
@@ -173,7 +174,7 @@ IMAGE_CMD_socfpga-sdimg () { | |||
173 | fi | 174 | fi |
174 | 175 | ||
175 | if [ -e "${DEPLOY_DIR_IMAGE}/u-boot-env-${ENV_BASE_NAME}.bin" ]; then | 176 | if [ -e "${DEPLOY_DIR_IMAGE}/u-boot-env-${ENV_BASE_NAME}.bin" ]; then |
176 | dd if=${DEPLOY_DIR_IMAGE}/u-boot-env-${ENV_BASE_NAME}.bin of=${SDIMG} bs=1 seek=${SDIMG_UBOOT_ENV_OFFSET} | 177 | dd if=${DEPLOY_DIR_IMAGE}/u-boot-env-${ENV_BASE_NAME}.bin of=${SDIMG} conv=notrunc bs=1 seek=${SDIMG_UBOOT_ENV_OFFSET} && sync && sync |
177 | fi | 178 | fi |
178 | 179 | ||
179 | } | 180 | } |