Skip to content

Commit 79e84a7

Browse files
committed
Use tinyuf2 combined.bin as image base
1 parent 5f8c3ac commit 79e84a7

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/build-clang-doxy.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,16 @@ jobs:
141141
echo $content
142142
echo EOF
143143
} >> "$GITHUB_OUTPUT"
144+
- name: fetch tinyuf2 combined.bin
145+
run: |
146+
echo "Downloading tinyuf2 combined.bin for ${matrix.arduino-platform}...(${board_name})"
147+
if [ "${{ matrix.arduino-platform }}" == "funhouse_noota" ]; then
148+
wget https://adafruit-circuit-python.s3.amazonaws.com/bootloaders/esp32/adafruit_funhouse_esp32s2/tinyuf2-adafruit_funhouse_esp32s2-0.35.0-combined.bin -O wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.tinyuf2-combined.bin
149+
elif [ "${{ matrix.arduino-platform }}" == "esp32s3_devkitc_1_n8" ]; then
150+
wget https://adafruit-circuit-python.s3.amazonaws.com/bootloaders/esp32/espressif_esp32s3_devkitc_1/tinyuf2-espressif_esp32s3_devkitc_1-0.35.0-combined.bin -O wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.tinyuf2-combined.bin
151+
elif [ "${{ matrix.arduino-platform }}" == "xiao_esp32s3" ]; then
152+
wget https://adafruit-circuit-python.s3.amazonaws.com/bootloaders/esp32/espressif_xiao_esp32s3/tinyuf2-espressif_xiao_esp32s3-0.35.0-combined.bin -O wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.tinyuf2-combined.bin
153+
fi
144154
- name: Check boot_app0 file existence (esp32sx built from core, not-source)
145155
id: check_files
146156
uses: andstor/file-existence-action@v3
@@ -169,10 +179,22 @@ jobs:
169179
--flash-freq ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashFreq}} \
170180
--flash-size ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashSize}} \
171181
-o wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.combined.bin \
172-
${{ matrix.offset }} wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.bootloader.bin \
173-
0x8000 wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.partitions.bin \
182+
0x0 wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.tinyuf2-combined.bin \
174183
0xe000 wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.boot_app0.bin \
175184
0x10000 wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.bin
185+
# - name: Create combined binary using Esptool merge-bin
186+
# run: |
187+
# echo ${{ steps.get_board_json.outputs.boardJson }}
188+
# echo ${{ fromJson(steps.get_board_json.outputs.boardJson) }}
189+
# python3 -m esptool --chip ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.chip}} merge-bin \
190+
# --flash-mode ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashMode}} \
191+
# --flash-freq ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashFreq}} \
192+
# --flash-size ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashSize}} \
193+
# -o wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.combined.bin \
194+
# ${{ matrix.offset }} wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.bootloader.bin \
195+
# 0x8000 wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.partitions.bin \
196+
# 0xe000 wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.boot_app0.bin \
197+
# 0x10000 wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.bin
176198
- name: Zip build artifacts
177199
run: |
178200
zip -r wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.zip wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.*

0 commit comments

Comments
 (0)