Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.01 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.01 KB

x86 Kernel

This is a 16-bit real mode kernel for x86-compatible PCs, written entirely in assembly language, which can boot from a floppy disk, hard disk, USB, or CD.

Requirements

Please install the packages below, or type:

sudo apt-get install gdb nasm qemu dosfstools mtools

This project uses an optional i686-elf cross-compiler, you can click here for more information on compiling it yourself, or use some precompiled binaries here.

Building

To checkout the source and build:

git clone https://github.com/Joshua-Riek/x86-kernel
cd x86-kernel
make

Virtual Machine

To run the bootloader in a virtual machine:

make run

Virtual Machine Debugging

Start a virtual machine with a GDB stub:

make debug

Open another ternimal and connect to the virtual machine's GDB stub:

make gdb

For debug symbols to be generated, you must compile with an i686-elf cross-compiller.