Chromebook Firmware Utilities-----------------------------# FlashingThe `servoflash.py` tool can be used to flash firmware images onto Chromebookdevices using a Servo interface. To use it, clone this repository with Git LFSenabled:```sudo apt install git-lfsgit clone https://gitlab.collabora.com/chromium/flash-tools.gitcd flash-toolsgit lfs fetchgit lfs checkout```This includes a specific `flashrom` binary with its library dependencies copiedfrom the Chromium OS SDK.Then to flash a firmware image, the target device needs to be in the GoogleServo config file which is typically `/etc/google-servo.conf`. This is wherethe device serial numbers are associated with their names. There also needs tobe a `servod` service running to be able to access the device.Here's a sample command to flash a firmware, given all the preconditions aremet:```./servoflash.py \ --device=rk3399-gru-kevin-cbg-0 \ --firmware=depthcharge-rk3399-gru-kevin-20180806.dev.bin```It can take a few minutes. There should be these messages around the end,which can vary depending on the type of Chromebook:```Erasing and writing flash chip... Verifying flash... VERIFIED.SUCCESS```