create_uboot: spare out first 1K of target medium

This enables installation of the bootloader image without wiping the
partition table which is needed at least for the tz_vmm tutorial with
hw_usb_armory.

Ref #1497
This commit is contained in:
Martin Stein 2015-11-13 13:28:22 +01:00 committed by Christian Helmuth
parent 8c22e5d535
commit 640b73f5ec
1 changed files with 3 additions and 3 deletions

View File

@ -72,8 +72,8 @@ UBOOT_IMG_SPL := $(UBOOT_BUILD_DIR)/SPL
UBOOT_IMGS := $(UBOOT_IMG) $(UBOOT_IMG_SPL)
UBOOT_CONF := wandboard_config
FINISH_IMAGE := \
dd if=$(UBOOT_IMG_SPL) of=$(MMC_IMG) bs=1k seek=1 conv=notrunc,fsync; \
dd if=$(UBOOT_IMG) of=$(MMC_IMG) bs=1k seek=69 conv=notrunc,fsync;
dd if=$(UBOOT_IMG_SPL) of=$(MMC_IMG) bs=1k seek=0 conv=notrunc,fsync; \
dd if=$(UBOOT_IMG) of=$(MMC_IMG) bs=1k seek=68 conv=notrunc,fsync;
endif
#
@ -89,7 +89,7 @@ $(MMC_IMG): $(UBOOT_IMGS)
$(ECHO)
$(ECHO) "Successfully created MMC image."
$(ECHO) "You can install the image on an empty MMC for example via:"
$(ECHO) "sudo dd if=$(MMC_IMG) of=/dev/<YOUR_MMC> conv=fsync"
$(ECHO) "sudo dd if=$(MMC_IMG) of=/dev/<YOUR_MMC> bs=1K seek=1 conv=fsync"
$(ECHO)
$(UBOOT_IMGS): $(UBOOT_BUILD_CONF) $(UBOOT_DIR)