Skip to content

Commit

Permalink
update6-10
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed May 24, 2024
1 parent 8f40563 commit eeba0df
Showing 1 changed file with 35 additions and 4 deletions.
39 changes: 35 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,41 @@ jobs:
- name: Merge for web flashing
run: |
for board in ${{ matrix.target.name }}; do
python3 -m pip install esptool
python3 -m esptool --chip ${{ matrix.target.chip }} merge_bin -o installer/web_factory_${board}.bin --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 installer/firmware/bootloader.bin 0x9000 installer/firmware/partitions.bin 0xe000 installer/firmware/boot_app0.bin 0x10000 installer/firmware/firmware.bin 0x3D0000 installer/firmware/spiffs.bin
done
python3 -m pip install esptool
if [ "${{ matrix.target.chip }}" == "esp32" ]; then
python3 -m esptool merge_bin --chip esp32 \
-o installer/web_factory_${{ matrix.target.name }}.bin \
--flash_mode dio \
--flash_freq 40m \
--flash_size 4MB \
0x1000 installer/firmware/bootloader.bin \
0x9000 installer/firmware/partitions.bin \
0xe000 installer/firmware/boot_app0.bin \
0x10000 installer/firmware/firmware.bin \
0x3D0000 installer/firmware/spiffs.bin
elif [ "${{ matrix.target.chip }}" == "esp32s3" ]; then
python3 -m esptool merge_bin --chip esp32s3 \
-o installer/web_factory_${{ matrix.target.name }}.bin \
--flash_mode dio \
--flash_freq 40m \
--flash_size 4MB \
0x1000 installer/firmware/bootloader.bin \
0x9000 installer/firmware/partitions.bin \
0xf000 installer/firmware/boot_app0.bin \
0x10000 installer/firmware/firmware.bin \
0x410000 installer/firmware/spiffs.bin
elif [ "${{ matrix.target.chip }}" == "esp32c3" ]; then
python3 -m esptool merge_bin --chip esp32c3 \
-o installer/web_factory_${{ matrix.target.name }}.bin \
--flash_mode dio \
--flash_freq 40m \
--flash_size 4MB \
0x1000 installer/firmware/bootloader.bin \
0x9000 installer/firmware/partitions.bin \
0xf000 installer/firmware/boot_app0.bin \
0x10000 installer/firmware/firmware.bin \
0x210000 installer/firmware/spiffs.bin
fi
- name: Install Zip
run: sudo apt-get install zip
Expand Down

0 comments on commit eeba0df

Please sign in to comment.