doc: secure boot: Explain output of digest_secure_bootloader command

Mentioned on forum https://esp32.com/viewtopic.php?f=13&t=8162&start=10#p34714
This commit is contained in:
Angus Gratton 2018-12-04 12:34:59 +11:00 committed by Angus Gratton
parent b45b0f2348
commit ac1d1aa3c8

View file

@ -258,7 +258,9 @@ To generate a bootloader digest::
espsecure.py digest_secure_bootloader --keyfile ./securebootkey.bin --output ./bootloader-digest.bin build/bootloader/bootloader.bin espsecure.py digest_secure_bootloader --keyfile ./securebootkey.bin --output ./bootloader-digest.bin build/bootloader/bootloader.bin
Keyfile is the 32 byte raw secure boot key for the device. To flash this digest onto the device:: Keyfile is the 32 byte raw secure boot key for the device.
The output of the ``espsecure.py digest_secure_bootloader`` command is a single file which contains both the digest and the bootloader appended to it. To flash the combined digest plus bootloader to the device::
esptool.py write_flash 0x0 bootloader-digest.bin esptool.py write_flash 0x0 bootloader-digest.bin