Skip to content

try-fun/blog_os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

参考文档:

https://os.phil-opp.com/minimal-rust-kernel/

记录

bootimage工具开始使用cargo xbuild编译内核

cargo bootimage 编译

bootimage工具执行了三个步骤:
    编译我们的内核为一个ELF(Executable and Linkable Format)文件;
    编译引导程序为独立的可执行文件;
    将内核ELF文件按字节拼接(append by bytes)到引导程序的末端。

qemu:

qemu-system-x86_64 -drive format=raw,file=target/x86_64-blog_os/debug/bootimage-blog_os.bin

About

Writing an OS in Rust Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published