public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v4 0/4] qcom: implement capsule updates
@ 2024-10-12 13:57 Caleb Connolly
  2024-10-12 13:57 ` [PATCH v4 1/4] dfu: add scsi backend Caleb Connolly
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Caleb Connolly @ 2024-10-12 13:57 UTC (permalink / raw)
  To: Tom Rini, Simon Glass, Lukasz Majewski, Mattijs Korpershoek,
	Caleb Connolly, Neil Armstrong, Sumit Garg
  Cc: Ilias Apalodimas, u-boot, u-boot-qcom

Hook up support for capsule updates loaded from disk on Qualcomm
platforms.

Most Qualcomm devices have an A/B partition layout, with most partitions
duplicated. The metadata on which slot is active is stored in the GPT
headers in the vendor-specific attribute bits of each partition.

Add support for reading this attributes via the disk_partition struct
and using them to determine which boot partition U-Boot is flashed to
and generate the appropriate DFU string.

This logic is gated behind a check to ensure that U-Boot is actually
being chainloaded and not run via some other mechanism.

SCSI support for most Qualcomm platforms is not yet enabled upstream,
but will follow in future patches.

This series enables capsule updates on the RB2, however [1] is required
for it to work properly (as otherwise MMC won't be available).

[1]: https://lore.kernel.org/u-boot/20240527-b4-clk-stub-v2-0-29013855e343@linaro.org/

---
Changes in v4:
- Adjust to only support the rb3 gen 2 (since where to flash u-boot is
  still undecided for other boards) and skip the active slot check since
  both may be 0 on this platform.
- Link to v3: https://lore.kernel.org/r/20240603-b4-qcom-capsule-updates-v3-0-fe2e083289ec@linaro.org

Changes in v3:
- Address comments in scsi dfu support
- enable CONFIG_DFU_SCSI for qcom
- Link to v2: https://lore.kernel.org/r/20240527-b4-qcom-capsule-updates-v2-0-47583d7ad428@linaro.org

Changes in v2:
- Add qcom capsule update support patches
- Link to v1: https://lore.kernel.org/r/20240409-b4-dfu-scsi-v1-0-3e1441a60376@linaro.org

---
Caleb Connolly (4):
      dfu: add scsi backend
      disk: expose partition type flags
      mach-snapdragon: implement capsule update support
      qcom_defconfig: enable capsule update support

 arch/arm/mach-snapdragon/Kconfig          |   3 +
 arch/arm/mach-snapdragon/Makefile         |   1 +
 arch/arm/mach-snapdragon/board.c          |   3 +
 arch/arm/mach-snapdragon/capsule_update.c | 153 +++++++++++
 arch/arm/mach-snapdragon/qcom-priv.h      |   6 +
 configs/qcm6490_defconfig                 |   6 +
 configs/qcom_defconfig                    |   8 +-
 disk/part_efi.c                           |   1 +
 doc/usage/dfu.rst                         |  32 +++
 drivers/dfu/Kconfig                       |   7 +
 drivers/dfu/Makefile                      |   1 +
 drivers/dfu/dfu.c                         |   5 +-
 drivers/dfu/dfu_scsi.c                    | 435 ++++++++++++++++++++++++++++++
 include/configs/qcom.h                    |   5 +
 include/dfu.h                             |  27 ++
 include/part.h                            |   1 +
 16 files changed, 692 insertions(+), 2 deletions(-)
---
change-id: 20240523-b4-qcom-capsule-updates-ea2e4f8f0ff0
base-commit: 86f6e73c8d09aab77d9fa2f0583bcbe0f2732371

// Caleb (they/them)


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-10-17 14:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-12 13:57 [PATCH v4 0/4] qcom: implement capsule updates Caleb Connolly
2024-10-12 13:57 ` [PATCH v4 1/4] dfu: add scsi backend Caleb Connolly
2024-10-15  9:32   ` Mattijs Korpershoek
2024-10-17 13:16     ` Caleb Connolly
2024-10-17 13:56       ` Mattijs Korpershoek
2024-10-12 13:57 ` [PATCH v4 2/4] disk: expose partition type flags Caleb Connolly
2024-10-12 13:57 ` [PATCH v4 3/4] mach-snapdragon: implement capsule update support Caleb Connolly
2024-10-14  6:53   ` Neil Armstrong
2024-10-14  9:02   ` Ilias Apalodimas
2024-10-12 13:57 ` [PATCH v4 4/4] qcom_defconfig: enable " Caleb Connolly
2024-10-14  6:53   ` Neil Armstrong
2024-10-17 13:19     ` Caleb Connolly
2024-10-17 14:41       ` neil.armstrong
2024-10-14  9:00   ` Ilias Apalodimas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox