summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2013-08-22 08:28:28 -0700
committerChromeBot <chrome-bot@google.com>2013-08-22 09:09:23 -0700
commitfde2d02463c1a4e1ad7ed3c10eb480d5c21e3b80 (patch)
tree15b464404c91e2cd3a03e58ade31b3f4ec1f92ca
parent3d848e9026637c5434e5c7c2364d2f2de6bfae99 (diff)
downloadvboot-firmware-4389.71.B.tar.gz
The "-p internal:bus=*" is now deprecated by "-p {host,ec}" because we may have EC on SPI bus. BUG=none TEST=manually executed dev_debug_vboot and see correct output. BRANCH=none Original-Change-Id: I6363c09c2ebf57812bf35b7db220303a2786db20 Reviewed-on: https://gerrit.chromium.org/gerrit/66321 Tested-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Yung-Chieh Lo <yjlou@chromium.org> Commit-Queue: Hung-Te Lin <hungte@chromium.org> (cherry picked from commit 798cc91de11d5a78e379c67731dcafaf2aae01e1) Change-Id: I937c21f0334446c959f88770c4272852e721f6cb Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/66654
-rwxr-xr-xscripts/image_signing/make_dev_ssd.sh2
-rwxr-xr-xscripts/image_signing/set_gbb_flags.sh2
-rwxr-xr-xscripts/image_signing/tofactory.sh4
-rwxr-xr-xutility/dev_debug_vboot6
4 files changed, 7 insertions, 7 deletions
diff --git a/scripts/image_signing/make_dev_ssd.sh b/scripts/image_signing/make_dev_ssd.sh
index 5be09cb5..be9eddbe 100755
--- a/scripts/image_signing/make_dev_ssd.sh
+++ b/scripts/image_signing/make_dev_ssd.sh
@@ -329,7 +329,7 @@ sanity_check_live_firmware() {
local bios_image="$(make_temp_file)"
local rootkey_file="$(make_temp_file)"
echo "INFO: checking system firmware..."
- sudo flashrom -p internal:bus=spi -i GBB -r "$bios_image" >/dev/null 2>&1
+ sudo flashrom -p host -i GBB -r "$bios_image" >/dev/null 2>&1
gbb_utility -g --rootkey="$rootkey_file" "$bios_image" >/dev/null 2>&1
if [ ! -s "$rootkey_file" ]; then
debug_msg "failed to read root key from system firmware..."
diff --git a/scripts/image_signing/set_gbb_flags.sh b/scripts/image_signing/set_gbb_flags.sh
index 5469f1a0..e812dba3 100755
--- a/scripts/image_signing/set_gbb_flags.sh
+++ b/scripts/image_signing/set_gbb_flags.sh
@@ -43,7 +43,7 @@ FLAGS_HELP="Changes ChromeOS Firmware GBB Flags value.
Usage: $0 [option_flags] GBB_FLAGS_VALUE
$GBBFLAGS_DESCRIPTION"
-FLASHROM_COMMON_OPT="-p internal:bus=spi"
+FLASHROM_COMMON_OPT="-p host"
FLASHROM_READ_OPT="$FLASHROM_COMMON_OPT -i GBB -r"
FLASHROM_WRITE_OPT="$FLASHROM_COMMON_OPT -i GBB --fast-verify -w"
diff --git a/scripts/image_signing/tofactory.sh b/scripts/image_signing/tofactory.sh
index 1c5f3bdd..e972dca1 100755
--- a/scripts/image_signing/tofactory.sh
+++ b/scripts/image_signing/tofactory.sh
@@ -40,8 +40,8 @@ eval set -- "$FLAGS_ARGV"
set -e
# Flashrom commands with device overrides
-FLASHROM_BIOS="flashrom -p internal:bus=spi"
-FLASHROM_EC="flashrom -p internal:bus=lpc"
+FLASHROM_BIOS="flashrom -p host"
+FLASHROM_EC="flashrom -p ec"
# A log file to keep the output results of executed command
EXEC_LOG="$(make_temp_file)"
diff --git a/utility/dev_debug_vboot b/utility/dev_debug_vboot
index 760d6f86..698a5bd8 100755
--- a/utility/dev_debug_vboot
+++ b/utility/dev_debug_vboot
@@ -260,7 +260,7 @@ devs=$(awk '/(mmcblk[0-9])$|(sd[a-z])$/ {print "/dev/"$4}' /proc/partitions)
for d in $devs; do
log cgpt show $d
done
-log flashrom -V -p internal:bus=spi --wp-status
+log flashrom -V -p host --wp-status
tpm_fwver=$(crossystem tpm_fwver) || tpm_fwver="UNKNOWN"
tpm_kernver=$(crossystem tpm_kernver) || tpm_kernver="UNKNOWN"
set -e
@@ -273,14 +273,14 @@ if [ -n "${OPT_BIOS}" ]; then
fix_old_names
else
# Read it from the flash
- if log flashrom -p internal:bus=spi -r bios.rom ; then
+ if log flashrom -p host -r bios.rom ; then
# If we can read the whole BIOS at once, great.
log dump_fmap -x bios.rom
fix_old_names
else
# Otherwise pull just the components we want (implying new-style names)
info " ...individually..."
- log flashrom -p internal:bus=spi -r /dev/null \
+ log flashrom -p host -r /dev/null \
-i"GBB":GBB \
-i"VBLOCK_A":VBLOCK_A \
-i"VBLOCK_B":VBLOCK_B \