3 ms·
I saw zero.rs and said, "Hey, I know! I'm going to make a kernel!" Then after showering... came back and saw this. Well, in any case, great work! (Perhaps I'll
by jmgrosen 13y ago
I saw zero.rs and said, "Hey, I know! I'm going to make a kernel!" Then after showering... came back and saw this.
Well, in any case, great work! (Perhaps I'll use yours as a starting point.)
EDIT: One question. When I try to compile it, rustc gives me these errors:
error: no item found for `modulo`
error: no item found for `durable`
error: aborting due to 2 previous errors
If I had to guess, it would be due to the fact that I'm trying to compile it on OS X but have i386-intel-linux set as the target, but your screenshot shows (at least it being emulated) on OS X. Did you have to build a special cross compiler version of rustc?
- FrozenCow 13y agoI had the same problem (I'm on ArchLinux). I fixed it as follows: https://github.com/FrozenCow/rustboot/commit/ec46219d50f44031a29e366f365a3b81e6a50533 https://github.com/FrozenCow/rustboot/commit/ec46219d50f4403... No idea whether this is actually correct, but it does run in qemu. It doesn't however boot on my laptop from a USB drive though... not sure how actual hardware is different from qemu.
- charliesome 13y agoIt might be something to do with me not enabling the A20 line, I'm not sure if QEMU starts with it disabled or not.
- charliesome 13y agoI use ELF as the object file format, but all the development was done on OS X. Maybe try updating your version of Rust. I had trouble using zero.rs on 0.6, but the latest from Git works well.
- jmgrosen 13y agoAh, that would explain it -- I'm trying it with 0.6. Building master now, have a feeling that it'll be a while though.
- steveklabnik 13y agoBeware, "the latest" usually means incoming, not master. That said, I'm not sure which is actually meant above.
- bjz_ 13y agoPlease don't let this stop you writing a kernel, I'm sure we'd all love to see what you do! Make sure you're using git/incoming, that's the latest and most stable version usually.
- deleted 13y ago[deleted]