All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] zynqmp: Save "bootseq" environment variable in decimal format
@ 2025-02-04 20:56 egyszeregy
  2025-02-06 12:30 ` Simon Glass
  0 siblings, 1 reply; 3+ messages in thread
From: egyszeregy @ 2025-02-04 20:56 UTC (permalink / raw)
  To: u-boot; +Cc: michal.simek, love.kumar, Benjamin Szőke

From: Benjamin Szőke <egyszeregy@freemail.hu>

In U-Boot, most of mmc releated commands uses decimal value in arguments, like
"mmc dev ${bootseq}" or "bootargs=root=/dev/mmcblk${bootseq}p2". In order to
improve compatibilities, export "bootseq" number to environment variable in
decimal format instead of hex.

Signed-off-by: Benjamin Szőke <egyszeregy@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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-06 12:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-04 20:56 [PATCH v2] zynqmp: Save "bootseq" environment variable in decimal format egyszeregy
2025-02-06 12:30 ` Simon Glass
2025-02-06 12:36   ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.