Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


Please 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.


I 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.


Ah, that would explain it -- I'm trying it with 0.6. Building master now, have a feeling that it'll be a while though.


Beware, "the latest" usually means incoming, not master. That said, I'm not sure which is actually meant above.


I had the same problem (I'm on ArchLinux). I fixed it as follows: 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.


It might be something to do with me not enabling the A20 line, I'm not sure if QEMU starts with it disabled or not.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: