Writing an OS in Rust - Part 2 - A Minimal Rust Kernel

preview_player
Показать описание
This is my version of Philipp Oppermann's "BlogOS". It's a baremetal operating system that can boot off of a USB stick on any BIOS-compatible machine, which is pretty amazing. I'm going to be following the whole blog, one video at a time, and running the OS using QEMU instead of booting a physical machine. Just to keep things simple.

In this video we figure out how to build an image that the boot loader can actually load, and write some text (you'll never guess what) to the video buffer, which ends up displaying on screen.

#rust #rustos #blogos #rustlang
Рекомендации по теме
Комментарии
Автор

I was confused but it's that specific version of the bootloader I need, this video is really helpful.

thetruekingofwaffles
Автор

Instead of creating the rust-toolchain file, you can also use `rustup override set nightly`, which is explained in the "Installing Rust Nightly" section that you only skimmed.

Yotanido
Автор

Wwow what a concept for a video. I learned so much from this. You rock!

guinetik
Автор

the underscore is for a crate name, the hyphen is a feature name. I believe both "standards" are loose, now, but used to matter.

tsalVlog
Автор

Awesome tutorial! very helpful, keep it up

stevenmj
Автор

Using the nightly toolchain is a separately documented process in the Rust docs -- the blog was assuming familiarity with that I think. The system you're using to build (your mac) needed the nightly version for the feature you were trying to use. The only reason I knew is because I've used nightly features to optimize compile times for frequently compiled larger projects. I guess what I'm trying to say is that it's understandable that the blog would have left out how to set up nightly, I'm sure you would have appreciated them including a link to the rust docs tho.

LongestYardstick
Автор

Lol as soon as I saw that vga tileset making a rogue like os is the first thing I thought of as well

anarchoyeasty
Автор

Have you ever considered contributing to Redox OS? The project could really use some good Rust devs.

liquidmobius
Автор

To retrieve your mouse press: ctrl + option + G

_rtdp_
Автор

Wonder if anyone has run into the situation where all the compile and build works but qemu displays a black screen instead of showing the "hello world"?

chilling
Автор

Qemu captures mouse by default, it said in the title bar "press ctrl-alt-g to release"
Also, could you maybe make the text a little bigger for mobile users in future? Thanks :)

AbelShields
Автор

Maybe i have a stupid question but what is better to use git add . or each file separately? Sorry for my bad English

Emarce
Автор

Hello, Sorry i'm several months late but i only found about this "BlogOS" thing quite recently but i have an issue with this part of creating the os, For some reason when i do "cargo install bootimage", It works for the first bit but once it gets to installing "serde", It just starts spitting out so many errors that i cant even scroll up to the actual command and the whole thing takes about 2 minutes to just load and even after that it wont install because of the errors. It's ok if you cant help, I just saw yours working perfectly fine.

Edit: Nevermind, i snooped through the github page of blogos and found out an closed issue exactly describing my issue, Turns out deleting config.toml weirdly fixes the issue and after that you can bring back config.toml and continue.

usernamesareuseless
Автор

How do we have it to work on UEFI systems !?

rituparnaw