summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2018-01-25 17:45:06 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-02-02 13:19:42 -0800
commit3585eb3d21da676db3d87e9e0490a0df92d597d2 (patch)
treeb6b587d908f819de990b40b5fde005ce671f670c /tests
parentb5c00dbcba5ab315c7f90bf474143eac4bcfde10 (diff)
downloadvboot-3585eb3d21da676db3d87e9e0490a0df92d597d2.tar.gz
make_dev_firmware.sh supports switching EC RO key
For the EC supporting EFS boot, the RO section contains a public key, and the RW is signed. For running FAFT, should replace the RO key to a known one (the dev key under vboot_reference), such that FAFT tests can resign the RW using a known private key. For BIOS image, we use make_dev_firmware.sh to do a similar job to replace the key in BIOS. This CL makes the make_dev_firmware script support changing EC key. BUG=b:71769443 BRANCH=none TEST=Modify files $ # Check the original BIOS and EC images $ futility show ec.bin $ futility show bios.bin $ ./make_dev_firmware.sh --change_ec -f bios.bin -t new_bios.bin \ -e ec.bin -o new_ec.bin --backup_dir backup $ # Check the new images, using new keys and verification succeeded $ futility show new_ec.bin $ futility show new_bios.bin TEST=Modify live firmware $ ./make_dev_firmware.sh --change_ec And then run firmware_ECUpdateId with a Type-C charger. TEST=Run sign_official_build.sh $ sign_official_build.sh recovery recovery_image.bin \ ~/trunk/src/platform/vboot_reference/tests/devkeys /tmp/out.bin TEST=make runalltests Change-Id: Id51e2c411a4e6d016e619cec91453ce918b7fff7 Reviewed-on: https://chromium-review.googlesource.com/889406 Commit-Ready: Wai-Hong Tam <waihong@google.com> Tested-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions