-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't compile the bootloader #441
Comments
Try removing the |
Yes, but here it says that a target is needed to recompile
If I don't recompile
|
Try passing Depending on your use case, you might be able to use |
I want to build an image to run something that I shamelessly copy-pasted on real hardware. Also, if I add
|
found this: rust-lang/cargo#10444 still open, is there maybe a workaround for this issue? |
Yup, I was about to say that as well.
No, there isn't, but you don't need this. You seem to have mixed the files meant to be used with older versions of the bootloader with files meant for the current version. Try the following steps:
[unstable]
# enable the unstable artifact-dependencies feature, see
# https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#artifact-dependencies
bindeps = true
|
I followed your steps, and got the following error:
So I added
So I added [build]
target = "x86_64-unknown-none" to
A little confused here... |
Please undo
this
and this.
What command are you using to build/run the kernel? |
|
Is that the whole command or are you adding additional arguments (e.g. |
Yep, that's the whole command, though I have tried |
That's odd. Could you repeat the content of your files? |
[package]
name = "lowos-wrapper"
version = "0.1.0"
[build-dependencies]
bootloader = "0.11"
lowos = { path = "lowos", artifact = "bin", target = "x86_64-unknown-none" }
[dependencies]
ovmf-prebuilt = "0.1.0-alpha.1"
[workspace]
members = ["lowos"]
[package]
name = "lowos"
version = "0.1.0"
edition = "2018"
[dependencies]
#bootloader = "0.9"
volatile = "0.2.6"
spin = "0.5.2"
x86_64 = "0.14.2"
pic8259 = "0.10.1"
pc-keyboard = "0.5.0"
[dependencies.lazy_static]
version = "1.0"
features = ["spin_no_std"] (commented the [unstable]
# enable the unstable artifact-dependencies feature, see
# https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#artifact-dependencies
bindeps = true
|
Have you installed the |
Yes, I have installed the target:
|
I'm very confused as to why cargo would want to build |
|
also, it probably builds |
Ah, that's why I was asking you about the command you were using to build the project. Please use just |
Hm, that outputs
though when I use
|
That's progress though. Try adding
Nope, that's making things worse again. |
That did work, though now a build script is causing issues:
|
oh, could it be an issue with |
Yes, I forgot to replace |
That's exactly what you need to do :) Here's the relevant section. You'll also need to add the |
It seems to be working! As far as I could tell, I need to re-implement printing to the screen, but for now I think I can close the issue. Thank you so much! |
Hi!
The error is:
The kernel is pretty much
blog_os
which you are probably already familiar with./Cargo.toml
:/.cargo/config.toml
/lowos/.cargo/config.toml
Other files are just like in the template.
System: Ubuntu 23.10
The text was updated successfully, but these errors were encountered: