Skip to content
Snippets Groups Projects
  1. Nov 02, 2022
  2. Nov 01, 2022
    • Tom Rini's avatar
      Merge branch '2022-10-31-FWU-add-FWU-multi-bank-update-feature-support' · c8d9ff63
      Tom Rini authored
      To quote the author:
      The patchset adds support for the FWU Multi Bank Update[1]
      feature. Certain aspects of the Dependable Boot[2] specification have
      also been implemented.
      
      The FWU multi bank update feature is used for supporting multiple
      sets(also called banks) of firmware image(s), allowing the platform to
      boot from a different bank, in case it fails to boot from the active
      bank. This functionality is supported by keeping the relevant
      information in a structure called metadata, which provides information
      on the images. Among other parameters, the metadata structure contains
      information on the currect active bank that is being used to boot
      image(s).
      
      Functionality is being added to work with the UEFI capsule driver in
      u-boot. The metadata is read to gather information on the update bank,
      which is the bank to which the firmware images would be flashed to. On
      a successful completion of the update of all components, the active
      bank field in the metadata is updated, to reflect the bank from which
      the platform will boot on the subsequent boots.
      
      Currently, the feature is being enabled on the STM32MP157C-DK2 and
      Synquacer boards. The DK2 board boots a FIP image from a uSD card
      partitioned with the GPT partioning scheme, while the Synquacer board
      boots a FIP image from a MTD partitioned SPI NOR flash device.
      
      This feature also requires changes in a previous stage of
      bootloader, which parses the metadata and selects the bank to boot the
      image(s) from. Support has being added in tf-a(BL2 stage) for the
      STM32MP157C-DK2 board to boot the active bank images. These changes
      have been merged to the upstream tf-a repository.
      
      The patch for adding a python test for the feature has been developed,
      and was sent in the version 5 of the patches[3]. However, the test
      script depends on adding support for the feature on MTD SPI NOR
      devices, and that is being done as part of the Synquacer
      patches. Hence these set of patches do not have the test script for
      the feature. That will be added through the patches for adding support
      for the feauture on Synquacer platform.
      
      [1] - https://developer.arm.com/documentation/den0118/a
      [2] - https://git.codelinaro.org/linaro/dependable-boot/mbfw/uploads/6f7ddfe3be24e18d4319e108a758d02e/mbfw.pdf
      [3] - https://lists.denx.de/pipermail/u-boot/2022-June/485992.html
      c8d9ff63
  3. Oct 31, 2022
Loading