-
Notifications
You must be signed in to change notification settings - Fork 7
Journal
Mac build is broken ... there is some linkage issue that I am not able to figure out. It looks like a bug in the rust compiler. For now I will continue the work on Linux.
After taking the init code from the xv6 project things are more stable.
It is clear that I need to checkout RUST on a daily basis and build since breaking changes get introduced frequently. Hopefully, this will stop after 1.0
Things look good as of now. Need to make steady progress with translating xv6.
Ran into an issue with Rust - discussing the same here https://github.com/rust-lang/rust/issues/20016
What happened so far ....
- Got a handle to using multiple rust files.
- Got the UART initialization done - required inline assembly - which seems straight forward.
Plan as it seems now
- Figure out a way to build the kernel on mac and possibly windows. This will make it easy for others to help
- The only requirement seems that I need binutils for ld and ofcourse grub-mkrescue. Building grub is turing out to be difficult. So, I need to explore the possibility of booting the kernel using qemu directly - need to convert the kernel to bzImage for that.
At this point, I have a minimal boot working. All the work is done by GRUB. The idea is to translate xv6 to rust.
Plan as it seems to be today.
- Figure out how I can use assembly in rust
- Start translating code from xv6 64