[PATCH v2 0/4] Enable env in SCSI
Varadarajan Narayanan
quic_varada at quicinc.com
Tue May 6 09:24:11 CEST 2025
The qcs9100 based Ride platforms have UFS as their primary storage.
Hence add support to U-Boot env framework to be able to save and
retrieve the environment from UFS. The environment will be
saved/retrieved from the partition specified in the config option
CONFIG_SCSI_ENV_PART.
Also add an API to convert partition UUID string to block device
descriptor for UFS. This API will be used to get the block device
descriptor for the partition specified in CONFIG_SCSI_ENV_PART.
v2: Add part_get_info_by_uuid() similar to part_get_info_by_name()
Use SCSI instead of UFS
Use UUID for SCSI_ENV_PART instead of name
Varadarajan Narayanan (4):
disk: part: implement generic function part_get_info_by_uuid()
scsi: Implement get_blk() function
env: Add support for storing env variables in SCSI devices
configs: qcs9100: Enable env in SCSI
configs/qcs9100_defconfig | 5 +-
disk/part.c | 37 ++++++++++++
drivers/scsi/scsi-uclass.c | 30 ++++++++++
env/Kconfig | 15 ++++-
env/Makefile | 1 +
env/env.c | 3 +
env/scsi.c | 115 +++++++++++++++++++++++++++++++++++++
include/env_internal.h | 1 +
include/part.h | 20 +++++++
include/scsi.h | 11 ++++
10 files changed, 236 insertions(+), 2 deletions(-)
create mode 100644 env/scsi.c
--
2.34.1
More information about the U-Boot
mailing list