Andy Sloane's donut.c ported to x86 bare-metal environments
First, install dependencies:
# on Ubuntu
sudo apt install gcc-multilib grub2 mtools xorriso qemu-system-x86
Then run the following command to build and run:
make run
It also creates a disk image file called disk_image
. You can simply copy it onto a disk and boot it.
The donut.c is the revised version without any modification.
For the explanation of how donut.c
works, see Andy Sloane's blog post.