public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/8] FWU: Add FWU Multi Bank Update for DeveloerBox
@ 2022-02-17 15:11 Masami Hiramatsu
  2022-02-17 15:11 ` [RFC PATCH v2 1/8] FWU: Calculate CRC32 in fwu_update_mdata() Masami Hiramatsu
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Masami Hiramatsu @ 2022-02-17 15:11 UTC (permalink / raw)
  To: u-boot
  Cc: Masami Hiramatsu, Patrick Delaunay, Patrice Chotard,
	Heinrich Schuchardt, Alexander Graf, AKASHI Takahiro, Simon Glass,
	Bin Meng, Ilias Apalodimas, Jose Marinho, Grant Likely, Tom Rini,
	Etienne Carriere, Sughosh Ganu, Paul Liu

Hi,

Here is the 2nd version of RFC series of patches for the FWU Multi
Bank Update support for the DeveloperBox platform.
This series depends on Sughosh's Multi Bank Update v4 [1].

[1] https://lore.kernel.org/all/20220207182001.31270-1-sughosh.ganu@linaro.org/T/#u

Unlike the STM32MP board, DeveloperBox (SynQuacer) loads the firmware
from SPI NOR flash. Thus it doesn't use GPT partitions to store the
firmware banks and the FWU metadata. Instead, it stores those data
at fixed address areas on SPI NOR flash. I carefully chose the areas
which doesn't overlap the previous firmware and EDK2.

This adds FWU metadata SF driver for this FWU multi bank support
on SPI flash without GPT. This is identified by "u-boot,fwu-mdata-sf".
The last patch adds the DT bindings in YAML.

Since there is no GPT, the location GUID for images and the image
GUID for banks are Null GUID. I will fix this with uuid property
for fixed-partition devicetree afterwards.

And the SynQuacer also does not have any non-volatile register.
Thus this allocates the platform defined boot index on the SPI flash
too.

NOTE: To use this series, you also need to update SCP firmware[2] and
TF-A[3] on the DeveloperBox. Those are under cleaning up.

[2] https://git.linaro.org/people/masami.hiramatsu/SCP-firmware.git/
[3] https://git.linaro.org/people/masami.hiramatsu/arm-trusted-firmware.git/

Thank you,

---

Masami Hiramatsu (8):
      FWU: Calculate CRC32 in fwu_update_mdata()
      FWU: Free metadata copy if gpt_get_mdata() failed
      synquacer: Update for TBBR based new FIP layout
      dt/bindings: firmware: Add FWU metadata on SPI flash binding
      FWU: Add FWU metadata access driver for SPI flash
      FWU: synquacer: Add FWU Multi bank update support for DeveloperBox
      FWU: synquacer: Initialize broken metadata
      configs: synquacer: Add FWU support for DeveloperBox


 .../dts/synquacer-sc2a11-developerbox-u-boot.dtsi  |   33 ++
 board/socionext/developerbox/Kconfig               |   24 ++
 board/socionext/developerbox/Makefile              |    1 
 board/socionext/developerbox/fwu_plat.c            |  238 ++++++++++++++++
 configs/synquacer_developerbox_defconfig           |   12 +
 .../firmware/fwu-mdata-sf.yaml                     |   38 +++
 drivers/fwu-mdata/Kconfig                          |    9 +
 drivers/fwu-mdata/Makefile                         |    1 
 drivers/fwu-mdata/fwu-mdata-uclass.c               |   57 +---
 drivers/fwu-mdata/fwu_mdata_gpt_blk.c              |   49 ++-
 drivers/fwu-mdata/fwu_mdata_sf.c                   |  294 ++++++++++++++++++++
 include/configs/synquacer.h                        |   14 +
 include/fwu.h                                      |    2 
 13 files changed, 698 insertions(+), 74 deletions(-)
 create mode 100644 board/socionext/developerbox/fwu_plat.c
 create mode 100644 doc/device-tree-bindings/firmware/fwu-mdata-sf.yaml
 create mode 100644 drivers/fwu-mdata/fwu_mdata_sf.c

--
Masami Hiramatsu <masami.hiramatsu@linaro.org>

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

end of thread, other threads:[~2022-02-21  7:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-17 15:11 [RFC PATCH v2 0/8] FWU: Add FWU Multi Bank Update for DeveloerBox Masami Hiramatsu
2022-02-17 15:11 ` [RFC PATCH v2 1/8] FWU: Calculate CRC32 in fwu_update_mdata() Masami Hiramatsu
2022-02-17 15:11 ` [RFC PATCH v2 2/8] FWU: Free metadata copy if gpt_get_mdata() failed Masami Hiramatsu
2022-02-17 15:11 ` [RFC PATCH v2 3/8] synquacer: Update for TBBR based new FIP layout Masami Hiramatsu
2022-02-17 15:11 ` [RFC PATCH v2 4/8] dt/bindings: firmware: Add FWU metadata on SPI flash binding Masami Hiramatsu
2022-02-17 15:12 ` [RFC PATCH v2 5/8] FWU: Add FWU metadata access driver for SPI flash Masami Hiramatsu
2022-02-17 15:12 ` [RFC PATCH v2 6/8] FWU: synquacer: Add FWU Multi bank update support for DeveloperBox Masami Hiramatsu
2022-02-17 15:12 ` [RFC PATCH v2 7/8] FWU: synquacer: Initialize broken metadata Masami Hiramatsu
2022-02-21  7:04   ` Masami Hiramatsu
2022-02-17 15:12 ` [RFC PATCH v2 8/8] configs: synquacer: Add FWU support for DeveloperBox Masami Hiramatsu

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