Skip to content

KercyDing/krcyos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌱 KrcyOS

A toy RISC-V kernel built with Zig for OS exploration.

Github: URL

 

Motivation

Just for fun.

Prerequisites

  • Zig (pinned to 0.16.0)
  • QEMU (>=11.0.0, if you don't have a real board)
  • Only (task runner if you like)

Skill issue? Click here.

Getting Started

Clone the toy

git clone https://code.kercy666.com/Kercy/krcyos.git
# if you prefer github:
# git clone https://github.com/KercyDing/krcyos.git
cd krcyos
# ...

Simply run it

zig build run
# or:
# only run qemu

If you have a real board:

zig build run -Dboard=real_board
# or:
# only run real

Then flash to your board.

Press Ctrl+A + X to exit qemu.

What's more

Try another log level:

zig build run -Dlog=debug
# or:
# only run qemu debug

Run unit tests:

zig build test
# or:
# only test

That's it.

Why not C/Rust?

No reason. Zig worth.

About

A toy RISC-V kernel built with Zig for OS exploration. (mirror site)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors