Closed ShaKabosh closed 1 year ago
You're not building with the right toolchain. You need to build using the custom one provided by the blog. Or if you've modified it enough you can use x86_64-unknown-none (I think that's what it is).
The toolchain is the exact same as the one from Post 2. I have renamed the toolchain config, as allowed by the tutorial. The .cargo/config.toml
has, as shown, been updated to reflect the different filename.
You need to set the runner in .cargo/config.toml
as indicated by https://os.phil-opp.com/minimal-rust-kernel/#using-cargo-run
That's an embarrassing mistake. I've updated it, tested it, and it works! Thanks for your help :)
When executing
cargo run
, I get the following output:This is my Cargo.toml:
Here is my
x86_64-kernel.json
:Here is my
.cargo/config.toml
:I do have the
bootimage
crate installed. How can I fix this? Any help would be much appreciated :)