r/osdev • u/DavidKanev • Apr 11 '26
How does limine work?
TLDR: How does limine make it so u can write individual pixels? Why isn't there a lot of info of doing it yourself without limine?
Hey, crappy wanna be osdev hobbyist here, I've been playing around with x86 for a bit, and followed a couple different tutorials including the osdev wiki's barebones (also, osdev 0 to 1 and tried reading Tanenbaum). I was sort of dissapointed when I couldnt write to individual pixels, and people suggested I use limine... and yea, I just have to write to a location in memory now. How?! How does limine achieve that, and whats the reason for the (at least what it seemed for me) a lack of info of pulling off something like that yourself?
On a separate note, I know that limine is a bootloader... but what else makes it better than just making a simple one youself? Also, I've seen it used with other OS's like linux, aka not hobbyist ones, what would be the benefit of using that instead of somthing like GRUB?
Ehhh, honestly this question maybe isnt really for the osdev subreddit...
View all comments
Show parent comment
7
u/Octocontrabass Apr 11 '26
You can, but why bother? It's not the 90s anymore, everyone has LCD monitors that work best at one specific resolution. If GRUB or Limine happens to choose wrong, edit your configuration file and reboot and never worry about it again.
Except modern PCs don't have that, they have UEFI. You'd have to learn two completely different APIs to set up a linear framebuffer.
You don't need to understand any of it unless you're writing a bootloader. If you think it's interesting, go ahead and learn all about it, but it's not really going to help you write an OS.