chromeos-google-touch-firmware-update-legacy.sh: EOL flashrom usage

The flashrom/cros_ec driver is EOL. As part of its removal
the TP subtype is being dropped. Trivially replace the flashrom
write command with that of ectool instead.

We also parse the size and offset of EC_RO and EC_RW to ensure we erase
and write the correct region.

BUG=b:262782150,b:282855423
TEST=On eve, run
     ectool --name=cros_tp reboot_ec RO &&
     ectool --name=cros_tp rwsig action abort
     ectool --name=cros_tp version
     ectool --name=cros_tp flashwrite 0x00040000 $FW_RW_LINK
TEST=On eve, run this script

Change-Id: Ie77873186ee691bfff09cd5ae326193768e6fbac
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/touch_updater/+/4741441
Auto-Submit: Hsuan Ting Chen <roccochen@chromium.org>
Commit-Queue: Hsuan Ting Chen <roccochen@chromium.org>
Tested-by: Hsuan Ting Chen <roccochen@chromium.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Henry Barnor <hbarnor@chromium.org>
1 file changed