by vkoskiv · 8mo ago · 0 comments
It's been a ton of fun to work on. Every subsystem is still flaky so I run into the wackiest bugs imaginable. I'm really grateful for the resources[1] and incredible tooling[2] that enable me to work out my frequent mistakes. I can hardly fathom how Torvalds did this with just his PC running Minix!
No idea how long I'll keep working on it. I think I'd be pretty happy if I got a real-world, non-trivial program running on top of it, but in the meantime it is serving as a good distraction from life worries at least :]
[1]: Intel 80386 Reference Manual, Linux man pages, wiki.osdev.org, various datasheets and the occasional query to ChatGPT free tier.
[2]: QEMU+gdb, Bochs, GCC 9 & binutils
Since we're both working on a similar project, I think it could be fun to talk about OS development and share our findings (and weird bugs!) I have this same username just about everywhere, so do reach out if you're interested! Best of luck with your project either way :]
I probably could have saved myself 2+ hours of debugging if I had simply stopped working off of assumptions that my driver code was wrong (it was, but that just took reading the spec and checking out some drivers for reference) and doing a root cause analysis with `objdump` or through QEMU. Still surprised how far you can go with vanilla debugging prints - when I started this project, I was sure that I'd become fluent in gdb as a byproduct, but I stopped using it once it would break when the stack became corrupted and haven't tried it since.
Discussion is the reason I made the jump from lurking to having an account on HN. Happy to talk - reached out to you on twitter. And good luck to you as well :^)