Jen ulozeni kopie z githubu
This commit is contained in:
20
tools/copy-bootloader.sh
Executable file
20
tools/copy-bootloader.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
IDF_TARGET=$1
|
||||
FLASH_MODE="$2"
|
||||
FLASH_FREQ="$3"
|
||||
BOOTCONF=$FLASH_MODE"_$FLASH_FREQ"
|
||||
|
||||
source ./tools/config.sh
|
||||
|
||||
echo "Copying bootloader: $AR_SDK/bin/bootloader_$BOOTCONF.bin"
|
||||
|
||||
mkdir -p "$AR_SDK/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"
|
Reference in New Issue
Block a user