Skip to content

Commit 3a8b123

Browse files
Copilotsofthack007
andcommitted
Configure QEMU for 16MB flash to match debug build
Updated QEMU flash configuration to support the new 16MB build: Changes: - run-qemu.sh: Changed flash size from 4MB to 16MB (count=16) - Updated comment to clarify 16MB flash (0x1000000 bytes) - Documentation: Added flash size note in QEMU-ISSUES.md The esp32_16MB_V4_M_eth_debug build requires 16MB flash space. QEMU now creates a 16MB flash image to accommodate this build. Co-authored-by: softhack007 <[email protected]>
1 parent e5dfccb commit 3a8b123

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/scripts/run-qemu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ echo "HTTP will be accessible at: http://localhost:${HTTP_PORT}"
5454
FLASH_IMAGE="/tmp/wled_flash.bin"
5555
echo "Creating flash image at $FLASH_IMAGE"
5656

57-
# Create a 4MB flash image (0x400000 bytes)
58-
dd if=/dev/zero of="$FLASH_IMAGE" bs=1M count=4 2>/dev/null
57+
# Create a 16MB flash image (0x1000000 bytes) for esp32_16MB_V4_M_eth_debug
58+
dd if=/dev/zero of="$FLASH_IMAGE" bs=1M count=16 2>/dev/null
5959

6060
# Write bootloader at 0x1000
6161
if [ -f "$BOOTLOADER" ]; then

docs/QEMU-ISSUES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
**Important**: QEMU testing uses the **V4 Mainline ethernet debug build** (`esp32_16MB_V4_M_eth_debug`).
66

77
### Why esp32_16MB_V4_M_eth_debug Build?
8+
- **16MB Flash**: Provides sufficient space for all features and debugging symbols
89
- WiFi hardware is not emulated in QEMU
910
- WiFi initialization causes crashes in QEMU
1011
- Ethernet build uses `WLED_USE_ETHERNET` flag
@@ -14,6 +15,8 @@
1415
- HTTP server works via emulated ethernet (open_eth model)
1516
- Debug build provides better crash analysis capabilities
1617

18+
**Flash Size Configuration**: The QEMU setup creates a 16MB flash image to match the build requirements. This is configured in `run-qemu.sh`.
19+
1720
### Ethernet Configuration for QEMU
1821
The build uses ESP32-POE board configuration (index 2):
1922
- **PHY Address**: 0

0 commit comments

Comments
 (0)