aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Szőke <egyszeregy@freemail.hu>2025-02-04 21:56:17 +0100
committerMichal Simek <michal.simek@amd.com>2025-02-05 16:22:55 +0100
commit0f019056b2d23aaa839fab31c016d73009870a23 (patch)
tree2a4317779f62e96df8cd70282ac766c9102d130c
parenteade90fd005957ccd5012f87642d6a71ba6fead3 (diff)
downloadu-boot-0f019056b2d23aaa839fab31c016d73009870a23.tar.gz
zynqmp: Save "bootseq" environment variable in decimal format
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> Link: https://lore.kernel.org/r/20250204205617.1238-1-egyszeregy@freemail.hu Signed-off-by: Michal Simek <michal.simek@amd.com>
-rw-r--r--board/xilinx/zynqmp/zynqmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 8cdd9d86009..820fb252a3f 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);
}
/*