summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2020-01-10 13:27:28 -0700
committerCommit Bot <commit-bot@chromium.org>2020-01-11 17:30:24 +0000
commitf34ffe037df6594788a7f05efe02ba4760d7eae8 (patch)
tree79dfd262f2d6a2b9eedc8920682cd6f2c6d4f121
parent5b8bfef11631e625be1a50be5e1e7f38da01ab5a (diff)
downloadchrome-ec-f34ffe037df6594788a7f05efe02ba4760d7eae8.tar.gz
openocd: fix flashing commands for lm4
This file was moved from chip/lm4/openocd to util/openocd, so we need to trim off a level of ..'s to get to the EC repository base, and add RO/RW to the build folder names as this has been added to ToT since this file was written. BUG=none BRANCH=none TEST=openocd -s util/openocd -f servo.cfg -f lm4_chip.cfg -c 'init; flash_lm4_rw samus; shutdown' Change-Id: If833b4d471b1f0cffdb0a50e4c604231b82ac3a5 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1995610 Reviewed-by: Edward Hill <ecgh@chromium.org>
-rw-r--r--util/openocd/lm4x_cmds.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/openocd/lm4x_cmds.tcl b/util/openocd/lm4x_cmds.tcl
index 6cad874939..59c2dbdeb6 100644
--- a/util/openocd/lm4x_cmds.tcl
+++ b/util/openocd/lm4x_cmds.tcl
@@ -13,15 +13,15 @@ proc flash_lm4 {path offset} {
}
proc flash_lm4_board {board} {
- flash_lm4 ../../../build/$board/ec.bin 0
+ flash_lm4 ../../build/$board/ec.bin 0
}
proc flash_lm4_ro {board} {
- flash_lm4 ../../../build/$board/ec.RO.flat 0
+ flash_lm4 ../../build/$board/RO/ec.RO.flat 0
}
proc flash_lm4_rw {board} {
- flash_lm4 ../../../build/$board/ec.RW.bin 131072
+ flash_lm4 ../../build/$board/RW/ec.RW.bin 131072
}
# Boards with CONFIG_FLASH_PSTATE_BANK have pstate following RO