Do not append digest to the bootloader bin (#70)

Allows the bootloaders to be flashed with esptool v4 on devices with different size flash
This commit is contained in:
Me No Dev 2022-05-25 19:02:05 +03:00 committed by GitHub
parent 8f92d63c04
commit 3544fe40d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View file

@ -17,3 +17,4 @@ sdkconfig.old
version.txt
components/arduino_tinyusb/tinyusb/
dependencies.lock
tools/esptool/

View file

@ -10,4 +10,11 @@ source ./tools/config.sh
echo "Copying bootloader: $AR_SDK/bin/bootloader_$BOOTCONF.bin"
mkdir -p "$AR_SDK/bin"
cp "build/bootloader/bootloader.bin" "$AR_SDK/bin/bootloader_$BOOTCONF.bin"
# Workaround for getting the bootloaders to be flashable with esptool v4.x
# It might still be needed for IDF5, but using the included esptool instead
#cp "build/bootloader/bootloader.bin" "$AR_SDK/bin/bootloader_$BOOTCONF.bin"
if [ ! -e "tools/esptool" ]; then
git clone https://github.com/espressif/esptool tools/esptool
fi
./tools/esptool/esptool.py --chip "$IDF_TARGET" elf2image --dont-append-digest "build/bootloader/bootloader.elf" -o "$AR_SDK/bin/bootloader_$BOOTCONF.bin"