[PATCH v2 5/6] configs: add qcom_lemans_snagboot_defconfig for Lemans-EVK

Balaji Selvanathan balaji.selvanathan at oss.qualcomm.com
Mon Jun 8 11:06:32 CEST 2026


Add a defconfig for booting U-Boot in snagboot mode on Lemans-EVK
development boards. In this mode, XBL loads U-Boot directly and
U-Boot immediately enters fastboot over USB for partition flashing.

Signed-off-by: Balaji Selvanathan <balaji.selvanathan at oss.qualcomm.com>
---
Changes in v2:
- Newly introduced in v2
---
 configs/qcom_lemans_snagboot_defconfig | 49 ++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/configs/qcom_lemans_snagboot_defconfig b/configs/qcom_lemans_snagboot_defconfig
new file mode 100644
index 00000000000..4b3bc41d070
--- /dev/null
+++ b/configs/qcom_lemans_snagboot_defconfig
@@ -0,0 +1,49 @@
+# Configuration for building U-Boot for snagboot/recovery mode
+# on Lemans-EVK dev boards.
+#
+# For normal production boot, use qcom_lemans_defconfig instead.
+
+#include "qcom_defconfig"
+
+# Address where U-Boot will be loaded
+CONFIG_TEXT_BASE=0x1c100000
+CONFIG_REMAKE_ELF=y
+CONFIG_FASTBOOT_BUF_ADDR=0xdb300000
+CONFIG_DEFAULT_DEVICE_TREE="qcom/lemans-evk"
+CONFIG_ENV_IS_IN_SCSI=y
+CONFIG_ENV_SCSI_PART_USE_TYPE_GUID=y
+# SCSI partition type GUID for logfs partition
+CONFIG_ENV_SCSI_PART_TYPE_GUID="bc0330eb-3410-4951-a617-03898dbe3372"
+# CONFIG_ENV_IS_DEFAULT is not set
+# CONFIG_ENV_IS_NOWHERE is not set
+
+CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK=y
+
+CONFIG_SKIP_RELOCATE=y
+
+CONFIG_FASTBOOT_FLASH_BLOCK=y
+CONFIG_FASTBOOT_FLASH_BLOCK_INTERFACE_NAME="scsi"
+CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID=4
+CONFIG_FASTBOOT_GPT_NAME="gpt"
+CONFIG_FASTBOOT_MBR_NAME="mbr"
+
+# CONFIG_PSCI_RESET is not set
+
+CONFIG_COUNTER_FREQUENCY=19200000
+
+# CONFIG_SAVE_PREV_BL_INITRAMFS_START_ADDR is not set
+
+# CONFIG_IOMMU is not set
+
+# CONFIG_REBOOT_MODE_ENV_UPDATE is not set
+
+CONFIG_QCOM_COMMAND_DB_OPTIONAL=y
+
+# Disable default env file to use CONFIG_BOOTCOMMAND instead
+# This allows snagboot-specific bootcmd without modifying shared default.env
+# CONFIG_ENV_USE_DEFAULT_ENV_TEXT_FILE is not set
+
+# Auto-enter fastboot mode for snagboot
+CONFIG_USE_BOOTCOMMAND=y
+CONFIG_BOOTCOMMAND="fastboot -l $fastboot_addr_r usb 0"
+CONFIG_BOOTDELAY=0

-- 
2.34.1



More information about the U-Boot mailing list