summaryrefslogtreecommitdiff
path: root/env/scsi.c
AgeCommit message (Collapse)Author
4 daysMerge patch series "env: scsi: support SCSI env without partition UUID"Tom Rini
David Lechner <[email protected]> says: 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. Link: https://lore.kernel.org/r/[email protected]
4 daysenv: scsi: add CONFIG_ENV_SCSI_HW_PARTITIONDavid Lechner
Add CONFIG_ENV_SCSI_HW_PARTITION and supporting code to allow loading the environment directly from a SCSI device without a partition table. Some platforms store the environment directly on the SCSI device without a way to look it up by partition UUID. Signed-off-by: David Lechner <[email protected]>
4 daysscsi: move scsi_scan() call out of scsi_get_blk_by_uuid()David Lechner
Move scsi_scan() call out of scsi_get_blk_by_uuid(). The only caller, env_scsi_get_part(), should be managing this call since it may also want to use different ways to get the partition information in the future. Signed-off-by: David Lechner <[email protected]>
4 daysenv: scsi: rename ENV_SCSI_PART_UUIDDavid Lechner
Rename SCSI_ENV_PART_UUID to ENV_SCSI_PART_UUID. All other environment- related config names are of the form ENV_<name>, so this is more consistent. Signed-off-by: David Lechner <[email protected]> Reviewed-by: Sumit Garg <[email protected]>
5 daysenv: Make more use of the ENV_SAVE_PTR macroTom Rini
With commit 82b2f4135719 ("env_internal.h: add alternative ENV_SAVE_PTR macro") we introduced the ENV_SAVE_PTR macro but as explained in the commit message, left full conversion for a later time. This commit makes more progress on that front by doing the remaining easy conversions to the new macro. Signed-off-by: Tom Rini <[email protected]> Changes in v2: - Reduce the number of conversions, some didn't work as expected once CMD_SAVEENV was actually disabled. - Finish converting UBI Cc Rasmus Villemoes <[email protected]>
2025-05-29env: Add support for storing env variables in SCSI devicesVaradarajan Narayanan
Allow SCSI to be able to store environment variables. Signed-off-by: Varadarajan Narayanan <[email protected]> Acked-by: Casey Connolly <[email protected]>