RFC FWU: Add FWU Multi Bank Update for DeveloerBox
Get series with b4
b4 am 164511067605.43219.15508992404634142079.stgit@localhostVersions newest first · linked by author and title
- v2 RFC Latest posting 2/28 patches 1 replyIn review
- v2 posting 1/25 patches 7 repliesSuperseded
- v1 RFC14 patches 8 repliesSuperseded
Patches in v2 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | FWU: Calculate CRC32 in fwu_update_mdata()drivers/ | +10 | 0 replies | |
| 2/8 | FWU: Free metadata copy if gpt_get_mdata() faileddrivers/ drivers/ | +36 | 0 replies | |
| 3/8 | synquacer: Update for TBBR based new FIP layoutarch/ configs/ include/ | +22 | 0 replies | |
| 4/8 | dt/bindings: firmware: Add FWU metadata on SPI flash bindingdoc/ | +38 | 0 replies | |
| 5/8 | FWU: Add FWU metadata access driver for SPI flashdrivers/ drivers/ drivers/ +1 more | +306 | 0 replies | |
| 6/8 | FWU: synquacer: Add FWU Multi bank update support for DeveloperBoxarch/ board/ board/ +2 more | +207 | 0 replies | |
| 7/8 | FWU: synquacer: Initialize broken metadataboard/ board/ | +72 | 1 reply | |
| 8/8 | configs: synquacer: Add FWU support for DeveloperBoxconfigs/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [RFC PATCH v2 0/8] FWU: Add FWU Multi Bank Update for DeveloerBox
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/[email protected]/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 <[email protected]>