summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorNamyoon Woo <namyoon@chromium.org>2019-03-15 09:53:18 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-03-16 01:53:29 -0700
commited3b5e3a1fbf50c6e85e9e8e095b543fd6ebb78e (patch)
treec1237a1098bb829adb7e5b17efa0a75e8e0e0630 /util
parentdb8f8715ba33efe467266e059f5086abdcf0bfe2 (diff)
downloadchrome-ec-ed3b5e3a1fbf50c6e85e9e8e095b543fd6ebb78e.tar.gz
flash_ec: remove sudo in executing iteflash
iteflash can be run with normal user access. BUG=none BRANCH=none TEST=manually ran flash_ec and iteflash. $ groups adm floppy audio cdrom 20 video users portage primarygroup $ echo help > /dev/ttyUSB0 -bash: /dev/ttyUSB0: Permission denied $ ./build/ampton/util/iteflash -W 1 -c ccd -r /tmp/ec.ampton.read.bin -m -d $ sudo servod -b octopus_ite $ dut-control servo_type servo_type:servo_v4_with_ccd_cr50 $ ./util/flash_ec --board=ampton --read ${TMPIMG} --verbose $ ./util/flash_ec --board=ampton --image ${IMG} --verbose $ dut-control servo_type servo_type:servo_v2 $ ./util/flash_ec --board=ampton --read ${TMPIMG} --verbose $ ./util/flash_ec --board=ampton --image ${IMG} --verbose The log can be found at gpaste/5375035751530496. Change-Id: I8ac1a19455b84f4eeee7626aa1b3c3e98f3d2395 Signed-off-by: Namyoon Woo <namyoon@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1525155 Reviewed-by: Matthew Blecker <matthewb@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/flash_ec2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec
index d91dd2cf67..4ba2a1b549 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -1080,7 +1080,7 @@ function flash_it83xx() {
echo "${ITEFLASH_ARGS[@]}"
fi
- sudo "${ITEFLASH_ARGS[@]}"
+ "${ITEFLASH_ARGS[@]}"
}
function flash_lm4() {