summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorTodd Broch <tbroch@chromium.org>2015-06-10 15:06:42 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-11 18:27:30 +0000
commit9941f088d7a56ba4ba7396d9221612b00143a3cc (patch)
tree13cea0453ba0a27a0f20cb1f39479d997b10e9a2 /util
parente51399aae80923c6aee8f81a38e7c788f9125dca (diff)
downloadchrome-ec-9941f088d7a56ba4ba7396d9221612b00143a3cc.tar.gz
mec1322: Add servo serialname to flash_ec's flashrom call.
If host running flash_ec has multiple servo's connected it must use the USB serialname to identify the proper FTDI device to run flashrom on correctly. CL adds serial param to flashrom call to do just that. Signed-off-by: Todd Broch <tbroch@chromium.org> BRANCH=none BUG=none TEST=manual, successfully write glados EC w/ multiple servo V2's connected to the same host. Change-Id: I35c7d170f9bb80e96f69efae634cf70893eeef63 Reviewed-on: https://chromium-review.googlesource.com/276761 Commit-Queue: Todd Broch <tbroch@chromium.org> Tested-by: Todd Broch <tbroch@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/flash_ec5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/flash_ec b/util/flash_ec
index a75c0bf637..48de8ecc60 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -446,6 +446,11 @@ function flash_mec1322() {
die "no flashrom util found."
fi
+ SERIALNAME=$(${DUT_CONTROL_CMD} serialname | cut -d: -f2)
+ if [[ "$SERIALNAME" != "" ]] ; then
+ FLASHROM_PARAM="${FLASHROM_PARAM},serial=${SERIALNAME}"
+ fi
+
dut_control cold_reset:on
# Turn on SPI1 interface on servo for 3.3V SPI Flash Chip