Coder Social home page Coder Social logo

littlecodingfox / toastos Goto Github PK

View Code? Open in Web Editor NEW
24.0 4.0 2.0 4.62 MB

A x86_64 hobby OS

License: Other

Makefile 2.21% C 54.00% Shell 0.50% Assembly 0.48% C++ 42.55% Python 0.25% CMake 0.01%
c cpp hobby-os hobby-osdev osdev x64 x86 c-plus-plus cplusplus kernel

toastos's Introduction

ToastOS

x86_64 OS created from scratch (very incomplete)

Screenshots

Basic system usage

Running some apps

Doom!

Features

  • Scheduling
  • Usermode
  • tarfs ramdisk
  • SMP (multiple cores)
  • Hosted toolchain
  • mlibc-based usermode libc
  • PS/2 keyboard and mouse
  • Input API
  • Graphics API (basic)
  • Mesa port (OpenGL ES1/2/3)
  • Coreutils (ls, cat, etc)
  • Can run Doom
  • Runs on real hardware (somewhat)

Requirements

Linux

Debian

sudo apt install build-essential gcc gettext make perl libssl-dev ninja-build clang flex bison libgmp3-dev libmpc-dev libmpfr-dev texinfo python3-pip qemu-system-x86 help2man autopoint gperf nasm llvm mercurial groff && pip3 install xbstrap && pip3 install mako && pip3 install meson

Fedora

sudo dnf install g++ binutils patch gcc gettext make perl openssl-devel ninja-build clang flex bison gmp-devel libmpc-devel mpfr-devel texinfo python3-pip qemu-system-x86 help2man gperf nasm llvm mercurial groff gettext-devel && pip3 install xbstrap && pip3 install mako && pip3 install meson

Arch

sudo pacman -S gcc gettext make perl openssl ninja clang flex bison gmp mpc mpfr texinfo python-pip qemu-system-x86 help2man gperf nasm llvm mercurial groff python-mako meson python-pipx && pipx install xbstrap

Building the toolchain

Run make bootstrap and wait, it will build the hosted toolchain, ported software, and mlibc.

Building the OS

Typically you'll want to either run make clean run-linux or make clean debug-linux. You can optionally add KVM=1 at the end for faster emulation if your system supports KVM, and SMP=X where X is the amount of virtual CPUs you want it to use.

toastos's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.