Giter Site home page Giter Site logo

suckless-os's Introduction

Suckless Operating System

This is an attempt to make a simplistic yet working operating system. Our main focus will be on creating an elegant and solid design, even if we end up sacrificing performance in terms of speed and space.

Our kernel is going to be a micro-kernel. Our primary target is x86-64, although it would be interesting to explore other architectures as well.

We use the BOOTBOOT bootloader, a multi-platform bootloader designed mainly for micro-kernels. We are interested in its ability to directly setup a x86-64 long mode environment, with color mode enabled. You can find more information at https://gitlab.com/bztsrc/bootboot.

Kernel features

Here is a list of the kernel features that we plan to implement over time:

  • Logging mechanism
  • Physical memory manager
  • Virtual memory manager
  • Interprocess communication mechanism
  • Process scheduler

After implementing the above, we will turn our attention to the kernel's ecosystem: the necessary drivers to support basic user interaction.

How to build

Building a bootable image of the kernel is a three step process:

  1. Build the Rust kernel and produce a freestanding ELF archive.
  2. Put the ELF archive in an initrd directory.
  3. Pack initrd into a bootable .img file, by using BOOTBOOT tools.

The above can be accomplished by running

$ make kernel
$ make initrd
$ make disk

Note that each make rule depends on the previous one(s), so running the last command is equivalent to running all of them. In addition, if you don't have BOOTBOOT, the above commands will clone the project from GitLab and build it. For more information on the build process, take a look at the Makefile in the project's root directory.

How to run

To run the project, execute:

$ make run-x86

The above command will start a QEMU virtual machine running our kernel.

You can also specify the number of cores of the virtual machine. For example:

$ make ncores=4 run-x86

Do not expect to see anything printed on screen. The kernel only outputs information to the serial port.

suckless-os's People

Stargazers

 avatar

Watchers

James Cloos avatar Michalis Mengisoglou avatar Aidan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.