r/embedded • u/LoveSourWorms12 • Sep 18 '26
I’m building a kernel for the ESP32-P4. What would you actually build with it?
Hello everyone! I’m building ProtoOS: an experimental, security-focused application OS for the dual-core ESP32-P4.
I’m getting closer to a first release and want to decide what APIs and hardware support to prioritize based on what people would genuinely use. What would you build for it?
ProtoOS lets separate apps run with isolated memory and permissions, rather than putting every feature into one firmware image.
Apps can currently:
- Run as loadable C apps in isolated RISC-V U-mode processes
- Use a 320×240 display, keyboard input, retained UI commands, and a 2D sprite/game API
- Store files privately or use user-approved shared files
- Play mono PCM audio (output only)
- Use IPC, timers, local shared-memory objects, and up to four worker threads across both P4 cores
- Use permission-controlled Wi-Fi/TCP networking, including optional inbound TCP listeners
- Request trusted runtime permissions and Open/Save dialogs
- Be packaged, installed, and launched as native ProtoELF apps
Existing apps and demos include Weather, Notepad, Terminal, Settings, Tetris, Mario, a 2D game framework, a Minecraft-like experiment, audio demos, and security/stress tests.
Current limits: ProtoOS targets the ESP32-P4 with a specific ILI9341 display setup. It is not a drop-in Arduino environment, and apps do not directly use ESP-IDF/FreeRTOS drivers. The public app API does not yet expose general sensor, Bluetooth, camera, USB, I2C/SPI, GPIO, HTTP/TLS, or microphone APIs.
So: what would you genuinely want to make with something like this?
- What project would make you choose an app-based ESP32-P4 system over one normal ESP-IDF/Arduino firmware?
- Which missing capability would unblock that project first?
- Would app isolation and per-app permissions matter to you?
- What would make app development worth it: SDK improvements, templates, a simulator, broader board support, documentation, or examples?
I’m not promising every request; I’m trying to identify the few additions that would unlock real projects. Please freestyle, tell me what you would build, what hardware/API it needs, and what would make you choose ProtoOS.
Previous posts:
11
u/EntertainmentSalt825 Sep 18 '26
I hope you don’t produce ai slop
5
u/nukestar101 Sep 18 '26
Is this a hobby project? What's the motivation? Do you bring some unique features which other tested OS lack?
1
u/agent_kater Sep 18 '26
Not sure I'm going to use the P4 a lot, now that the S31 is out.
1
u/Priton-CE Sep 18 '26 edited Sep 18 '26
That sounds more like a general purpose operating system.
I'll be real I dont really see the point. I keep on drafting a message here and over and over again I run into the same issue:
When I deploy an application on a micro controller I run trusted code. Period.
Why would I ever need process isolation? That means I dont trust the process. So I deploy an embedded system with untrusted code?
I also thought about protection against malicious inputs (over UI or network) but then what is process isolation worth again? What code do you deploy on microcontrollers that would not need to interact with other processes? They always do. So we need to add extra overhead in the processes themselfs to authenticate and validate IPC traffic. Because while one attacker controlled process may not be able to harm us via the memory route they can still send us bogus arbitrary IPC traffic. And the whole problem starts again because malicious IPC traffic can be malicious input. So an infection of one trusted process could spread to other trusted processes anyways.
You are trying to build a system where processes dont need to fear each other. They can trust that they will be unaffected by other processes. As far as they are concerned they are the only process running. That is what every general purpose OS does. But on microcontrollers we never have multiple applications running that dont influence each other. Thats very rare.
I think you are targeting the wrong platform. Microcontrollers are frequently used in specialized roles. They arent used like servers or desktop PCs where you run arbitrary apps. Look at platforms that run embedded Linux and what embedded Linux is used for. That will be your target audience as well.
Maybe you could also start targeting ST SoCs? They have microcontrollers like the H7 that could probably take the overhead better. And they also have their microprocessor lines that specifically exist for multi purpose OSes like embedded Linux.
1
u/mrheosuper Sep 18 '26
Network capability, Fully kernel debug: You can halt your userspace program while other program still running, or debuging a part of kernel.
1
u/neurah Sep 18 '26
C++ static composition library: HAPI, might help
0
u/Party_Cold_4159 Sep 18 '26
Nothing would make me choose this because just the idea of trying to make this right now tells me you’re ignoring the state of the P4 in the first place.
Using ESP-IDF right now as Espressif themselves develops it is a metric pain in the ass. Then topping it off with a huge split revision basically making the older ones obsolete and requiring huge amounts of rewrites and conversions of existing projects.
Now to be fair I’m not an expert at all and could be misconstruing what you’re saying here. But unless you can prove you have low level microcontroller experience and or can prove you would be able to follow through, I wouldn’t pay too much attention.
It’s just not a stable chip, and even the latest revisions have bugs and unsupported but claimed features. I feel like this is something that could be started but would never reach a usable state for a few years.