The ESP32-P4 is Espressif’s high-end application processor, with two blistering fast RISC-V cores for a surprisingly reasonable price. As it’s a very capable computer in its own right, there have been a range of operating systems made for it. Latest among them is [Jthwho]’s BMDS, for Bare Metal Do Stuff, which targets an Olimex board.
At its heart is the FreeRTOS kernel we’ve seen in so many other similar projects, but on top is an OS which is described as being like DOS in its one-user minimally intrusive operation. It runs ELF binaries, and has some POSIX compliance, with BusyBox being a port. Perhaps most noticeable is its GUI, which provides a very slick desktop straight out of the late 1990s.
We can see that had this appeared as a contemporary of Amigas, 68k Macs, and Windows 3.x, it would have immediately been a real contender. But the question is, does such an OS have a niche here in 2026? We think it might, as this processor is slowly establishing itself in a new genre of powerful machines aimed at hackers and tinkerers. Either way it’s an impressive achievement, and we look forward to seeing it develop over time.

So this question will sound kind of snarky but it is 110% real. Will states like California require age verification now to use an esp32? or maybe to load an esp32 with this rtos?
As the author of this, I can tell you I’ve implemented age verification based on what sentence you ask the text to speech engine to say.
What the law actually requires (and why ESP32s are unaffected)It only applies to “General Purpose” devices with App Stores: Even under the original text of AB 1043, the requirement only triggered if the device could access a “covered application store” to download third-party software applications. Standard embedded ESP32 firmware does not qualify. Open-Source Relief (AB 1856): Following heavy pushback from the Electronic Frontier Foundation (EFF) and Linux/embedded developers, California lawmakers passed AB 1856 in mid-2026. This amendment explicitly exempted open-source operating systems and software from the mandatory age-gating requirements.No ID Check (Age Indication, Not Verification): Even on consumer devices like Windows PCs or iPhones, the law does not require showing a government ID or credit card. It only requires an “age indication” (a self-reported birth date prompt during initial OS account setup).
age verification is a crock and a violation . Its a 1000% goverment and company over reach . its up to the parents to control and monitor thier kids. Not the goverment or companies.
But when something happens, parents will complain that “somebody should do something to protect their children”, because themselves are too busy updating facebook or reading whatsap to pay attention to what their children are doing.
Fun fact. California is the only US federal state that has a German name (Kalifornien).
That’s almost ironic, since bureaucracy and silly laws are a German trademark, kind of. 🥲
California is not a German name. It comes from a XVI century Spanish novel https://en.wikipedia.org/wiki/Las_sergas_de_Esplandi%C3%A1n.
Hi, I meant that in German, there’s a name for California.
The other states (AFAIK) are called by their US names.
We even have our own Kalifornien in Germany, right next to Brasilien (the German name for Brazil):
https://www.google.com/maps/place/Kalifornien,+24217+Sch%C3%B6nberg+(Holstein)/@54.4272482,10.3651572,16z/data=!3m1!4b1!4m6!3m5!1s0x47b2f6b2d1630a3f:0xa248966482baa40!8m2!3d54.4271334!4d10.370204!16s%2Fg%2F1tjbr6wj?entry=ttu&g_ep=EgoyMDI2MTExMC4wIKXMDSoASAFQAw%3D%3D
If the name matches, I’m afraid the climate does not.
People previously asked the project’s author “how much time did it take to complete the project”. Nowadays we have to ask “how much tokens did it burn…
It took me multiple months and at least twenty tokens, although four or five of those might have been quarters. The coin mech didn’t care.
I used to be impressed by such projects. Now I don’t give it any further attention the moment I smell heavy AI involvement. There is nothing impressive in that.
It really is frustrating! Hackaday needs to position itself. Data centres harm so many of their neighbours that AI usage and code is impossible to accept and raising the price of water and electricity over a much wider distance really makes AI projects NOT FUNNY!
Someone described an AI/LLM chat as shooting burning arrows into the rain forrest.
I think that’s a good visualization to make people using AI feel guilty.
Not entirely factual. You have been the victim of Chinese propaganda. They pushed a world wide narrative of anti data centers in the US and elsewhere. They don’t want other countries to thrive with AI assistants and similar.
I think back to the old story of the horse and buggy. It was replaced by that horrible combustion engine and our streets have never been quiet since. A news article came out around the turn of the last century lamenting about these new horseless carriages and complaining about the drivers and speed. It was estimated in that article one day there would be more deaths from automobiles and rattle snake bites.
>I think back to the old story of the horse and buggy. It was replaced by that horrible combustion engine and our streets have never been quiet since.
Cars replaced horse because horse pollute worse than cars.
What do you think a city would look like if everyone who now drives a car rode a horse or drove a horse drawn buggy instead?
Shit ankle deep, with dead horse scattered around.
This isn’t just made up.
https://www.newyorkalmanack.com/2021/02/the-unpleasant-side-of-life-with-horses-in-cities/
Cars suck. Horses are worse.
The other day I was driving behind a really cool classic car. I could see and smell the exhaust. That’s not a complaint. One car is no big deal. I’m not against car lovers keeping a classic on the road and enjoying such a thing. I was admiring that car.
But it reminded me of being a kid in the 80s. I really hated visiting the city because the exhaust fumes would burn my nose, throat and eyes. Now I live in a city and the air is fine.
I think a lot of older people forget just how bad car exhaust used to be compared to now. And younger people never experienced it.
Economics ensure that classic cars will always be a hobby for those who really want it, not the typical traffic on the street. But when all the cars on the street were simple… and I only experienced 80s simple, not 60s or 70s… it could get bad!
Sure, a lot of car parts are more complicated and expensive. One needs to learn new skills to maintain their own vehicles. And purposeful vendor lockin… like chipped parts.. we really need laws against that.
But there are good reasons we have environmental regulations and that we switched to more complicated, more efficient vehicles. The past was NOT better than today.
I know what you mean..
On other hand, if there’s some human involvement (artwork, design, applications written by others) then it’s worth a closer look.
Because time after time, the AI work can be “overwritten” by all that human involvement.
Basically, it’s akin to using sample code in a programming book to build the foundation, then refine it until that sample code is being replaced by your own code.
So I really think it’s worth being able to differ,
just like it’s important to be able to distinguish between art and its creator/a role and the actor.
I know, it’s a bit ironic and self-contradictionary to mention this in same sentence with AI/LLM..
But the underlying principles are related here.
It’s important to not “hate” the works, the outcome of AI if we dislike AI as such.
Because, the training data of AI was human input.
The sample codes used to build the work were written by humans.
Just because AI has cobbled it together doesn’t mean it’s bad per se. It depends on situation.
So relying on generalization is too simply, too shortsighted, maybe.
I’m not excepting myself here. I have mixed feelings most of time.
The code from a book that might eventually be replaced, was put in that book by consenting people, and the publishers had actual rights to put it there.
Your analogy needs work.
This is more like using slave labor to build a prototype and first generation hardware.
Even if you do eventually replace everything with human made parts, you don’t absolve yourself of the crimes it took to create it.
You guys complain, but it also enables projects that would not have been doable otherwise.
Nobody wants to take a look, if the code is really that bad, and how it could be improved?
Hi, the way I see it, personal opinions are no complaints.
Just like an aversion is not same as “hate”.
Yeah nobody’s ever written an operating system before, thank goodness AIs were invented so we could start having operating systems on things.
Fair enough, positive criticism is indeed important. You have a point there.
Hm, I do imagine there could be a thin compatibility layer to run existing software.
Such as an CP/M, DOS, OS/2 or a basic 16-Bit/32-Bit Windows layer.
The latter with a Win32s level of functionality (HX DOS Extender etc).
That way, users could do something useful with this ESP32 OS from the get go.
Because, OSes rise and fall with the available software.
OS/2 had same issue, I do remember.
PS: Some has been working on a WINE counterpart to KolibriOS, for example.
Though there’s already DOSBox available on that niche platform, so DOS to Win95 applications can run there.
Slave labor also enables plenty of projects. That doesn’t somehow make it okay.
The data used to build these tools was stolen or nonconsensual. The companies selling access to these models have no legal rights to use it themselves, let alone tell other people they can license it.
Your argument might as well be “But how am I supposed to run this plantation without access to this slave labor?”
On what basis do you accuse this project of LLM involvement? You might be smelling things.
Smoking gun:
https://github.com/jthwho/bmds/blob/main/CLAUDE.md
I think the same things were said, though not on the internet, when mechanical looms surpassed hand weaving…
Oh, looms! Reminds me of Loom, that British game! :D
Also, loom weaving is one of the oldest computer applications.
In the UK, they’ve used micros* for the weaving patterns early on.
https://www.youtube.com/watch?v=JZjNHnYFqOA&t=146s
(*1980s UK/GB slang for home computers)
BS. How many professions were displaced by the looms? How many people were surveilled by the looms? How many public systems were compromised by the looms?
How much CO2 was produced by the looms?
And do we now have better or worse quality clothing? Cannot find jeans which don’t wear through the knee within 12 months.
That’s not the result of those looms. It’s a result of manufacturers switching quality cotten for synthetics and crap cotton.
But to answer your co2 question. Between tractors to seed, fertilizer to grow, and combines to harvest then dump in cotton trailers to bring to the gin then another method to get to the textile mils which are now overseas. We are burning a ton of co2 for a pair of jeans.
Customers wanting stretch material in the jeans, lighter weight and less stiff is perhaps more of the true reason. There are still stiff, heavy jeans to buy. They will hold, but people are not buying those.
Yes but it does not have the same feeling. I was at the textile mill last night loom coding til 3 am.
You sir just won hackaday.
What mill, what geographical area?
I worked in those textile mills from cotton bales to woven fabric. Love the smell of cotton fire air. Now, here in N Carolina, they’re all but gone.
Edit: “cotton free air” (as in “shift is over, and I can breath freely now”)
Apologies for the mistype.
Not even remotely the same argument.
The Luddites weren’t forced to build the looms that would replace them.
Further, the looms actually did their jobs better/faster/cheaper.
None of the Luddite arguments work for GenAI.
The ROI is strictly negative.
The tools cannot do superior work.
The tools were built with stolen or non consenting data.
GenAI also has the added bonus of wrecking global economies, making resources too scarce to afford, and being an environmental issue(which the industrial revolution did become).
Nice work. This thread is full of criticism. Thanks for sharing your experience with others.
Are you the coder?
Time was, there was a distinct line between a microcontroller (PIC, Arduino, ESP32) and a computer (PC, Mac, Raspberry Pi.)
I’ve seen RPi microcontrollers and now this is like an ESP32 computer. The line is blurred pretty good/
In the 80s, the lines were already blurrying I think.
The i8085 was a i8080/Z80 competitor that often was used as the heart of microcontrollers.
The i80186 contained the core peripherals of a motherboard, basically.
Not of an IBM PC, but a basic 8086 system (yes, intel had a sample design).
Then NEC V40/50 followed.
By late 80s, integration of 8-Bit systems such as PC/XT reached a level that allowed 8086/8088 based SoCs.
Handhelds such as Atari Portfolio or Poqet PC were the results, among other things.
These Vadem chipsets also integrated XT and basic AT functionality (Vadem VG230 etc).
Ah, the 80186 … whose errata was longer than its manual.
Not to mention that the performance gap between low end Computer CPUs and high end microcontrollers may be narrowing now, but if anything it was even narrower in the early 80s – in fact I can think of several CP/M machines where the microcontroller used in the keyboard (intel 8048 or 8051) could in many ways outperform the 8080 or Z80 at the core of the machine. The 8051 even had hardware multiply and divide, for goodness’ sake!
You mentioned the 8085, which was an interesting case; it was probably not *technically* a microcontroller, just an improved 8080-compatible CPU. But intel’s tightly-integrated companion chips like the 8155 (RAM/PIO/timer) and 8755 (EPROM/PIO) could be directly wired up to it, making it popular for embedded systems where it functioned exactly *like* a microcontroller.
(and of course, a lot of modern things we call microcontrollers, including ESP32 variants, don’t have all of their RAM and ROM embedded in the core chip either)
I see what you mean and I mostly agree. My personal rules for classifying a computing device in low/high end is the following:
— Does it have a page-based MMU that performs virt-phys address translation?
— Does it have at least 2 privilege levels?
— Does it have at least 16MiB of RAM, capable of storing both code/data? Also (don’t laugh) can it actually address such amount of memory?
If the device has all these traits, it’s a high-end according to my subjective taxonomy :D. Otherwise I consider it a MCU.
Hey, that reminds me of the 68010 CPU! :D
It was like a counterpart to the 80286 CPU in some ways.
Though the ‘010 had no internal MMU (but unlike 68000 could use an external MMU).
Some later NEC V-Series x86 CPUs had a 16 MB addressing mode and a bank-switching mechanism.
Like a cross between an 80186 and an 80286, basically.
Required special software support, I think.
The AI toothpaste is out of the tube, and it isn’t going back in. I was lamenting the loss of our hobbies the other day (to Gemini) as the satisfaction i used to get to watch my project come alive seems to be gone.
But the things you wanted to sit down and do, but never did, can now be done.
And unless you straight up vibe coded it, you’re still doing the work along with the AI, just a ton faster and with an assistant sitting with you doing the boring parts.
I’ve knocked out so many of my I’ll-get-to-that-one-day software and electronics projects that have been sitting on a shelf for years, sometimes over a decade, and I couldn’t be happier. Only now I can’t share them with the Internet like I always did, because folks poop on it the instant they find out you used ai to help.
That’s definitely a practical point of view. I (as everyone else here) have a long list of planned (and… doh, unfinished) projects, but I would prefer to find the spare time, sit down, learn what I need and be able to do them by myself and not anyone else.
I’m personally not interested in seeing something just “finished at any cost”, but love the hard work to fight for the UNDERSTANDING of the subject matter. That’s what I’m passionate about.
I dont give a shit how it was done as long as it works.
And without knowledge you can even promt or know what to do with the result.
People without knowledge are called “incompetent”. How such a person can actually know if something works properly?
Let me explain my position. Most of us here adore technologies, at any level. We also love to learn things. The best way to learn is by doing. That’s the role of the hobby projects. There’s also the feeling of the personal achievement, that you learned something and your new knowledge was successfully applied to create a working thing, which is wonderful. This is what I respect.
Bragging about things you haven’t done by yourself is something which I personally don’t understand.
Technically, you haven’t done anything yourself either. You’ve used knowledge other people gained and gave to you, hardware other people made, written software entirely based on the work of other people.
That is, unless you have doctorates in every field of human knowledge, and work exclusively in your own programming language, and have produced your own silicon with equipment you made from raw materials you mined yourself? Just to pick a few examples.
There are many, many valid criticisms of AI, but this one falls flat. You arent in a separate class of people because you choose not to use it, you just draw the line of where something someone else made becomes something **I** made in a different place.
Exactly. We can poop on python users for not using C. We can poop on C users for not writing in assembly.
This is just the new line in the sand. In a few years time, AI coding will be accepted and some new feature will be the thing that’s pooped on.
That’s why one needs to learn Python, C and assembly (for several architectures), just in case :D.
AI/LLM still builds upon human data sets, that’s why antique books are being “hunted” right now.
In a few years, if no new human data is available anymore – because of all those AI/LLM users/coders, AI/LLM might use AI slop as data sets instead.
Then we may see a garbage in/garbage out situation in which AI/LLM may nolonger be helpful at all or may start to hallucinate wildly.
It’s as if we make a copy of a copy of a copy.
Minor mistakes may increase and multiply each time.
Get it? The “just use AI for that” mantra causes AI/LLM to become dumber.
Because without the human coders/artists etc AI/LLM has no new teachers anymore.
In your efforts to prove me wrong, you missed my idea.
You can achieve something even if not starting from scratch. That’s the thing, you build upon others’ work. That’s how people developed and passed knowledge for ages. But it’s completely different thing to call something “I did it” when someone else actually did it (be it a real person or a bunch of digital circuits).
I’m not asking you to agree with me, just expressed my opinion. Otherwise it could just so easy to say “I’m not interested in arguing with people who can’t do shit without asking Claude to do it for them” but that would be rude of course…
Your argument is pedantic and deliberately mischaracterizes Nik’s position. It appears that you can’t distinguish the difference between solving a problem using your natural intelligence – analyzing the problem, thinking up possible solutions, perhaps having to learn a new technique or language or skill in the process – and telling a machine “hey, make this thing for me”.
As the author of this particular project, I thought I might chime in. I’m generally in the same camp as Linus Torvalds on AI: I see it as another tool, perhaps one that’s way more powerful than I’ve used before, but a tool nonetheless. I’ve spent my entire life in embedded programming (mostly embedded Linux) and could certainly write all the code Claude has for me on this project. But, given this is a hobby project any my limited time available for it, it would have taken me much longer than the few months I’ve been working on it (I’d guess years). Though, while I’ve written much less code for this project than I have past projects, it still very much still scratches an itch for me (how far could I push the hardware? Hey, I wonder if it’ll do X? etc)
It’s not quite a simple as prompting Claude “Hey, write me an OS for the ESP32-P4”. There was months of work on my part. Sure Claude was writing most of the code. But it was me driving Claude incrementally, reading the code, reading the documentation, running experiments, telling Claude when a suggestion it made wasn’t great (yea, sometimes it does some lazy stuff), and then testing the results.
Hopefully nothing I’ve done comes off as bragging, but there’s a certain amount of icky self promotion needed to even let anyone know about anything anymore. Mostly, I’m hoping to contribute something fun, have interesting technical discussions, and generally connect with curious and interesting people. In sharing it with everyone, my hope is that someone else might find it useful and help them in scratching whatever itch they happen to have.
Looking diagonally at the project, it seems to me that a possible improvement could be (some day) the task isolation.
The ESP32-P4 seems to have U-mode implemented (I don’t know how well it works, as I’ve seen broken core features in the other ESP RISC-Vs). As far as I remember FreeRTOS currently doesn’t support PMP, and ESP-IDF started locking the PMP at boot, but all of these should be fixable with some efforts. I know that the initial design intent is “DOS-like OS”, but even a single-user OS can benefit in terms of reliability a lot from even a basic memory protection. This will also force the implementation of “proper” syscalls.
Hi! Author of the project. It was something I thought about, but the ESP32-P4 lacks the hardware to do this. It does have an MMU, but not one with the features to build a userspace with virtual addressing (page faults being the biggest one). I do use the MMU in memory management (to keep fragmentation minimized) and looked into using it for the ELF loading. If I end up implementing shared libraries, I might use it there. Although it’s not clear how much the platform would actually benefit from shared libraries (the strategy there is shared stuff goes in the OS and accessed via system calls)
Hi Jason! Regarding the so-called MMU, it looks to me more like a simple address-decoder than anything else, and unfortunately Espressif seems to have the same random approach to naming on-chip subsystems as they name their products (ESP32-S31 anyone?). I think this MMU is hopeless for the purpose discussed above.
To be honest, I was also toying with the idea of implementing some prototype for the P4, but more in the direction of one step above uLinux, e.g. using whatever HW features are available to put real boundary (1) between userspace and kernel and (2) isolation between user processes. Even if only for reliability (e.g. bugs in userspace processes should result only in process termination, not undefined behavior as the userspace somehow overwrote the kernel code/data).
So, PMP can provide this HW-based isolation at least for (1). Regarding the isolation of userspace from kernelspace (e.g. locking the PMP) I’m not sure how well will this work, as such locking is good for static runtime environment (like an embedded system in a product) than compared to a more general-purpose computer in this case. Just consider the idea of dynamically loading a kernel module and the locked PMP suddenly becomes a hurdle. But, it’s great that RISC-V architects gave us the option to toggle it on/off based on our needs.
Then, the question of MMU. That’s a cornerstone of having multiple processes and shared libraries (shared .text, shared .rodata, per-process .data, etc). Unless one implements exception-based address translation (which the more you think about it, the more it looks stupid, inefficient and desperate, and if not – just measure the performance :D), there’s no way to compensate for the missing MMU. Also because virt addr == phys addr, the memory layout of all simultaneously loaded executables and shared libs becomes a giant puzzle, that seems to have a working static solution unless you proceed with continuosly starting/stopping multiple process during runtime, and suddenly people realize that what the MMU was giving us for all these decades is not only protection (or God forbid, swapping!), but the ability to **control memory fragmentation** (aside from the other goodies).
I don’t see proper generic solution to this issue – you can find some specific configuration that will work for 2-3 use cases, but they’ll always have very limiting assumptions, imho.
Based on this limitation, I haven’t still pushed forward with this toy project – I’m not lazy, I can write the code, but I just don’t like driving into a wall that’s easily seen with my bare eyes. But I’m looking forward of what others discover, so I can also learn more.
To be honest, the ESP32-S31 looks like the natural evolution of the P4, and I need to learn more about it’s capabilities (and which HW blocks are broken this time).
PS: I know that there are other CPU’s capable of having full-fledged OS running (I have most of them in my drawers and desk), but my personal focus lately is on the RV32, so that’s the reason of this long and boring thought process… :D
Kind regards.
Had another look at the documentation. After my MMU research I hadn’t dug deeper. I think you may be correct and I’ll look into it. I’ll run some experiments to see if I can use PMP, but I think I’d draw the line an needing to patch (if indeed that’s required) the IDF since that makes it less useful to others.
In any case, I really appreciate the feedback and technical discussion.
Maybe I overstimated the complexity of disabling the PMP lock (or Espressif’s original design intent), but this should disable the PMP configuration + lock, leaving it entirely at your discretion:
CONFIG_ESP_SYSTEM_MEMPROT_FEATURE=nThanks for the extra comments above, Nik. I saw the same config option and am working towards adding it. Turns out, it does require some changes to the bootloader but not any ESP-IDF patching. I also worked in some other fault protection by catching the various exceptions. Hopefully the net result is now it’s not so easy to crash the board.
thanks to advancing hardware specs, we can now look to a wide variety of $10ish computers that are effectively 1990s desktops. and i’d say, by the time we actually get around to using them for anything, hardware specs will have advanced to where that stuff looks quaint even by the standards of $10 computers. and the surprise factor proving that wrong is that AI is advancing at a rate that we can reproduce entire 1990s ecosystems even faster than the chips we’re targetting become obsolete.
i’m dizzy i need to sit down.
Yes and no, I think. A 486DX4 or Pentium III might still have certain things on its sleeve that a modern microcontroller hasn’t.
The 486 has an x87 math copro with 80-Bit precission and an efficient caching mechanism.
The Pentium III has SIMDs such as MMX and SSE, and lots of “internal” cache in that cartridge.
Personally, I think a late 90s PDA or handheld PC with SH3, MIPS or StrongARM RISC architecture is closer to these microcontrollers.
You know, these things that ran WindowsCE 2.11 or something.
Or maybe a Sega Saturn or Dreamcast or a GameBoy Advance, a GameCube etc. Something like that.
The GameCube has a PowerPC CPU, similarily to original iMac.
The vaious spacecraft used a PowerPC processor, too, as an embedded system.
The BAE Systems RAD750 is a modified IBM PPC750 (aka G3).
What I meant to say is that 90s era desktops were very general purpose.
The CPU had external interrupt controllers, DMA controllers, a front-side bus etc.
Even the ancient 80286 CPU had a segment-based MMU
and was soon installed on PC motherboards with so-called “NEAT” chipsets (various clones).
https://en.wikipedia.org/wiki/NEAT_chipset
These chipsets were quite intelligent, integtrated many support chips
and provided memory controllers that allowed for Expanded Memory and Shadow Memory.
They were akin to a simple MMU, basically, especially because of how they featured bank-switching for EMS.
These smart chipsets were the result of the limitations of the 80286 compared to the 80386.
The 80386 could use its more advancded MMU to trap access to i/o spaces and re-map memory reads/writes
via a memory manager such as Compaq’s CEMM or MS Windows/386.
But V86 did cost performance on 80386 and on older 80486 CPUs (pre 486DX4).
By comparison, an 80286 or 386SX could use an existing, intelligent 80286 chipset
and have EMS, UMBs and shadowed RAM in Real-Mode,
which enhanced compatibility and stability.
(The 80386 aka 386DX could use 286 protocol/interface too, but it’s a bit of a waste.)
It’s interesting to demonstrate that you can run an OS in such minimalist hardware. It’s an astonishing achievement to have it in such small and cheap machine.
However, the thing that I most praise in Arduino/ ESP is precisely that it doesn’t need an operating system. There is a beauty and usefulness in being able to talk directly to the hardware, without layers of software and complexity that takes the fun out your projects. Small is beautiful.
Let’s use the extra power, not for fat software, but to make more capable machines and automations!