-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
thread 'main' panicked at 'no entry found for key', src\tools\cargo\src/cargo\core\compiler\unit_dependencies.rs #329
Comments
Could you clarify what you're trying to do and how this is related to the |
I am now migrating from bootloader v0.9.X to bootloader v0.11. I follow the guide and use the build script to build kernel.But ran into the problem I mentioned above. In the root package, I created a [unstable]
bindeps = true
build-std-features = ["compiler-builtins-mem"]
build-std = ["core", "compiler_builtins", "alloc"]
[build]
target = "x86_64-simple_os.json" In the root package, the [package]
name = "simple_os"
version = "0.1.0"
edition = "2021"
[build-dependencies]
bootloader = "0.11"
kernel = { path = "kernel", artifact = "bin", target = "x86_64-unknown-none"}
[workspace]
members = ["kernel"] In the kernel package, I created a [unstable]
build-std-features = ["compiler-builtins-mem"]
build-std = ["core", "compiler_builtins", "alloc"]
[build]
target = "x86_64-simple_os.json" The problem is that when I execute command By the way, I've tried leaving only |
Thanks for the information! You don't need the custom target file and build-std config keep keys anymore.
That's the right approach. To fix that error, run |
Try removing the build.target key from your Cargo.toml. And make sure that your kernel is declared as no_std. |
What does your |
I know that. But there is still an option to create a BIOS with a bootloader in the build.rs. This issue is present in the BIOS image I built |
We also set up a framebuffer for BIOS booting so that you don't need to special-case your output code depending on the boot mode. (The screenshot you posted above just shows the output from the bootloader, no kernel output yet.) |
My output is based on framebuffer and doesn't change anything else. Completely consistent code applied to UEFI booting is correct, while BIOS booting is wrong |
As you submitted the issue earlier,I don't know how to solve this problem.
The text was updated successfully, but these errors were encountered: