Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick to earlgrey_1.0.0: [ownership] Initialize owner configuration #24873

Merged
merged 5 commits into from
Oct 25, 2024

Commits on Oct 24, 2024

  1. [boot_policy] Don't crash if boot_policy is invalid

    In the event the primary_bl0_slot is neither `SlotA` or `SlotB`, default
    to SlotA rather than boot-looping forever.
    
    Signed-off-by: Chris Frantz <[email protected]>
    (cherry picked from commit 993abff)
    cfrantz committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    0cde7ec View commit details
    Browse the repository at this point in the history
  2. [ownership] Add fake owner keys

    The fake owner keys include:
    - An owner key.
    - An activate key.
    - An unlock key.
    
    Signed-off-by: Chris Frantz <[email protected]>
    (cherry picked from commit 56ae8ff)
    cfrantz committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    bf276fb View commit details
    Browse the repository at this point in the history
  3. [ownership] Add application keys

    Add the keys from `rom_ext/keys/fake` to this subdirectory as appliction
    keys.
    
    Signed-off-by: Chris Frantz <[email protected]>
    (cherry picked from commit a9b6d98)
    cfrantz committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    5f9caf4 View commit details
    Browse the repository at this point in the history
  4. [ownership] Initialize testing keys for the FPGA

    In order to avoid requiring an initial ownership transfer as a
    prerequisite to running tests on the FPGA, we allow the FPGA to
    automatically transition itself to the in-repo test owner.
    
    Signed-off-by: Chris Frantz <[email protected]>
    (cherry picked from commit b436c1d)
    cfrantz committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    33b5bd3 View commit details
    Browse the repository at this point in the history
  5. [ownership] Initialize owner configuration

    Depending on the `ownership_state`, initialize the owner configuration
    appropriately.
    - Locked states initialize the chip with a single configuration and make
      sure the two owner pages are identical.
    - Unlocked states initialize the chip with an A/B configuration based on
      the contents of each of the owner pages.
    - The No-Owner state normally performs no initialization.  However, a
      weak function is introduced to allow FPGA builds to link a `testonly`
      module that supplies the default testing owner configuration.
    
    Signed-off-by: Chris Frantz <[email protected]>
    (cherry picked from commit 71c5cfb)
    cfrantz committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    e7bc525 View commit details
    Browse the repository at this point in the history