diff options
author | Hung-Te Lin <hungte@chromium.org> | 2016-09-29 11:28:23 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-10-01 00:02:43 -0700 |
commit | fefc682bb70d7fd997f4ef0079e8fec0a4937cf7 (patch) | |
tree | ab544880653eff56c08d268f9ed9c2baf8822bba /futility/cmd_vbutil_key.c | |
parent | 8130e503414f16b9e4c5395b3acad69ad34b7baf (diff) | |
download | vboot-fefc682bb70d7fd997f4ef0079e8fec0a4937cf7.tar.gz |
scripts: Improve make_dev_firmware and allow working with more MP firmware.
Verified boot has "TPM anti-rollback check" that prohibits booting
firmware if the device has been installed with a firmware that has
higher signing version. This is causing problems when people are trying
to use make_dev_firmware script on MP devices (which usually has a
higher version than DEV keyset, which is always 1).
Previously, make_dev_firmware won't alert about this so developers will
first see boot failure, figure out what happened, and then either uprev
the devkeys folder manually (which we don't provide scripts on DUT so
it's hard), or reset the device by using factory reset shim.
Since make_dev_firmware already knows all information, it should check
and increase version number automatically.
This change has implemented checking and increasing 'firmware version'.
The 'data key version' is also checked, but increasing that is more
complicated and we probably don't have all required tools yet on DUT,
so it is only checked.
Also added one flag --[no]mod_hwid so MP device users can keep their HWID
easier, when they need to switch back and forth between DEV / real MP
firmware.
BRANCH=none
BUG=none
TEST=Grab a firmware from daisy mp-v4.bin and do
./make_dev_firmware.sh -f bios.bin -t out.bin --nomod_hwid
Change-Id: If81ef60e6debdcd1c6d899b5a2c03bdacb4fd4f7
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/390871
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'futility/cmd_vbutil_key.c')
0 files changed, 0 insertions, 0 deletions