Skip to content

Commit 496b5c3

Browse files
committed
rename esp32_16MB_V4_M_eth_debug -> esp32_16MB_QEMU_debug
plus removed non-working "option 3" (online tool) for backtrace decoding
1 parent 949d42f commit 496b5c3

File tree

6 files changed

+16
-19
lines changed

6 files changed

+16
-19
lines changed

.github/scripts/monitor-qemu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@ def monitor_output(firmware_dir):
8989
exception_lines = []
9090

9191
if __name__ == '__main__':
92-
firmware_dir = sys.argv[1] if len(sys.argv) > 1 else '.pio/build/esp32_16MB_V4_M_eth_debug'
92+
firmware_dir = sys.argv[1] if len(sys.argv) > 1 else '.pio/build/esp32_16MB_QEMU_debug'
9393
monitor_output(firmware_dir)

.github/scripts/run-qemu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
set -e
1111

12-
FIRMWARE_DIR="${1:-.pio/build/esp32_16MB_V4_M_eth_debug}"
12+
FIRMWARE_DIR="${1:-.pio/build/esp32_16MB_QEMU_debug}"
1313
QEMU_DIR="${2:-qemu-esp32}"
1414
HTTP_PORT="${3:-8080}" # Default to 8080 (non-privileged port)
1515

@@ -54,7 +54,7 @@ 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 16MB flash image (0x1000000 bytes) for esp32_16MB_V4_M_eth_debug
57+
# Create a 16MB flash image (0x1000000 bytes) for esp32_16MB_QEMU_debug
5858
dd if=/dev/zero of="$FLASH_IMAGE" bs=1M count=16 2>/dev/null
5959

6060
# Write bootloader at 0x1000

.github/workflows/qemu-e2e-test.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
uses: actions/cache@v4
2828
with:
2929
path: ~/.platformio
30-
key: ${{ runner.os }}-pio-esp32_16MB_V4_M_eth_debug-${{ hashFiles('**/platformio.ini') }}
30+
key: ${{ runner.os }}-pio-esp32_16MB_QEMU_debug-${{ hashFiles('**/platformio.ini') }}
3131
restore-keys: |
32-
${{ runner.os }}-pio-esp32_16MB_V4_M_eth_debug-
32+
${{ runner.os }}-pio-esp32_16MB_QEMU_debug-
3333
3434
- name: Set up Python
3535
uses: actions/setup-python@v5
@@ -52,13 +52,13 @@ jobs:
5252
run: npm run build
5353

5454
- name: Build ESP32 firmware
55-
run: pio run -e esp32_16MB_V4_M_eth_debug
55+
run: pio run -e esp32_16MB_QEMU_debug
5656

5757
- name: Upload firmware artifacts
5858
uses: actions/upload-artifact@v4
5959
with:
6060
name: esp32-firmware
61-
path: .pio/build/esp32_16MB_V4_M_eth_debug/
61+
path: .pio/build/esp32_16MB_QEMU_debug/
6262
retention-days: 1
6363

6464
# Job 2: Test with QEMU ESP32
@@ -85,7 +85,7 @@ jobs:
8585
uses: actions/download-artifact@v4
8686
with:
8787
name: esp32-firmware
88-
path: .pio/build/esp32_16MB_V4_M_eth_debug/
88+
path: .pio/build/esp32_16MB_QEMU_debug/
8989

9090
- name: Install Node.js dependencies
9191
run: npm ci
@@ -116,7 +116,7 @@ jobs:
116116
- name: Start QEMU with WLED firmware in background
117117
run: |
118118
chmod +x .github/scripts/run-qemu.sh
119-
bash .github/scripts/run-qemu.sh .pio/build/esp32_16MB_V4_M_eth_debug qemu-esp32 8080 > qemu-output.log 2>&1 &
119+
bash .github/scripts/run-qemu.sh .pio/build/esp32_16MB_QEMU_debug qemu-esp32 8080 > qemu-output.log 2>&1 &
120120
echo "Waiting for QEMU to start and WLED to boot..."
121121
sleep 45
122122
@@ -206,12 +206,9 @@ jobs:
206206
echo ""
207207
echo " Method B - Using ESP-IDF addr2line:"
208208
echo " ~/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-addr2line \\"
209-
echo " -pfiaC -e .pio/build/esp32_16MB_V4_M_eth_debug/firmware.elf \\"
209+
echo " -pfiaC -e .pio/build/esp32_16MB_QEMU_debug/firmware.elf \\"
210210
echo " 0x401771aa 0x4015b4c5 0x40134813 ..."
211211
echo ""
212-
echo " Method C - Using online decoder:"
213-
echo " https://github.com/me-no-dev/EspExceptionDecoder"
214-
echo ""
215212
echo "4. The decoded output will show:"
216213
echo " - Function names where the crash occurred"
217214
echo " - Source file locations (file:line)"

docs/QEMU-ISSUES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Build Configuration
44

5-
**Important**: QEMU testing uses the **V4 Mainline ethernet debug build** (`esp32_16MB_V4_M_eth_debug`).
5+
**Important**: QEMU testing uses the **V4 Mainline ethernet debug build** (`esp32_16MB_QEMU_debug`).
66

7-
### Why esp32_16MB_V4_M_eth_debug Build?
7+
### Why esp32_16MB_QEMU_debug Build?
88
- **16MB Flash**: Provides sufficient space for all features and debugging symbols
99
- WiFi hardware is not emulated in QEMU
1010
- WiFi initialization causes crashes in QEMU
@@ -158,7 +158,7 @@ pio device monitor --filter esp32_exception_decoder
158158
```bash
159159
# Install toolchain (if not already from PlatformIO)
160160
~/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-addr2line \
161-
-pfiaC -e .pio/build/esp32_16MB_V4_M_eth_debug/firmware.elf \
161+
-pfiaC -e .pio/build/esp32_16MB_QEMU_debug/firmware.elf \
162162
0x401771aa 0x4015b4c5 0x40134813 0x40103cd0 0x40135d33 0x401383c6 0x4016107e
163163
```
164164

e2e-tests/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Test the actual firmware running in QEMU ESP32 emulator:
3636
1. **Build the firmware**:
3737
```bash
3838
npm run build # Build web UI
39-
pio run -e esp32_16MB_V4_M_eth_debug # Build V4 M ethernet debug firmware (WiFi disabled, 15+ min first time)
39+
pio run -e esp32_16MB_QEMU_debug # Build V4 M ethernet debug firmware (WiFi disabled, 15+ min first time)
4040
```
4141

4242
2. **Setup QEMU** (first time only):
@@ -46,7 +46,7 @@ Test the actual firmware running in QEMU ESP32 emulator:
4646

4747
3. **Run firmware in QEMU** (in a separate terminal):
4848
```bash
49-
bash .github/scripts/run-qemu.sh .pio/build/esp32_16MB_V4_M_eth_debug qemu-esp32 8080
49+
bash .github/scripts/run-qemu.sh .pio/build/esp32_16MB_QEMU_debug qemu-esp32 8080
5050
```
5151

5252
Wait ~30-45 seconds for ESP32 to boot and start the web server.

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,7 @@ lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compila
18331833

18341834

18351835
## for testing with QEMU
1836-
[env:esp32_16MB_V4_M_eth_debug]
1836+
[env:esp32_16MB_QEMU_debug]
18371837
extends = esp32_4MB_V4_M_base
18381838
board = esp32_16MB-poe ;; needed for ethernet boards (selects "esp32-poe" as variant)
18391839
board_build.partitions = ${esp32.extreme_partitions} ;; WLED extended for 16MB flash: 3.2MB firmware, 9 MB filesystem

0 commit comments

Comments
 (0)