Espressif's ESP32-S31 runs real Linux, but skimpy RAM keeps it a microcontroller
Original source
The newest ESP32 can run Linux and it's getting close to a Raspberry Pi
Hacker News →Espressif’s new ESP32-S31 packs a peripheral set that reads more like a single-board computer than a microcontroller: a gigabit Ethernet MAC over RGMII, a USB 2.0 High-Speed host controller, dual-slot SD/SDIO, camera and 24-bit LCD interfaces, dual I2S with Bluetooth audio sync, CAN FD, and a full radio stack spanning Wi-Fi 6, Bluetooth 5.4 (including Classic), and 802.15.4 for Thread and Zigbee. Under the hood are two 32-bit RISC-V cores at up to 320 MHz — reportedly derived from the ESP32-P4 and roughly twice as fast as the S3 — with per-core FPUs, a 128-bit SIMD path, and a separate low-power core.
The headline change is a genuine memory management unit. Where Espressif’s earlier “MMU” was really just a flash/PSRAM address mapper, the S31 implements RISC-V Sv32 two-level page tables and full Machine/Supervisor/User privilege modes — the prerequisites for running an unmodified Linux kernel in supervisor mode. Espressif has already shipped a Buildroot/U-Boot BSP (not production-ready), and the community has ports running Linux 6.18 and 7.1 with working drivers, wired networking, and a console on an attached panel.
The catch is memory. With 512KB of SRAM, at most 64MB of in-package PSRAM, and no DRAM controller, the S31 is dwarfed by cheap Linux SBCs like the Milk-V Duo S and its 512MB — which is why the Linux builds run the kernel from flash to conserve PSRAM. There’s no GPU or NPU, gigabit line-rate on small packets looks doubtful given the clock, the confusingly named “S31” has nothing to do with the Xtensa-based S3, and the datasheet is still a preliminary v0.5. For now Linux is more toy than product, but this is the first ESP32 whose peripherals, bandwidth, and CPU privilege model genuinely straddle the line between microcontroller and SBC.
Read the full article
Continue reading at Hacker News →This is an AI-generated summary. Read the original for the full story.