crosfw is a python script which automates many of the tasks involved in building and testing firmware. It includes the following features:
Best of all, crosfw does not spam you with 800KB of build output, thus making it possible for you to see the warnings/errors.
crosfw is roughly parallel to using chromeos-u-boot and chromeos-bootimage and these must have been preivously emerged in order to use crosfw.
To build U-Boot with verified boot for pit, create and image and download over USB A-A:
Same, but download a magic flasher and flash the SPI
Mimic chromeos-bootimage and create and flash a secure image with silent console:
You can build sandbox with:
You can also build any upstream config. The output files are in directory /tmp/crosfw for easy access and you can set a variable in your ~/.crosfw file to change this. You can also use -a to pass options to cros_bundle_firmware, and -h to get help.
You can develop with this script, but before submitting CLs you must test with the ebuild system. This script does not necessary track changes there
and so inconsistencies may develop over time.
WARNING: Always emerge and test chromeos-u-boot and chromeos-bootimage before submitting U-Boot CLs to gerrit!
Chromium OS > Firmware (U-Boot) Overview and Porting Guide > 1. Overview of the Porting Process >