go/cros-fflash
fflash is a tool to update a ChromiumOS device with a test image from gs:// (Google Cloud Storage).
Dependencies:
go version to inspect the version.ninja --version. ninja comes with depot_tools.cd ~/chromiumos/src/platform/dev/contrib/fflash ninja -v
git clone https://chromium.googlesource.com/chromiumos/platform/dev-util cd dev-util/contrib/fflash ninja -v
Make sure you can ssh ${dut_host} without typing a password
# in the fflash directory
bin/fflash ${dut_host}
Where ${dut_host} is the ssh target.
bin/fflash ${dut_host}
bin/fflash ${dut_host} -R104
bin/fflash ${dut_host} -R104-14911.0.0
bin/fflash ${dut_host} --board=cherry64 -R104
bin/fflash ${dut_host} --gs=gs://chromeos-image-archive/cherry-release/R104-14911.0.0
bin/fflash --help
fflash doesfflash is faster than cros flash if the connection between cros flash and the DUT is slow. cros flash proxies the gs://chromeos-image-archive images for the DUT (Google Cloud -> workstation -> DUT). fflash makes the DUT download the OS images directly, by granting the DUT a restricted access token to the Chrome OS release image directory (Google Cloud -> DUT).
go test ./...