summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRoss Zwisler <zwisler@google.com>2019-07-02 15:18:13 -0600
committerCommit Bot <commit-bot@chromium.org>2019-07-03 19:07:51 +0000
commit627fd9e8f662c62d428f2a3ebb774789224ca12d (patch)
tree41f255c267d02d9c84fdb8e5f8d76b586cd76ead /scripts
parent6373cd57d7c4af79b9cf0b401d24c5dfffde68d4 (diff)
downloadvboot-627fd9e8f662c62d428f2a3ebb774789224ca12d.tar.gz
make_dev_firmware.sh: correct flashrom examples
I was following the advice given in these examples and saw: # flashrom -p bios -w /mnt/stateful_partition/backups/bios_SAMUS_TEST_8028_20190628_100324.fd flashrom v0.9.9 : cc7cca2 : Jun 15 2019 04:36:54 UTC on Linux 4.14.129 (x86_64) Error: Unknown programmer bios. Please run "flashrom --help" for usage info. As you can see in flashrom_bios() in that same file, the "programmer" argument in flashrom that you need to flash the BIOS is "host" not "bios": # flashrom -p host -w /tmp/bios_SAMUS_TEST_8028_20190628_100324.fd flashrom v0.9.9 : 2d00129 : Jun 27 2019 15:16:55 UTC on Linux 4.14.129 (x86_64) flashrom v0.9.9 : 2d00129 : Jun 27 2019 15:16:55 UTC on Linux 4.14.129 (x86_64) Calibrating delay loop... OK. coreboot table found at 0x7ce3a000. ... Erasing and writing flash chip... SUCCESS BUG=none TEST=successfully flashed a backup BIOS image using flashrom BRANCH=none Change-Id: Ib1e10c1e06ad84714853953702328c4f4dadebe7 Signed-off-by: Ross Zwisler <zwisler@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1685859 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Commit-Queue: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/image_signing/make_dev_firmware.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/image_signing/make_dev_firmware.sh b/scripts/image_signing/make_dev_firmware.sh
index 767dc22c..2140d34b 100755
--- a/scripts/image_signing/make_dev_firmware.sh
+++ b/scripts/image_signing/make_dev_firmware.sh
@@ -433,8 +433,8 @@ main() {
Please copy the backup file to a safe place ASAP.
To stop using devkeys and restore original BIOS, execute command:
- flashrom -p bios -w [PATH_TO_BACKUP_BIOS]
- Ex: flashrom -p bios -w ${backup_bios_path}"
+ flashrom -p host -w [PATH_TO_BACKUP_BIOS]
+ Ex: flashrom -p host -w ${backup_bios_path}"
if [ -n "${backup_ec_image}" ]; then
echo "
To stop using devkeys and restore original EC, execute command: