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:
parent
8f92d63c04
commit
3544fe40d7
2 changed files with 9 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -17,3 +17,4 @@ sdkconfig.old
|
|||
version.txt
|
||||
components/arduino_tinyusb/tinyusb/
|
||||
dependencies.lock
|
||||
tools/esptool/
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue