Skip to content

Commit 584e8e2

Browse files
authored
Do not append digest to the bootloader bin
1 parent 5682a01 commit 584e8e2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tools/copy-bootloader.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,11 @@ source ./tools/config.sh
1010
echo "Copying bootloader: $AR_SDK/bin/bootloader_$BOOTCONF.bin"
1111

1212
mkdir -p "$AR_SDK/bin"
13-
cp "build/bootloader/bootloader.bin" "$AR_SDK/bin/bootloader_$BOOTCONF.bin"
13+
14+
# Workaround for getting the bootloaders to be flashable with esptool v4.x
15+
# It might still be needed for IDF5, but using the included esptool instead
16+
#cp "build/bootloader/bootloader.bin" "$AR_SDK/bin/bootloader_$BOOTCONF.bin"
17+
if [ ! -e "tools/esptool" ]; then
18+
git clone https://github.com/espressif/esptool tools/esptool
19+
fi
20+
./tools/esptool/esptool.py --chip "$IDF_TARGET" elf2image --dont-append-digest "build/bootloader/bootloader.elf" -o "$AR_SDK/bin/bootloader_$BOOTCONF.bin"

0 commit comments

Comments
 (0)