zinnia / zinnia Zinnia OS

clone

mailing list zinnia@lists.zinnia-os.org for issues, patches and review

Recent commits on main

905d364e uapi/drm: Fix incorrect device-specific IOCTL value Marvin Friedrich
88b788ea net/igc: Use Duration instead of plain value Marvin Friedrich
9f1f966a *: Apply clippy lints Marvin Friedrich
b97041df meta: Update to latest toolchain Marvin Friedrich
c79db7cf syscall/vfs: Flush closed file after dup3 Marvin Friedrich
d9f647e7 vfs/file: Get absolute path before constructing new struct Marvin Friedrich
d98db91b device/tty: Detach from sessions Marvin Friedrich
e8b37556 syscall/system: Implement {get,set}rlimit Marvin Friedrich
a41db9a2 syscall/process: Clean up syscalls Marvin Friedrich
5be0b262 syscall/vfs: Use scoped locks Marvin Friedrich
Full log →

README.md

<img src="logo.svg" width="10%"/>

Zinnia

GitHub License GitHub Repo stars GitHub Actions Workflow Status GitHub Issues or Pull Requests Discord

Zinnia is a modular 64-bit Unix-like kernel written in Rust.

<img src="screenshot.png"/>

The kernel implements most POSIX interfaces, and some BSD/Linux extensions like epoll and timerfd. It also implements DRM and evdev drivers for rendering and input.

[!NOTE] This repository contains only the kernel and drivers. If you want to get a bootable image, you might want to check out **https://github.com/zinnia-os/bootstrap** instead.

Building

Cloning the repository

git clone https://github.com/zinnia-os/zinnia
git submodule update --init --recursive

Compiling the kernel

To compile the kernel you will need:

  • cargo
  • rustc
  • clang (Used for bindgen)
  • lld

Make sure you have a full nightly toolchain installed, including the rust-src component.

The following commmand will build the kernel and all drivers for x86_64:

cargo +nightly build --release -Zjson-target-spec --target toolchain/x86_64-kernel.json

Debugging

Follow the debugging setup from **https://github.com/zinnia-os/bootstrap**