plutolove / RustOS-riscv64

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUILD CONFIG

# .cargo/config
[build]
target = "riscv64gc-unknown-none-elf"

[target.riscv64gc-unknown-none-elf]
rustflags = [
    "-Clink-arg=-Tsrc/linker.ld", "-Cforce-frame-pointers=yes"
]

cargo build
rust-objcopy --binary-architecture=riscv64 target/riscv64gc-unknown-none-elf/debug/os --strip-all -O binary target/riscv64gc-unknown-none-elf/debug/os.bin

qemu-system-riscv64 -machine virt -nographic -bios ./bootloader/rustsbi-qemu.bin -device loader,file=target/riscv64gc-unknown-none-elf/debug/os.bin,addr=0x80200000

About


Languages

Language:Rust 97.0%Language:Assembly 1.4%Language:Makefile 0.9%Language:Shell 0.7%