Skip to content

Commit 420727b

Browse files
committed
fix: custom 8MB partition table for CI
1 parent 4aea0af commit 420727b

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,21 @@ jobs:
2121
target: esp32s3
2222
path: firmware
2323
command: |
24-
# Force 8MB flash so app partition is big enough
24+
# Custom partition: max space for app
25+
cat > partitions.csv << 'CSV'
26+
nvs, data, nvs, 0x9000, 0x6000,
27+
phy_init, data, phy, 0xF000, 0x1000,
28+
factory, app, factory, 0x10000, 0x7A0000,
29+
CSV
30+
echo "CONFIG_PARTITION_TABLE_CUSTOM=y" >> sdkconfig.defaults
31+
echo "CONFIG_PARTITION_TABLE_CUSTOM_FILENAME=\"partitions.csv\"" >> sdkconfig.defaults
32+
echo "CONFIG_PARTITION_TABLE_FILENAME=\"partitions.csv\"" >> sdkconfig.defaults
2533
echo "CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y" >> sdkconfig.defaults
26-
echo "CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y" >> sdkconfig.defaults
2734
idf.py build
2835
mkdir -p ../dist
29-
esptool.py --chip esp32s3 merge_bin -o ../dist/authstick-merged.bin @build/flash_args
36+
cp build/authstick.bin ../dist/
37+
cd build
38+
esptool.py --chip esp32s3 merge_bin --flash_mode dio --flash_size 8MB --flash_freq 80m -o ../../dist/authstick-merged.bin 0x0 bootloader/bootloader.bin 0x8000 partition_table/partition-table.bin 0x10000 authstick.bin
3039
3140
- name: Checksums
3241
run: |

0 commit comments

Comments
 (0)