There Is Now a Desktop OS for the ESP32-P4

There is now a desktop operating system for the ESP32-P4. Not a splash screen, not a menu on a tiny LCD — a desktop with icons, a taskbar, a start menu, an on-screen keyboard, a file manager, a PDF viewer, a music player, a weather app, and a browser that actually runs JavaScript. Doom and Quake are installed from the same menu. It boots to the desktop in 3.5 seconds.
I went looking at the cheap way to do this first, and the cheap way is genuinely clever. But it is also a dead end, and seeing why is the whole argument for spending the extra money on the P4.
The cheap version, and what it can’t do
Bevel OS runs on an ESP32-S3 N16R8 — 16 MB flash, 8 MB octal PSRAM — and it is a proper little desktop. Windows overlap, they drag and resize and minimise, there is a taskbar and a terminal and a file manager, and apps load as ELF files with their own canvas. The screen is VGA at 640×480 in 64 colours, and the graphics hardware is six resistors and a cut VGA cable. Two bits per colour channel. The whole thing is about 11,000 lines of C and it is MIT licensed.
It is also, by the author’s own list, text-only. The browser does HTTP and HTTPS, follows redirects and lays out headings and links, and that is where it stops: no images, no JavaScript, no CSS. Google search fails because it needs JS. There is no sound, because the board has no audio. No real-time clock, so the taskbar shows uptime. Two USB devices at once has never worked.
None of that is a knock on the build. It is what 240 KB of free internal RAM buys you. But it is a computer you can look at, not one you can use.
What the P4 adds, in the things you notice
Espressif’s P4 is a different class of part, and the datasheet reads like a low-end PC spec sheet. Dual-core RISC-V at up to 400 MHz with a 40 MHz low-power core beside it, 768 KB of SRAM, and 16 or 32 MB of PSRAM sealed inside the package. MIPI-DSI and MIPI-CSI, so 1080p panels and cameras. A hardware H.264 encoder, a JPEG codec, an ISP, a 2D accelerator.
| Spec | ESP32-P4 |
|---|---|
| CPU | Dual-core RISC-V, up to 400 MHz + 40 MHz LP core |
| CoreMark | 6.92 per MHz (dual-core) |
| SRAM + PSRAM | 768 KB SRAM + 16/32 MB PSRAM in-package |
| Media | 1080p MIPI-DSI/CSI, H.264 encode, JPEG, ISP, 2D-DMA |
| Chip sample price | About $4 (16 MB PSRAM), $4.50 (32 MB) |
On the Waveshare ESP32-P4-WIFI6-Touch-LCD-5 that price is $44.99 to $52.99, and that is the board the OS is built for: 5-inch 720×1280 IPS, capacitive touch, an ESP32-C6 alongside it as a Wi-Fi 6 co-processor, an ES8311 audio codec with a speaker, microSD, and a LiPo connector. It was showing as out of stock when I looked.
The same class of desktop, with the missing pieces filled in
ESP32-OS is the project, it is GPL-2.0, and the interesting design decision is that it does not emulate anything. It re-implements the KolibriOS system calls in Rust, then compiles the original KolibriOS C programs for RISC-V so they run unchanged. On top of that sit the desktop, the system programs, NetSurf 3.11 and four games.
So the browser has HTTPS with certificate checking, tabs, bookmarks, history, downloads, zoom, forms, and JavaScript through QuickJS-ng — DOM, events, timers, fetch, cookies, localStorage. The PDF viewer renders A4 pages with photos, text and shapes in 0.24 seconds. The image viewer opens 48-megapixel phone photos, JPEG decode in hardware. There is a music player for MP3 and WAV, a notes app, a calculator, a calendar, a five-day forecast from Open-Meteo with no API key, a task manager, a screenshot tool, and a console with pipes and redirection.
The measured numbers are published with the raw logs behind them, which is rarer than it should be. Doom 55 fps, Quake 27.5, Pudding-Panik 55, Würfelwelt 27.6. Browser scrolling on a Wikipedia article at 32 fps. Wi-Fi throughput 11.6 Mbit/s down to the board and 9.8 up. Two 75-minute endurance runs with zero crashes and zero resets, internal RAM steady at 218 to 214 KB. The desktop is drawn at 640×360 and scaled ×2 to the panel.
Espressif’s own esp32-quake is the other reference point: Quake 1 on the P4 evaluation board with the HMI sub-board, 512×300 upscaled to 1024×600 at 20–25 fps, with digital audio, CD music and LAN multiplayer. Same story — the P4 has the headroom, the S3 does not.
Reality check: this is a hobby OS, not a tablet. Wi-Fi passwords sit unencrypted in flash. The browser gets 10.5 MB, so large web apps do not load and some APIs are missing. All programs share one address space, so a crash is contained but can still disturb the system. There is no battery gauge and no camera yet. The build only runs on Windows. And the release images mix GPL-2.0 code with Apache-2.0 ESP-IDF, which the author is still clarifying — the source is unaffected.
So the P4 is the better value, and not by a little
It is worth being precise about what “better” means, because the P4 is not faster at the thing the S3 build was fighting. That build was never CPU-bound. A 640×480 frame at 8 bits is 300 KB and the S3 has about 240 KB free with Wi-Fi on, so it bounces scan-out through two small buffers and writes 128-bit chunks just behind the beam. Clever, and it works, and it is still a text browser.
The P4 does not just give you more clock. It gives you 32 MB of PSRAM in the package, a hardware JPEG decoder, a 2D accelerator, MIPI display output, and an audio codec on the board. Those are the things that turn “a desktop you can look at” into a machine that renders a PDF, plays an MP3, decodes a 48-megapixel photo and runs JavaScript. At $45 for the whole board versus $5 of silicon plus a monitor you already own, the extra money is buying capability, not speed.
If you want the resistor-and-VGA build as an exercise in memory bandwidth, it is a beautiful piece of work and the write-up is worth your evening. If you want a small computer that does things, buy the P4.
The P4 is the one to buy. The S3 build is the one to read about, and the gap between them is the most useful thing either project teaches: on a microcontroller, memory and fixed-function blocks decide what the machine can be, and the clock speed is the least of it.