[PATCH] zynqmp: Save "bootseq" environment variable in dec format
egyszeregy at freemail.hu
egyszeregy at freemail.hu
Mon Feb 3 17:32:50 CET 2025
From: Benjamin Szőke <egyszeregy at freemail.hu>
Save "bootseq" environment variable in decimal format.
Signed-off-by: Benjamin Szőke <egyszeregy at freemail.hu>
---
board/xilinx/zynqmp/zynqmp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 8cdd9d8600..820fb252a3 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -488,7 +488,7 @@ static int boot_targets_setup(void)
if (bootseq >= 0) {
bootseq_len = snprintf(NULL, 0, "%i", bootseq);
debug("Bootseq len: %x\n", bootseq_len);
- env_set_hex("bootseq", bootseq);
+ env_set_ulong("bootseq", (unsigned long)bootseq);
}
/*
--
2.47.1.windows.2
More information about the U-Boot
mailing list