Ümit Kar 🚀 (@kar_umit) header
Ümit Kar 🚀 (@kar_umit) profile picture

writing an OS from scratch in Rust on a raspberry pi. no linux, no apps, a horizon you talk to. day by day. waitlist: https://teapawt.net/t.co/GOutZ5oXZB

Joined June 2013
Photo by Ümit Kar 🚀 (@kar_umit)Photo by Ümit Kar 🚀 (@kar_umit)Photo by Ümit Kar 🚀 (@kar_umit)Photo by Ümit Kar 🚀 (@kar_umit)Photo by Ümit Kar 🚀 (@kar_umit)Photo by Ümit Kar 🚀 (@kar_umit)Photo by Ümit Kar 🚀 (@kar_umit)Photo by Ümit Kar 🚀 (@kar_umit)Photo by Ümit Kar 🚀 (@kar_umit)Photo by Ümit Kar 🚀 (@kar_umit)
Two companies decide what a phone can do. I'm writing a third answer: an operating system with no apps, just an AI you talk to. From scratch, in Rust, on ARM. No Linux underneath. I have no idea if I can finish it. Building it in public anyway. Day 1 → Follow along: @ArcheusOs
4
1
476
october on my OS's screen: oct 5 · it remembers: boot #1, power off, boot #2 oct 7 · it feels your finger oct 20 · the home screen oct 21 · digits for the clock, and a horizon that moves like a string no linux, no android underneath. rust on a raspberry pi 3b+.
1
34
this half-watt speaker is the only mouth my operating system has. it answers about 1.2 seconds after i ask. no linux, no android, a kernel i'm writing from scratch in rust.
1
25
the first thing to wake up on my raspberry pi isn't the CPU. it's the GPU. it reads its own firmware off the SD card, loads my kernel to address 0x80000, and only then lets the four ARM cores start. three of them go straight back to sleep.
1
22
that boot path is the start of an AI-native operating system with no apps, written from scratch in rust. waitlist: archeusos.com
9
everyone's building AI apps. i'm building the thing they'd run on, and it doesn't run apps.
1
28
it's an AI-native operating system, written from scratch in rust on a raspberry pi. no app grid: you ask, it answers out loud. waitlist: archeusos.com
12
meta: a trillion-dollar company, $300, ships in december. me: one person, a $35 raspberry pi, a kernel written from scratch. same bet. a pocket AI device with no apps. here's what mine says when i turn it on 👇
2
1
46
why no apps: phones turned into a drawer of apps, one for every little thing. i think it's time for a different setup, where you just ask. waitlist: archeusos.com
11
in october my OS got a second chip to talk to. four wires between a raspberry pi and an ESP32, and the first message went there and back in 910 microseconds. that ESP32 is the radio now: wi-fi, encrypted bytes it can't read, and the voice that comes out of the speaker. 57 seconds from the day they first shook hands.
1
1
44
i set up the camera to film my OS answering out loud. it said nothing. day 14. over the weekend my mac's address on the home network changed from .196 to .166, and the device kept calling the old one. phones never hit this because they find servers by name. the next morning my voice server got a name too.
28
the wi-fi chip that carries my OS's internet traffic can't read a single byte of it. it's an ESP32, used only as the radio. my own kernel on the raspberry pi does the TLS 1.3 handshake, so everything crossing the chip is already encrypted. handshake with cloudflare: 83 ms.
1
3
168
my OS can talk now, but the line on its screen barely moved while it did. day 13. i had copied the audio meter from my website. my server boosts the voice for the tiny speaker, so loudness sat at 98% of the meter for the whole answer and the ball stayed one size from start to end. the fix: measure the voice against itself. loudness against its own recent peak, pitch against its own average. now the ball moves with each syllable and the wave follows the pitch, with 0 ms added to the audio. left: before. right: after. same answer, rendered on my mac by the code that runs on the board.
1
183
24 work days into writing an operating system from scratch on a raspberry pi 3B+. 7 things i didn't know on day 1: 1. one late frame can freeze everything. on one core with cooperative tasks, my screen task never gave the processor back when a frame ran over 16.7 ms. 2. writing to an SD card stops the CPU. saving memory while the device talked caused 35 audio dropouts in 18 answers. writing after it stops speaking, plus a faster screen bus: 4 in 29. 3. the wi-fi chip doesn't need to see your data. TLS 1.3 ends on the pi; the ESP32 only carries encrypted bytes. 4. realtime voice models bill the whole conversation again every turn. a 30-minute chat: $0.57 to $18. three separate parts: $0.35 to $0.90. 5. a wake word fits in 127,969 parameters. it scores every 100 ms and takes 10 to 11 ms on a 2018 chip. 6. memory can be one file. the server keeps nothing between sessions; pull the SD card and it forgets you. 7. a pretty clock that can't be read is not a clock. my first one was a ring with no digits. it has numbers now. written with help from Claude. what would you want to know about the next 24?
1
1
66
a 30-minute voice chat on a realtime speech model came out between $0.57 and $18 in my math. built from three parts: $0.35 to $0.90. day 12. i almost built my OS's voice on a realtime model. then i did the math: those models bill the whole conversation again on every turn. so it's parts: speech-to-text, a small language model (claude haiku 5.5), and the voice i made for my website in elevenlabs. first word in 0.8 to 1.0 s. any part can be swapped, and the same text becomes both the voice and the card on the screen. would you pay more for one model that does everything, or keep the parts?
59
same idea, different split. on my build the ESP32 is only the ears and the mouth: mic, speaker, wi-fi. the wake word, the screen and the OS run on a raspberry pi 3B+ from 2018, and the OS is mine, written from scratch. no linux.
you can see how cheap this is. and on top of that it's actually useful an ESP32, a tiny screen, a mic, a speaker and a bulb on a breadboard. you talk, it answers, and even follow commands how it works: 1. a small mic module listens, the ESP32 records your voice 2. the screen shows what it's doing: listening, thinking, speaking 3. the voice goes over wi-fi to an AI model, the answer comes back as speech 4. if the answer is a command, the ESP32 switches the light itself the chip is the ears, the face, the mouth and the hands. the brain is a model it calls. all of the hardware is probably under $20
1
1
76
same pattern on the pi 3B+. broadcom's manual lists DMA request lines for the UART on page 62. on page 193, the UART's own DMA register is "the disabled DMA Control Register", all three bits unsupported. I had planned the link between my two chips around that DMA.
The Raspberry Pi Pico has a 12-bit ADC. Its own datasheet says 8.7. Four of its codes are nine codes wide. The cause is one mismatched weight on a scale, and that scale is how the ADC in nearly every microcontroller works.
33
the internet reached my OS 6 times slower than the wire inside it can carry. the wire between my two chips carries 271 KB/s. the first megabyte from a server in stockholm came in at 42. the ESP32 gave each connection an 8 KiB receive window. TCP never leaves more than one window unacknowledged, and stockholm is about 100 ms away: 8 KiB every 0.1 s is 82 KB/s at best. four 64 KiB windows don't fit in the ESP32's internal RAM, but the board has 8 MB of PSRAM I hadn't touched. the windows moved there: 85 KB/s from stockholm, 248 KB/s from a server 22 ms away. stockholm is still stuck at 85 and I don't know why yet. any guesses?
50
PL011 UART on the BCM2837 (pi 3B+): the DMA chapter of broadcom's peripherals manual lists DREQ lines for the UART (p.62). but on p.193 the UART's DMACR is "the disabled DMA Control Register", and all three bits read "Unsupported, write zero". linux's bcm283x.dtsi gives uart0 no DMA channel either. so in my bare-metal OS the link to an ESP32 stays interrupt-driven: 16-byte FIFO, rx interrupt at half full. has anyone actually gotten DMA working on the PL011 on these chips?
2
913