Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

lolainta/NYCU-OSC-2024-Spring

 
 

Repository files navigation

NYCU Operating System Capstone 2024

Dependency

  • make
  • rust
  • qemu (optional)
  • picocom (optional)
  • gcc (optional)

Develop Environment

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
rustup component add llvm-tools-preview
cargo install cargo-binutils
rustup component add llvm-tools-preview

Build & Run

  • Make bootloader, kernel image and initramfs etc.

    make
  • Run the bootloader with daemonized qemu.

    make run

    You will see a serial port, like /dev/pts/<number>

  • Attach to that serail port via picocom with baud rate set to 115200.

    picocom -b 115200 /dev/pts/<number>
  • Open another terminal and send the built kernel image to the bootloader via cat.

    cat build/kernel8.img > /dev/pts/<number>
  • Remember to stop qemu since its executing in the background.

About

Homework submission for students

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 93.1%
  • Assembly 4.4%
  • Makefile 2.5%