Преглед на файлове

imx: create sdcard image recipe with raw U-Boot

Most i.MX boards booting off eMMC or SD cards use raw U-Boot located at
69 kB offset from beginning of the device - create a recipe for such
image.

Signed-off-by: Lech Perczak <[email protected]>
Lech Perczak преди 3 години
родител
ревизия
f987887e14
променени са 1 файла, в които са добавени 10 реда и са изтрити 0 реда
  1. 10 0
      target/linux/imx/image/common.mk

+ 10 - 0
target/linux/imx/image/common.mk

@@ -49,3 +49,13 @@ define Build/imx-sdcard
 
 	$(Build/imx-combined-image-clean)
 endef
+
+define Build/imx-sdcard-raw-uboot
+	$(Build/imx-combined-image-prepare)
+
+	$(Build/imx-combined-image)
+	dd if=$(STAGING_DIR_IMAGE)/$(UBOOT)-SPL of=$@ bs=1024 seek=1 conv=notrunc
+	dd if=$(STAGING_DIR_IMAGE)/$(UBOOT)-u-boot-dtb.img of=$@ bs=1024 seek=69 conv=notrunc
+
+	$(Build/imx-combined-image-clean)
+endef