mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 18:25:10 +00:00
Add a script to increment kernel subkey and data key.
When we do perform firmware updates, we'd like to change the kernel subkey to ensure that new firmware and Chrome OS image stay in sync. This CL adds a scripts which makes it possible to do this revving in an automated manner. The current versions rollback versions corresponding to the keyset are stored in key.versions. If we change the kernel subkey (to enforce firmware/Chrome OS lockstep), we must also update the firmware version. Similarly, since we modify the kernel subkey, we also generate a new set of kernel data keys. Thus, we also increment the kernel key version. Change-Id: I364ab50bda115991dd4f69331d37291f66abbf36 BUG=chrome-os-partner:3274, chromium-os:8016 TEST=Manually tested using a newly generated keyset. Review URL: http://codereview.chromium.org/6824059
This commit is contained in:
@@ -9,26 +9,6 @@
|
||||
# Load common constants and functions.
|
||||
. "$(dirname "$0")/common.sh"
|
||||
|
||||
# Mapping are in common.sh.
|
||||
ROOT_KEY_ALGOID=11
|
||||
RECOVERY_KEY_ALGOID=11
|
||||
|
||||
FIRMWARE_DATAKEY_ALGOID=7
|
||||
DEV_FIRMWARE_DATAKEY_ALGOID=7
|
||||
|
||||
RECOVERY_KERNEL_ALGOID=11
|
||||
INSTALLER_KERNEL_ALGOID=11
|
||||
KERNEL_SUBKEY_ALGOID=7
|
||||
KERNEL_DATAKEY_ALGOID=4
|
||||
|
||||
# Keyblock modes determine which boot modes a signing key is valid for use
|
||||
# in verification.
|
||||
FIRMWARE_KEYBLOCK_MODE=7
|
||||
DEV_FIRMWARE_KEYBLOCK_MODE=6 # Only allow in dev mode.
|
||||
RECOVERY_KERNEL_KEYBLOCK_MODE=11
|
||||
KERNEL_KEYBLOCK_MODE=7 # Only allow in non-recovery.
|
||||
INSTALLER_KERNEL_KEYBLOCK_MODE=10 # Only allow in Dev + Recovery.
|
||||
|
||||
# Create the normal keypairs
|
||||
make_pair root_key $ROOT_KEY_ALGOID
|
||||
make_pair firmware_data_key $FIRMWARE_DATAKEY_ALGOID
|
||||
|
||||
Reference in New Issue
Block a user