From 6c92906d7e8766ee47974a493d4ba53cc0687865 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 12 Apr 2024 19:58:11 +0200 Subject: [PATCH] Fix partition zip for 8MB and 16MB ESP32 Shellys --- build-zip.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/build-zip.sh b/build-zip.sh index 34a461f..2407f9e 100755 --- a/build-zip.sh +++ b/build-zip.sh @@ -36,8 +36,19 @@ else platform="esp32" boot_file="bootloader.bin" boot_file_addr=4096 +if [[ $4 -eq 2 ]] +then partition_file="4MB_partition-table.bin" fi +if [[ $4 -eq 3 ]] +then + partition_file="8MB_partition-table.bin" +fi +if [[ $4 -eq 4 ]] +then + partition_file="16MB_partition-table.bin" +fi +fi fi #General: @@ -129,17 +140,17 @@ done ShellyPro8MB=( Pro1 Pro1PM Pro2 Pro2PM Pro3 ) for i in "${ShellyPro8MB[@]}" do - generatezip $i "tasmota32.bin" "fs-8MB-tasmota.img" 1 + generatezip $i "tasmota32.bin" "fs-8MB-tasmota.img" 3 done ShellyPro8MBlvgl=( Pro4PM ) for i in "${ShellyPro8MBlvgl[@]}" do - generatezip $i "tasmota32-lvgl.bin" "fs-8MB-tasmota.img" 1 + generatezip $i "tasmota32-lvgl.bin" "fs-8MB-tasmota.img" 3 done ShellyPro16MB=( Pro3EM ) for i in "${ShellyPro16MB[@]}" do - generatezip $i "tasmota32.bin" "fs-16MB-tasmota.img" 1 + generatezip $i "tasmota32.bin" "fs-16MB-tasmota.img" 4 done