3 ms·
Writing an OS in Rust: Kernel Heap
- danjoc 11y agoHi phil-opp, I'm following your blog. I'm wondering if you might have any tips for a ARM port. Thank you for sharing your work with us!
- k__ 11y agoI thought the same. I also looked into stuff like bare metal raspberry pi with rust.. But then I realized, that I take very much for granted. Even if I would get a kernel running, I wouldn't have any driver support.
- sohkamyung 11y agoRunning a Rust-based OS on the Raspberry Pi is probably a no-go at the moment; too much proprietary code at the bootloader and hardware level. You might get more luck with other ARM boards that is open down to the bare-metal. Sorry, but I am unable to recommended any boards, but a search for open ARM boards might give you some pointers.
- k__ 11y agoBanana Pi? Galileo?
- phil-opp 11y agoI don't have much experience with ARM… I'm trying my hands on a stm32 board at the moment and things are very different from x86 so far. If someone has ideas or suggestions, I would appreciate a comment at [1]. [1]: https://github.com/phil-opp/blog_os/issues/142 https://github.com/phil-opp/blog_os/issues/142
- pcwalton 11y agoI really love this series. I particularly appreciate the emphasis on developing safe abstractions: it's what makes it developing an OS in Rust (following the Rust philosophy) as opposed to just developing an OS (which happens to be written in Rust).
- vvanders 11y agoYup, really like the whole approach Rust takes to things. Also as an aside, the more I work with Rust's iterators the more I really like them. Being able to specify move semantics by replacing iter() with into_iter() is just sublime. As I spend time in C++'s <algorithm> the more I wish for Rust to take over the world.
- cyphar 11y agoI wonder if you can do the same dodgy stuff Linux does to load kernel modules? Would there be a non-unsafe way of going about that?