Skip to content

AVGP/CodebitsOS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BasicOS

Simple C kernel with a bootloader. Allows you to press keys and get them echoed back to screen.

Prerequisites

You'll need at least gcc and nasm to compile and an emulator like qemu or bochs. As a debian user, you can just run setup.sh to install all required packages:

    cd /path/to/repository
    chmod +x setup.sh
    ./setup.sh

Compiling

    cd /path/to/repository
    make

which will generate a kernel.img that contains your bootable kernel image, along with bootloader.bin that is the generic bootloader image and kernel.bin that contains the actual kernel binary.

Running

The provided bochsrc file makes Bochs the easiest way to run the kernel:

    cd /path/to/repository
    bochs

You should see something like this:

About

A simple OS kernel as a starting point and demo object for Codebits 2014

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 51.5%
  • Assembly 39.9%
  • C++ 6.2%
  • Makefile 2.0%
  • Shell 0.4%