This is a small BIOS bootloader project for x86.
The boot process is split into parts:
boot.asmis stage 1, the very first boot sectorboot/stage2.asmis stage 2, which does more setup and loads the kernelkernel/main.cis the freestanding kernel code that runs after the bootloader
Run:
.\build.ps1 imageThis creates build/disk.img, which is the full bootable image.
Write build/disk.img to the USB with Rufus. If Rufus asks, choose raw or DD image mode.
By default, build.ps1 looks for MSYS2 in %LOCALAPPDATA%\msys64.
If your MSYS2 installation is somewhere else, set the MSYS2_ROOT environment variable before running the script.
Example:
$env:MSYS2_ROOT = "C:\msys64"
.\build.ps1 image