4 ms·
seesh ! what would `from scratch` mean for you ? invent the whole universe ?
by signa11 1y ago
seesh ! what would `from scratch` mean for you ? invent the whole universe ?
- userbinator 1y agoI was expecting something closer to direct framebuffer writes, as is often done in the various write-an-OS articles that get posted here semi-regularly.
- signa11 1y agoi on the other hand, just loved the article. was a bit confused about the segfault stuff mentioned towards the beginning of the article. but got quite quickly disabused of that notion with gdb etc.
- chickenzzzzu 1y agoKMSDRM is soooo much more fun than X. Truly the way programs were meant to be.
- sim7c00 1y agoand then once it works u can slap it to ur own OS and avoid the rest of linux too! yay! :')
- chickenzzzzu 1y agothat is correct, id rather attempt to understand the hdmi protocol before i understand 50 million lines of linux ^.^
- sim7c00 1y agono u just grab the framebuffer addr somewhere (lot of places u can dig that up) and ram in the right type of pixels. :'). this article demoes exactly 0 GUI functionality...
- theamk 1y agoTalk to hardware directly Most "from scratch" would be some sort of microcontroller - write directly to hardware, program registers directly. It's the best feeling when you know every single instructions on the CPU is under your control, there is no 20 million lines of kernel code that do something. But the MCU needs special hardware (MCU itself, display, programmer) so it is not a good starting project. This brings us to good old MS-DOS. Sure, you need to call BIOS to set up graphics (mode 13h, "320x200x256 colors" is the best for beginners), but after that, you are talking directly to hardware.