Skip to content

Latest commit

 

History

128 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwagOS

Simple OS

Setup and run

1. toolchain setup

To compile for bare metal, you need the Rust source code and the LLVM tools for cross-compilation.

rustup component add rust-src
rustup component add llvm-tools-preview

2. Bootimage Tool

Install the bootimage tool to handle the creation of a bootable disk image from your compiled kernel.

cargo install bootimage

3. Build Process

Compile the kernel and link it with the bootloader to generate a bootable .bin image.

cargo bootimage

4. Running with QEMU

To run the OS use the following command:

qemu-system-x86_64 -drive format=raw,file=target/os/debug/bootimage-OS.bin -serial stdio -netdev user,id=net0 -device e1000,netdev=net0

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages