[PATCH 0/6] env: scsi: support SCSI env without partition UUID

David Lechner dlechner at baylibre.com
Thu Mar 26 23:59:22 CET 2026


This is a series adding support for reading U-Boot env directly from
SCSI devices that do not have a partition table, similar to how we can
already do this for MMC devices.

The motivation behind this is that MediaTek's BSP is already using the
same disk images for both MMC and UFS devices, so we need to be able to
read the env from SCSI devices without requiring a partition UUID.

The series starts with cleaning up a few oddities we noticed in the
existing code. Then some refactoring so that the env code manages
calling scsi_scan() so that we don't have to duplicate that for the
new code path. Then finally, the last few patches add and document the
new functionality.

Signed-off-by: David Lechner <dlechner at baylibre.com>
---
David Lechner (6):
      env: scsi: rename ENV_SCSI_PART_UUID
      scsi: return ENODEV in scsi_get_blk_by_uuid()
      scsi: document return values of public functions
      scsi: move scsi_scan() call out of scsi_get_blk_by_uuid()
      env: scsi: add CONFIG_ENV_SCSI_HW_PARTITION
      env: scsi: document requirements for ENV_IS_IN_SCSI

 configs/qcom_qcs9100_defconfig |  2 +-
 drivers/scsi/scsi-uclass.c     |  8 +-------
 env/Kconfig                    | 30 +++++++++++++++++++++++++++++-
 env/scsi.c                     | 28 ++++++++++++++++++++++++----
 include/scsi.h                 |  5 +++++
 5 files changed, 60 insertions(+), 13 deletions(-)
---
base-commit: 80a4c49a4ab2ad06fa84a8b7bdf6e33b3b5101bf
change-id: 20260326-env-scsi-hw-part-support-77446f742f27

Best regards,
--  
David Lechner <dlechner at baylibre.com>



More information about the U-Boot mailing list