Skip to content

yooml/blog_os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blog_os

这是一个用rust写的个人os,学习自 https://os.phil-opp.com/

如何构建:

1.先要安装rust最新的nightly版本和qemu

rustup default nightly
rustup toolchain list

2.然后安装xbuild用于交叉编译:

cargo install cargo-xbuild

#其他依赖:
cargo install bootimage --version "^0.7.7"
rustup component add llvm-tools-preview
rustup component add rust-src

3.构建:

cargo xrun
#or
cargo xbuild
qemu-system-x86_64 -drive format=raw,file=target/x86_64-blog_os/debug/bootimage-blog_os.bin

4.测试:

cargo xtest
cargo xtest --lib
cargo xtest --test should_panic

About

a small os written in rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages