mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-01-26 02:14:35 +01:00
improvement: workaround for windows via lnk
This commit is contained in:
parent
7af7ca5fba
commit
8a7d91a7f6
BIN
installer/Install Upgrade.lnk
Normal file
BIN
installer/Install Upgrade.lnk
Normal file
Binary file not shown.
BIN
installer/Install with Factory Reset.lnk
Normal file
BIN
installer/Install with Factory Reset.lnk
Normal file
Binary file not shown.
|
|
@ -4,6 +4,12 @@ echo "IF THIS IS YOUR FIRST FLASH ON THIS BOARD PLEASE USE install_with_factory_
|
|||
|
||||
read -p "Enter COM port (for example /dev/ttyS5): " port
|
||||
|
||||
python3 ./bin/esptool/esptool.py --chip esp32 --port "$port" --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 firmware/bootloader.bin 0x8000 firmware/partitions.bin 0xe000 firmware/boot_app0.bin 0x10000 firmware/firmware.bin
|
||||
PYTHON_CMD=python
|
||||
if command -v python3 &> /dev/null
|
||||
then
|
||||
PYTHON_CMD=python3
|
||||
fi
|
||||
|
||||
PYTHON_CMD ./bin/esptool/esptool.py --chip esp32 --port "$port" --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 firmware/bootloader.bin 0x8000 firmware/partitions.bin 0xe000 firmware/boot_app0.bin 0x10000 firmware/firmware.bin
|
||||
|
||||
echo "Firmware flashed"
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
echo "Your firmware will be upgraded without factory reset."
|
||||
echo "IF THIS IS YOUR FIRST FLASH ON THIS BOARD PLEASE USE install_with_factory_reset.sh INSTEAD!"
|
||||
|
||||
read -p "Enter COM port (for example /dev/ttyS5): " port
|
||||
|
||||
PYTHON_CMD=python
|
||||
if command -v python3 &> /dev/null
|
||||
then
|
||||
PYTHON_CMD=python3
|
||||
fi
|
||||
|
||||
$PYTHON_CMD ./bin/esptool/esptool.py --chip esp32 --port "$port" --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 2686976 firmware/spiffs.bin
|
||||
|
||||
$PYTHON_CMD ./bin/esptool/esptool.py --chip esp32 --port "$port" --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 firmware/bootloader.bin 0x8000 firmware/partitions.bin 0xe000 firmware/boot_app0.bin 0x10000 firmware/firmware.bin
|
||||
|
||||
echo "Firmware flashed"
|
||||
Loading…
Reference in a new issue