Giter VIP home page Giter VIP logo

baremetal-kernel's Introduction

BareMetal-kernel

Official repo of the BareMetal exokernel. It's written from scratch in Assembly, designed for x86-64 hardware, with no dependencies except for the virtual/physical hardware. A 64-bit ARMv8 version is also planned.

What is this?

BareMetal is a very lean kernel. The name is a play on the phrase "bare metal" which means to run directly on physical or virtualized hardware. BareMetal also only offers the "bare essentials" required for a working operating system.

BareMetal provides basic support for symetric multiprocessing, network, and disk access via a low-level abstraction layer.

BareMetal Model

Key features

  • 64-bit: Make use of the extra-wide and additional registers available in 64-bit mode.
  • Mono-processing, multi-core: The system is able to execute a single "program" but can spread the work load amongst available CPU cores.
  • Extremely tiny memory footprint: A minimal bootable image, including bootloader and operating system components, is currently 16K.
  • Standard C library using newlib from Red Hat
  • Real hardware and VirtualBox support with full virtualization, using x86 hardware virtualization whenever available (it is on most modern x86-64 CPU's). In principle BareMetal should run on any x86-64 hardware platform, even on a physical x86-64 computer, given appropriate drivers. Officially, we develop on QEMU and VirtualBox, which means that you can run BareMetal on both Linux, Microsoft Windows, and Apple OS X.

Try it out!

Prerequisites for building BareMetal

  • NASM (The Netwide Assembler) - At least version 2.07
  • That's it!

Building BareMetal

Execute the build script:

./build_x86-64.sh

Running BareMetal

The easiest way to get started is with QEMU:

qemu-system-x86_64 -machine q35 -cpu core2duo -smp 2 -m 1024 -kernel ./boot.bin -s

// EOF

baremetal-kernel's People

Contributors

ianseyler avatar ohnx avatar

Watchers

James Cloos avatar  avatar

Forkers

dhaval-thummar

baremetal-kernel's Issues

unofficial roadmap?

  • Complete IPv4-stack, ARP, UDP, TCP, ICMP and DHCP
  • C and Newlib
  • Port libDraw to assembly, then integrate into kernel
  • nVidia or AMD drivers
  • ext4 or fat32 fs instead of bmfs
  • Modular OS - allow selection of different modules (ie, graphics, network, fs)

graphics

big portions

  • Port libDraw to assembly, then integrate into kernel
  • nVidia or AMD drivers

libDraw -> assembly

  • optimize algorithms
  • fix terrible malloc thing
  • add filled polygon drawing
  • port int init_libDraw(); to assembly
  • port void clear_screen(); to assembly
  • port void clear_buffer(); to assembly
  • port void flush_buffer(); to assembly
  • port void put_pixel(unsigned int x, unsigned int y, color c); to assembly
  • port color get_pixel(unsigned int x, unsigned int y); to assembly
  • port void draw_line(point s, point e, color c); to assembly
  • port void draw_frect(point p, unsigned int l, unsigned int w, color c); to assembly
  • port void draw_fcircle(point center, int radius, color c); to assembly
  • port void draw_polygon(color c, int points, ...); to assembly
  • port draw filled polygon to assembly
  • port void draw_schar(char to, point where, color c); to assembly
  • port void draw_char(char to, point where, int size, color c); to assembly
  • port void draw_text(char* text, int length, point start, int size, color c); to assembly

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.