Skip to content

Commit

Permalink
Fix partition zip for 8MB and 16MB ESP32 Shellys
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Apr 12, 2024
1 parent 890dd43 commit 6c92906
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions build-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 6c92906

Please sign in to comment.