This OS is written in C++ with a tiny bit of assembly!
You can build a bootable ISO by running a script!
This guide/example project would not have been possible without the help of the OSDev Wiki!
- Install Qemu for Windows
- Install MinGW, and launch the MinGW Installation Manager. Make sure to mark both the
mingw-base
andmingw-gcc-g++
packages, and in the menu bar, choose Installation > Apply Changes to then apply and install those two packages. - Close and reopen the MinGW Installation Manager, and carefully look for the packages
mingw32-mpc
andmingw32-mpfr
- choose only the dev class, and ignore the others. After marking those two packages, choose Installation > Apply Changes to then apply and install. - Add
C:\Program Files\qemu
andC:\MinGW\bin
to your environment variables (How-To Guide For Qemu) - Install Windows Subsystem for Linux (How to set up WSL)
- Use this command to install GRUB with the ability to automatically generate a hybrid ISO, supporting both legacy BIOS and EFI. Run this inside of your WSL Bash shell:
# Depenencies for building a bootable hybrid ISO file using WSL
sudo apt-get install -y grub || sudo apt-get install -y grub-pc # Try installing `grub` and if it fails, install `grub-pc` instead
sudo apt-get install -y xorriso grub-pc-bin
Then, in Windows:
- Clone this repo (
git clone https://github.com/rslay/osdev-barebones
) or download the zip and unzip it somewhere - In powershell, go to the
osdev-barebones
repo folder, and run the./build.ps1
and boot up with the ISO file inbuild/myos.iso
using VirtualBox or Qemu!
Not yet supported.