[PATCH 1/1] Write upper-case BOOT.BIN to zynqmp MMC

Jared Baur jaredbaur at fastmail.com
Sat Nov 18 19:44:20 CET 2023


The zynqmp bootrom will not boot from an SD card with a fat32 fileystem
with a lowercase boot.bin file on it. This means that using DFU to
update the boot.bin file will render the device unusable since it is not
written in upper-case.

Signed-off-by: Jared Baur <jaredbaur at fastmail.com>
---
 board/xilinx/zynqmp/zynqmp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index f162803084..bcccf5b7c1 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -647,14 +647,14 @@ void set_dfu_alt_info(char *interface, char *devstr)
 	case SD_MODE1:
 		bootseq = mmc_get_env_dev();
 
-		len += snprintf(buf + len, DFU_ALT_BUF_LEN, "mmc %d=boot",
+		len += snprintf(buf + len, DFU_ALT_BUF_LEN, "mmc %d=BOOT",
 			       bootseq);
 
 		if (multiboot)
 			len += snprintf(buf + len, DFU_ALT_BUF_LEN,
 				       "%04d", multiboot);
 
-		len += snprintf(buf + len, DFU_ALT_BUF_LEN, ".bin fat %d 1",
+		len += snprintf(buf + len, DFU_ALT_BUF_LEN, ".BIN fat %d 1",
 			       bootseq);
 #if defined(CONFIG_SPL_FS_LOAD_PAYLOAD_NAME)
 		len += snprintf(buf + len, DFU_ALT_BUF_LEN, ";%s fat %d 1",
-- 
2.42.0



More information about the U-Boot mailing list