░▒▓████████▓▒░ ░▒▓████████▓▒░ ░▒▓███████▓▒░ ░▒▓██████▓▒░ ░▒▓███████▓▒░
░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
░▒▓██▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
░▒▓██▓▒░ ░▒▓██████▓▒░ ░▒▓███████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓██████▓▒░
░▒▓██▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
░▒▓████████▓▒░ ░▒▓████████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓██████▓▒░ ░▒▓███████▓▒░
To set up the environment run the following commands:
chmod +x ./install-deps.sh
./install-deps.sh
The runner is set up to compile, build and run the OS
To build run the following commands:
cargo bootimage
and then,
qemu-system-x86_64 -drive format=raw,file=target/x86_64-unknown-none/debug/bootimage-zer_os.bin
To build and run:
cargo run
-
Add the following lines to your ./Cargo.toml
[lib] path = "src/main.rs" crate-type = ["staticlib"]
-
Generate ISO using the following command
cargo make generate_iso
-
Run:
cargo make run
For debugging you could run
cargo make dbg
and then in another terminal (make sure lldb is installed)
lldb
gdb-remote 1234