Open largenumberhere opened 4 days ago
Try putting bootloader
in the normal dependencies
section, not dev-dependencies
. You'll also need to downgrade its version to 0.10 (0.11 doesn't work with bootimage).
Try putting
bootloader
in the normaldependencies
section, notdev-dependencies
. You'll also need to downgrade its version to 0.10 (0.11 doesn't work with bootimage).
Thanks for the suggestion, I gave that a go but the error still persists
My bad, you actually need to downgrade bootloader to 0.9.
My bad, you actually need to downgrade bootloader to 0.9. Okay, so 0.9 does build the kernel but now I get a panic at runtime in qemu. (Typed out from the window)
panicked at src\page_table.rs:105:25 failed to map segment starting at Page[4KiB](0x1000): failed to map page Page[4KiB](0x1000) to frame PhysFrame[4KiB](0x400000): PageAlreadyMapped(PhysFrame[4KiB](0x400000))
Don't use x86_64-unknown-none
, use your own target. It might also be possible to set -C relocation-model=static
in RUSTFLAGS instead.
Don't use
x86_64-unknown-none
, use your own target. It might also be possible to set-C relocation-model=static
in RUSTFLAGS instead.
Using a custom target seems to have fixed the issue. Thank you. If possible, I think some assertions should be added to give nicer warnings or errors for these edge cases
Here's the error
Here's my Cargo.toml
main.rs:
I've tried downgrading bootloader to various versions, I've tried changing the tag in various ways, I've tried instead
Nothing has worked, I don't understand what the error message is telling me to do. I'm trying to follow the "Writing an OS in rust" tutorial. It has worked for me without issue in the past, I have no idea why things are breaking in bizarre ways this time.
Please let me know how to proceed, thanks.