diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2012-05-04 02:06:56 +0000 |
---|---|---|
committer | Vadim Bendebury <vbendeb@chromium.org> | 2012-05-04 13:42:26 -0700 |
commit | 1cb4a69b92a7ae1f293bdfa5af26180037f5f50e (patch) | |
tree | 20b5f04a97b345909b8597570454c6432846db12 | |
parent | b67e435d143d4d4b7478134fbeb869fba6476c7b (diff) | |
download | chrome-ec-1cb4a69b92a7ae1f293bdfa5af26180037f5f50e.tar.gz |
Add link helper procedure
Add a Jim procedure to program the Link EC image from the default
location as generated by 'emerge-link chromeos-ec'.
BUG=none
TEST=manual
. emerge-link chromeos-ec
. start openocd as described in the Link care and feeding document
. in the port 4444 terminal session type
flash_emerged_link
. observe it succeed
Change-Id: Ibfbc38060d7e82ec8c83a73e2ccadff81d633ae4
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r-- | chip/lm4/openocd/lm4x_cmds.tcl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chip/lm4/openocd/lm4x_cmds.tcl b/chip/lm4/openocd/lm4x_cmds.tcl index c3347c5b0b..a0465ed677 100644 --- a/chip/lm4/openocd/lm4x_cmds.tcl +++ b/chip/lm4/openocd/lm4x_cmds.tcl @@ -51,3 +51,9 @@ proc ramboot_link { } { proc ramboot_bds { } { ramboot_lm4 ../../../build/bds/ec.RO.flat } + +proc flash_emerged_link { } { + set firmware_image ../../../../../../chroot/build/link/firmware/ec.bin + + flash_lm4 $firmware_image 0 262144 +} |