From e533adccb782736d3e80697f068a24d78dc830b1 Mon Sep 17 00:00:00 2001 From: Louis Yung-Chieh Lo Date: Fri, 27 Jul 2012 11:40:08 +0800 Subject: [PATCH] The jtag_buf_en was not set. The dut_control function only accepts the first parameter. Thus, the jtag_buf_en:on is actually dropped in flash_link. This caused flash_ec script failed sometimes. BUG=None TEST=tested on link. util/flash_ec --board=link --image=... Change-Id: Ib7f8cdcd651a573ad4bdc6e446f3c715dce29b71 Signed-off-by: Louis Yung-Chieh Lo Reviewed-on: https://gerrit.chromium.org/gerrit/28569 Commit-Ready: Yung-Chieh Lo Tested-by: Yung-Chieh Lo Reviewed-by: Vincent Palatin --- util/flash_ec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/flash_ec b/util/flash_ec index 6b9f45a7b0..5375851e20 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -111,7 +111,8 @@ function flash_link() { OCD_PATH="${SRC_ROOT}/platform/ec/chip/lm4/openocd" OCD_CMDS="init ; flash_lm4 ${IMG} 0 262144 ; exit" - dut_control jtag_buf_on_flex_en:on jtag_buf_en:on + dut_control jtag_buf_on_flex_en:on + dut_control jtag_buf_en:on sudo openocd -s "${OCD_PATH}" -f "${OCD_CFG}" -c "${OCD_CMDS}" }