Giter VIP home page Giter VIP logo

litchi's Introduction

Notes

Please check litchi-rs, the continuation of this project in ~100% Rust!

Litchi Build

Bugen's toy kernel for x86 systems implemented in modern C++.

litchi

Get Started

Install Toolchains

Litchi is compiled to i386-elf target, which may require a cross-compiler. For macOS user, some Homebrew formulae and bottles are provided (see BugenZhao/homebrew-litchi).

Make sure you have Homebrew installed, then simply run:

$ brew tap bugenzhao/litchi
$ brew install i386-litchi-elf-binutils \
               i386-litchi-elf-gcc      \
               i386-litchi-elf-gdb      \
               litchi-qemu

Build & Run

Litchi is built by CMake, which is fairly easy to build and run:

$ git clone https://github.com/BugenZhao/Litchi.git && cd Litchi
$ mkdir build && cd build && cmake .. && make qemu

Progress

  • Adopt bootloader from JOS / xv6
  • Bootloader support for floppy drive
  • Port old Litchi codes
  • CMake build support
  • Kernel level standard output
  • Color output in console
  • Serial port color output
  • Serial port input
  • Kernel panic and warning
  • Programmed keyboard input support
  • Kernel level standard input
  • Input with format
    • stringToLong
    • scanFmt
  • Basic debugging information
  • Basic kernel commands
    • help
    • echo
    • vm-*
      • map
      • dump
    • ...
  • Physical memory detection
  • Physical memory management
  • Virtual memory
  • Kernel address space
  • Kernel heap management
  • User level task
  • Interrupt / Rrap
  • System call

  • Test for standard library
  • Interrupt based keyboard input
  • Shell
  • Multitasking
  • Multi-core support
  • Port to x86-64
  • ...

Reference

  1. JOS / xv6
  2. Stack Overflow
  3. Hurlex
  4. Orange'S: 一个操作系统的实现
  5. OSDev.org

litchi's People

Contributors

bugenzhao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jacktan25

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.