A simple BIOS second stage bootloader to load the kernel. This repository includes a Master Boot Record sector code to load the second stage bootloader. the second stage bootloader will load the kernel.
To build a raw hard disk image:
./image.sh
To run qemu emulator:
qemu-system-i386 -hda boot.img
To boot with a USB drive:
sudo dd if=boot.img of=/dev/sdb
Full blog: link
Youtube: