OpenWrt 25.12.6 在 ESP32-S31 Korvo-1

本内容由 AI 翻译,可能与原文有出入

A complete OpenWrt 25.12.6 router image for the ESP32-S31 Korvo-1 board. It boots from 16 MiB of SPI flash and runs the whole thing in about 10.8 MiB of RAM.

The wireless AP and a USB Ethernet adapter are bridged into br-lan, and the LuCI web UI genuinely works in that budget: a 10-minute run of 1790 authenticated requests measured p50 0.312 s, p95 0.317 s and p99 0.428 s, with 0.39% of requests over 1 s and no OOM, no HTTP 5xx and no timeouts.

Stack: OpenWrt 25.12.6, Linux 7.3, RISC-V ilp32f musl userland, booting flash-init -> mtdblock0 squashfs -> procd.

The part that was actually hard was memory, not the port. A 6 MiB zram cap filled with anonymous pages, after which kswapd went after the page cache instead and pulled code pages back from SD forever: 40% iowait, no idle, load above 5, console dead, every process still alive. Raising zram to 12 MiB and setting vm.min_free_kbytes=768 is what brought load from 5.85 back to about 1.0.

Known limitations, because you should read these before flashing:
- Korvo-1 only. Do not flash this onto any other ESP32 board.
- The AP is open. There is no working WPA2 softAP configuration yet, so this is not a secure router.
- The overlay is tmpfs, not persistent UBIFS. Runtime changes are lost on reboot.
- MemAvailable is still below the 3 MiB I was aiming for. The LuCI tail latency is reduced, not eliminated.
- Bluetooth, NAT, the DHCP server and the firewall are not validated in this image.

The repo ships backup, segmented update, full-flash and restore tooling, so the board stays recoverable.

Same board, same 16 MiB flash, a different image: it also runs a real X11 desktop. IceWM on the LCD, driven by an EXA driver I wrote for the PPA and DMA2D engines - 89 fps full-screen fill versus 15.7 fps on the software framebuffer, 256 fps for scrolling. See esp32-s31-linux-eXtends.

GPL-2.0-only. Not an official OpenWrt target and not a production router image.


评论 (0)

评论

登录后即可评论

暂无数据
暂无数据