diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2021-03-11 13:17:35 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-25 23:28:30 +0000 |
commit | dac87b8b52dae2882b9d00d7de8f57e91c10d556 (patch) | |
tree | 4b2bb9fe865189d819c39b58b74ccc8e5437f312 /builtin | |
parent | 8b47f2120eecac3a754778578b87f1b02eb8da8b (diff) | |
download | chrome-ec-stabilize-13982.51.B-main.tar.gz |
PCHG: Flash multiple binaries in one update sessionstabilize-13982.51.B-main
CTN730 firmware consists of separate binaries and currently each binary
is flashed in a separate session. This does not work if two binaries
need to be updated at the same time because each session writes a new
version (after closing the session) and CTN730 refuses to open a session
if the version number is the same.
This patch makes ectool write multiple binaries in one update session.
Example session:
localhost ~ # ectool pchg 0 update 0x1041 0x201200 /tmp/user_ee.bin \
0x207000 /tmp/WLC_Host_UserApp_CRC.bin
Opened update session (port=0 ver=0x1041 bsize=128):
Writing /tmp/user_ee.bin (3072 bytes).
********************************************************************
Writing /tmp/WLC_Host_UserApp_CRC.bin (90624 bytes).
********************************************************************
Firmware is updated successfully (CRC32=0x5ef03e4d).
localhost ~ # ectool pchg 0 reset
Reset port 0 complete.
localhost ~ # ectool pchg 0
State: ENABLED (2)
Battery: 0%
Errors: 0x0
FW Version: 0x1041
Dropped events: 0
BUG=b:182600604, b:173235954
BRANCH=trogdor
TEST=See the description above.
Change-Id: I554ae560947e896ae73979c85d637f32d3e114af
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2952836
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
(cherry picked from commit 417c1411ed94cdbc27e99a3ca829b786b9a4ec4e)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2970901
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions