futility: updater: Try to update only EC RO when software sync is available

For devices with EC that will reset TCPC during sysjump, updating
firmware in recovery mode may cause problems. However, for developers
manually updating firmware in developer mode (Ctrl-U), the EC firmware
should be running in EC RO and we may have a chance to update
successfully.

BRANCH=None
BUG=b:141965252
TEST=Boot device in recovery mode and run
     futility -i image.bin -e ec.bin; see correct message and then I/O error.
     Boot device in developer mode (Ctrl-U) and run
     futility -i image.bin -e ec.bin; see correct message.

Cq-Depend: chromium:1837564
Change-Id: I9aa79df35094ab0c8eecc68c6652327d3325246a
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1835487
Reviewed-by: Joel Kitching <kitching@chromium.org>
1 file changed