17 Jan, 2021

1 commit

  • Sync config change after refining the config
    dependency.

    Test: builds.

    Change-Id: I32c36e822458c8eea9dde4ba4d874a65475f3a26
    Signed-off-by: Ji Luo
    (cherry picked from commit 45cd8014f7e81ed7b9ed7766e5d5911384eb3de4)

    Ji Luo
     

08 Jan, 2021

1 commit

  • The device IDs are provisioned from bootloader, this commit
    add commands to provision the deivce IDs:
    $ fastboot oem append-device-id

    Test: Device IDs provision and attest.

    Change-Id: Id3c737d3da02f7ba463e51b0525f3cb9bcf0c6d1
    Signed-off-by: Ji Luo
    (cherry picked from commit 7575ac07ac625c35269868511297385a69c96196)

    Ji Luo
     

16 Jul, 2020

1 commit

  • The old boot control logic and misc data struct is based on the
    'external/avb/libavb_ab' library which is already marked as
    deprecated and won't be maintained by google anymore:

    commit 37f5946d0e1159273eff61dd8041377fedbf55a9
    Author: David Zeuthen
    Date: Wed Sep 20 15:02:32 2017 -0400

    Deprecate libavb_ab and bootctrl.avb code.

    This code was already marked as experimental in anticipation of being
    removed in the future. Officially deprecate it and set Jun 1 2018 as
    the date it will be removed. This should give users of the code ample
    time to fork/migrate.

    To keep using the code AVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED
    must be defined.

    The reason for deprecating this code is twofold:

    - Its policy was optimized for devices without a display with
    e.g. automatic fallback to the other slot if a slot fails to
    boot. Since most A/B stacks in Android devices don't work this
    way this code is confusing.

    - There are no known active users, no good test coverage for the
    bootctrl.avb code, and no plans to use it.

    When the code is removed we'll provide an easy transition path by
    keeping (but renaming) the |ab_ops| member in AvbOps.

    Change-Id: Id5e090a2048076d36ccca2e1c4cb55e226b8b43d

    Google has provided a new boot control v1.1 implementation under
    'hardware/interfaces/boot/1.1/default' which uses a new misc data struct defined
    in the 'include/android_bootloader_message.h'. This commit adds a new boot control
    implementation in bootloader, which combines the new misc data struct and inherit
    some flow in 'libavb_ab', the old 'libavb_ab' library will be removed.

    Test: boot/slot switch/retry count test on single&dual bootloader.

    Signed-off-by: Ji Luo
    Change-Id: I0fa1ee8562c83afec549c8f6aad7a26a2214f626
    (cherry picked from commit 29aafaf065d1688201d014213052863ec9d18e9c)

    Ji Luo
     

16 Jun, 2020

2 commits