Skip to content

Commit

Permalink
sunxi: t113: add an extra step to copy u-boot into bin/ for eMMC boot…
Browse files Browse the repository at this point in the history
… support

Put an u-boot.bin into bin/ to make it easier for picking it to
install onto mmcblk1boot0.

Signed-off-by: Zoltan HERPAI <[email protected]>
  • Loading branch information
wigyori committed Feb 5, 2025
1 parent 6aeb42a commit d6a535d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions target/linux/sunxi/image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ define Build/sunxi-emmc
rm -f $@.boot
endef

define Build/sunxi-emmc-uboot-copy
$(CP) $(STAGING_DIR_IMAGE)/$(DEVICE_NAME)-u-boot-with-spl.bin $(BIN_DIR)/
endef

define Device/Default
PROFILES := Default
KERNEL_NAME := zImage
Expand Down
2 changes: 1 addition & 1 deletion target/linux/sunxi/image/cortexa7.mk
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ define Device/myir_myd-yt113x
SOC := sun8i-t113s
IMAGES += emmc.img.gz
IMAGE/sdcard.img.gz := sunxi-sdcard | append-metadata | gzip
IMAGE/emmc.img.gz := boot-scr-emmc | sunxi-emmc | append-metadata | gzip
IMAGE/emmc.img.gz := sunxi-emmc-uboot-copy | boot-scr-emmc | sunxi-emmc | append-metadata | gzip
endef
TARGET_DEVICES += myir_myd-yt113x

Expand Down

0 comments on commit d6a535d

Please sign in to comment.