From 640b73f5ecb2fccd65cd733ac983ea844cc2e0ac Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Fri, 13 Nov 2015 13:28:22 +0100 Subject: [PATCH] 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 --- tool/create_uboot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tool/create_uboot b/tool/create_uboot index d43cf6aa1..c0f224638 100755 --- a/tool/create_uboot +++ b/tool/create_uboot @@ -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/ conv=fsync" + $(ECHO) "sudo dd if=$(MMC_IMG) of=/dev/ bs=1K seek=1 conv=fsync" $(ECHO) $(UBOOT_IMGS): $(UBOOT_BUILD_CONF) $(UBOOT_DIR)