Skip to contentSkip to conversation

qcom_defconfig: Switch Qualcomm fastboot flash from MMC to block

PATCH In review Balaji Selvanathan 2 participants 4 messages Feb 16 – May 1

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qcom_defconfig: Switch Qualcomm fastboot flash from MMC to block

Replace MMC-specific fastboot flash configuration with generic block device support for Qualcomm platforms. This change switches from MMC device 0 to SCSI interface with device ID 4, enabling fastboot operations on UFS storage instead of eMMC.

---
 configs/qcom_defconfig | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
configs/qcom_defconfig +3 -2
index fe5880de1fd..2666adb0569 100644
@@ -77,8 +77,9 @@ CONFIG_SYS_DFU_DATA_BUF_SIZE=0x200000
 CONFIG_USB_FUNCTION_FASTBOOT=y
 CONFIG_FASTBOOT_BUF_ADDR=0x0
 CONFIG_FASTBOOT_FLASH=y
-CONFIG_FASTBOOT_FLASH_MMC_DEV=0
-CONFIG_FASTBOOT_MMC_USER_SUPPORT=y
+CONFIG_FASTBOOT_FLASH_BLOCK=y
+CONFIG_FASTBOOT_FLASH_BLOCK_INTERFACE_NAME="scsi"
+CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID=4
 CONFIG_MSM_GPIO=y
 CONFIG_QCOM_PMIC_GPIO=y
 CONFIG_DM_I2C=y

---
base-commit: f9ffeec4bdcf1da655a0ffea482062adde78fee8
change-id: 20260216-fb_block-6193ec15ccf6

Best regards,

Signature · 1 line
Balaji Selvanathan <[email protected]>
#1 lore raw

Hi Balaji,

Quoted 4 lines · Balaji Selvanathan

Replace MMC-specific fastboot flash configuration with generic block device support for Qualcomm platforms. This change switches from MMC device 0 to SCSI interface with device ID 4, enabling fastboot operations on UFS storage instead of eMMC.

I don't think if it's right for qcom generic defconfig to hardcode fastboot flash device. Can you try to see rather if the fastboot flash device can be determined at runtime? As otherwise it might end up in target specific defconfig which we should avoid if we can.

-Sumit

Quoted 31 lines
---
 configs/qcom_defconfig | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
configs/qcom_defconfig +3 -3
index fe5880de1fd..2666adb0569 100644
@@ -77,8 +77,9 @@ CONFIG_SYS_DFU_DATA_BUF_SIZE=0x200000
 CONFIG_USB_FUNCTION_FASTBOOT=y
 CONFIG_FASTBOOT_BUF_ADDR=0x0
 CONFIG_FASTBOOT_FLASH=y
-CONFIG_FASTBOOT_FLASH_MMC_DEV=0
-CONFIG_FASTBOOT_MMC_USER_SUPPORT=y
+CONFIG_FASTBOOT_FLASH_BLOCK=y
+CONFIG_FASTBOOT_FLASH_BLOCK_INTERFACE_NAME="scsi"
+CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID=4
 CONFIG_MSM_GPIO=y
 CONFIG_QCOM_PMIC_GPIO=y
 CONFIG_DM_I2C=y
 
---

base-commit: f9ffeec4bdcf1da655a0ffea482062adde78fee8
change-id: 20260216-fb_block-6193ec15ccf6

Best regards,

Signature · 1 line
Balaji Selvanathan <[email protected]>
#2 lore raw
Quoted 11 lines · Sumit Garg

Hi Balaji,

Quoted 4 lines · Balaji Selvanathan

Replace MMC-specific fastboot flash configuration with generic block device support for Qualcomm platforms. This change switches from MMC device 0 to SCSI interface with device ID 4, enabling fastboot operations on UFS storage instead of eMMC.

I don't think if it's right for qcom generic defconfig to hardcode fastboot flash device. Can you try to see rather if the fastboot flash device can be determined at runtime? As otherwise it might end up in target specific defconfig which we should avoid if we can.

Hi Sumit,

Implemented the runtime determination of fastboot device in : https://lore.kernel.org/u-boot/[email protected]/

However, I think we need to assign CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID, so that if user doesnt provide device number in the fastboot commands, then we can use the device mentioned in CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID as default.

Thanks,

Balaji

Quoted 33 lines

-Sumit

Quoted 30 lines
---
  configs/qcom_defconfig | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
configs/qcom_defconfig +3 -3
index fe5880de1fd..2666adb0569 100644
@@ -77,8 +77,9 @@ CONFIG_SYS_DFU_DATA_BUF_SIZE=0x200000
  CONFIG_USB_FUNCTION_FASTBOOT=y
  CONFIG_FASTBOOT_BUF_ADDR=0x0
  CONFIG_FASTBOOT_FLASH=y
-CONFIG_FASTBOOT_FLASH_MMC_DEV=0
-CONFIG_FASTBOOT_MMC_USER_SUPPORT=y
+CONFIG_FASTBOOT_FLASH_BLOCK=y
+CONFIG_FASTBOOT_FLASH_BLOCK_INTERFACE_NAME="scsi"
+CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID=4
  CONFIG_MSM_GPIO=y
  CONFIG_QCOM_PMIC_GPIO=y
  CONFIG_DM_I2C=y
 
---

base-commit: f9ffeec4bdcf1da655a0ffea482062adde78fee8
change-id: 20260216-fb_block-6193ec15ccf6

Best regards,

Signature · 1 line
Balaji Selvanathan <[email protected]>
#3 lore raw
Quoted 14 lines · Balaji Selvanathan
Quoted 11 lines · Sumit Garg

Hi Balaji,

Quoted 4 lines · Balaji Selvanathan

Replace MMC-specific fastboot flash configuration with generic block device support for Qualcomm platforms. This change switches from MMC device 0 to SCSI interface with device ID 4, enabling fastboot operations on UFS storage instead of eMMC.

I don't think if it's right for qcom generic defconfig to hardcode fastboot flash device. Can you try to see rather if the fastboot flash device can be determined at runtime? As otherwise it might end up in target specific defconfig which we should avoid if we can.

Quoted 8 lines

Hi Sumit,

Implemented the runtime determination of fastboot device in : https://lore.kernel.org/u-boot/[email protected]/

However, I think we need to assign CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID, so that if user doesnt provide device number in the fastboot commands, then we can use the device mentioned in CONFIG_FASTBOOT_FLASH_BLOCK_DEVICE_ID as default.

Please capture any patch-set dependencies in the comments section. I think for this patch it would rather makes sense if you bundle it along that fastboot patch-set.

-Sumit