summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPadmarao Begari <[email protected]>2026-03-06 13:48:07 +0100
committerMichal Simek <[email protected]>2026-03-23 14:58:47 +0100
commit07de5c1e0199b98c9d164482fd2ca0c1fc12be2d (patch)
tree0b71f9be34701797c300d66c92ed64590e45c72a /include
parent6ead1d0b0fe5243c0f512f5468862cfa4ea6bfef (diff)
arm64: versal2: Fix UFS boot command sequence
The BOOTENV_DEV_UFS macro is incomplete - it only initializes UFS and scans SCSI devices but does not actually boot anything. This causes the boot sequence to stop after scsi scan without loading a kernel. Update BOOTENV_DEV_UFS to set the devnum environment variable to the UFS instance number, initialize the device using $devnum, and delegate the boot process to the shared scsi_boot script. Remove the explicit scsi scan, as it is already handled by scsi_boot. This matches the pattern used by other boot device macros and ensures that UFS devices can successfully boot using the distro boot framework. Signed-off-by: Padmarao Begari <[email protected]> Signed-off-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/5447ce1d5c4a21b0b62ce76ad642296110364041.1772801284.git.michal.simek@amd.com
Diffstat (limited to 'include')
-rw-r--r--include/configs/amd_versal2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/amd_versal2.h b/include/configs/amd_versal2.h
index 404af2cd4c6..38d0bfc315b 100644
--- a/include/configs/amd_versal2.h
+++ b/include/configs/amd_versal2.h
@@ -108,7 +108,8 @@
#define BOOT_TARGET_DEVICES_UFS(func) func(UFS, ufs, 0)
#define BOOTENV_DEV_UFS(devtypeu, devtypel, instance) \
- "bootcmd_" #devtypel "=" #devtypel " init " #instance "; scsi scan;\0"
+ "bootcmd_" #devtypel "=devnum=" #instance "; " \
+ #devtypel " init $devnum; run scsi_boot\0"
#define BOOTENV_DEV_NAME_UFS(devtypeu, devtypel, instance) \
"ufs "