cros_write_firmware: Extract FDT from image automatically
It is a pain to have to specify the board and FDT when writing an image.
Extract the FDT from the image instead, while still allowing an override
Using any image build from ToT, this command should flash it over USB:
$ cros_write_firmware /path/to/image.bin -F spi
For x86, this command should write it to em100:
$ cros_write_firmware /path/to/image.bin
Tested on pit and link.
Signed-off-by: Simon Glass <email@example.com>
Reviewed-by: Julius Werner <firstname.lastname@example.org>
Reviewed-by: Randall Spangler <email@example.com>
3 files changed