A Minimal Rust Kernel (ru) #1044
Replies: 23 comments 25 replies
-
Hey! Incredible tutorial! Also, for anyone else following along, I tried to fix a weird bootimage error with the bootloader 0.10.X crate, and it turns out that the bootimage crate isn't used in 0.10.X, so use the bootloader 0.9.8 version instead until they talk about upgrading :) |
Beta Was this translation helpful? Give feedback.
-
I just rewrote the #[no_mangle]
pub extern "C" fn _start() -> ! {
let vga_buffer = 0xb8000 as *mut u8;
"Hello, world!"
.as_bytes()
.iter()
.flat_map(|bt| [*bt, 0xf as u8])
.enumerate()
.for_each(|(i, byte)| unsafe {
*vga_buffer.offset(i as isize) = byte;
});
loop {}
} |
Beta Was this translation helpful? Give feedback.
-
Seriously bro, I love your tutorials and I am learning a lot from them, keep it up because you are the best. You deserve to have much more recognition within the tutorials to learn how to develop operating systems. 👍 |
Beta Was this translation helpful? Give feedback.
-
I can't seem to get the binary to run in QEMU, ending up with just a blank screen. It appear that the BIOS loading bit flashes up briefly, but too quickly to see. I thought maybe a typo could be causing the problem, but even checking out post-02 from the blog_os repo results in the same outcome. Do you have any ideas of where to start troubleshooting? |
Beta Was this translation helpful? Give feedback.
-
That seems to have been the problem; thanks!
…On Wed, Sep 29, 2021 at 7:41 AM bjorn3 ***@***.***> wrote:
Are you using QEMU 6.0.0? If so try updating to 6.1.0 (or later): #1052
<#1052>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1044 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMBUZ44VHG2L5KH6GJV6IDUEL3OZANCNFSM5CRYPTXQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
having issues after setting up the QEMU runner. This is my config.toml
and I'm getting this error
Seems to be a relative path error? |
Beta Was this translation helpful? Give feedback.
-
Nice it works. Thanks. |
Beta Was this translation helpful? Give feedback.
-
op. You should sell a hard-copy of this book. |
Beta Was this translation helpful? Give feedback.
-
On the latest nightly rustc, bootloader 0.9.19 should be used, as 0.9.18 uses some removed features |
Beta Was this translation helpful? Give feedback.
-
awesome stuff. thank you, it was all very clear and concise. and worked on the first try! :) |
Beta Was this translation helpful? Give feedback.
-
whenever I run the qemu command "qemu-system-x86_64 -drive format=raw,file=target/x86_64-blog_os/debug/bootimage-blog_os.bin" it gives me in the qemu some weird text |
Beta Was this translation helpful? Give feedback.
-
All clean and concise, carefully explained and documented. Thank you so much. |
Beta Was this translation helpful? Give feedback.
-
Really need some help to follow this amazing series. qemu command gives me this error message:
I'm sure my PC is x86_64, and it's the same result when run qemu on github's post-03 branch. I assume it has something to do with the x86_64-linux-gnu and x86_64-unknown-none triples. |
Beta Was this translation helpful? Give feedback.
-
This is so beautifully written and easy to follow. I’m new to rust, and I’m new to even thinking about OS development so please bear with me if this is a daft question: what sort of hardware would be suitable for this sort of project? I’m guessing something like a RPi would work, but could I go smaller and develop an OS like this on ARM based microcontroller development boards? Any guidance welcome! |
Beta Was this translation helpful? Give feedback.
-
I think I followed this guide to the letter but I get this error when doing
(All 42 errors are the same Any ideas as to what is going wrong here? |
Beta Was this translation helpful? Give feedback.
-
[dependencies] When I run "cargo build'. I got blew error Error: An error occured while trying to build the bootloader: The (If you're using the official bootloader crate, you need at least version 0.5.1) Caused by:
|
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks in advance, |
Beta Was this translation helpful? Give feedback.
-
Hi |
Beta Was this translation helpful? Give feedback.
-
Awesome tutorial man, thank you! |
Beta Was this translation helpful? Give feedback.
-
First of all great tutorial!
I'm getting this error when I try to run cargo r. I'm able to run it normally when I type in the full path to the binary (Installed Qemu using brew so it's in my path). |
Beta Was this translation helpful? Give feedback.
-
Thank you for your wonderful post!
it would try to find the default target
|
Beta Was this translation helpful? Give feedback.
-
Well done! |
Beta Was this translation helpful? Give feedback.
-
HI! After running qemu it outputs to the console: |
Beta Was this translation helpful? Give feedback.
-
A Minimal Rust Kernel (ru)
В этом посте мы создадим минимальное 64-битное ядро на Rust для архитектуры x86_64. Мы будем отталкиваться от независимого бинарного файла из предыдущ…
https://os.phil-opp.com/ru/minimal-rust-kernel/
Beta Was this translation helpful? Give feedback.
All reactions