Skip to content

WR4F/osdev-barebones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic OS

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!

Build with Windows

  1. Install Qemu for Windows
  2. Install MinGW, and launch the MinGW Installation Manager. Make sure to mark both the mingw-base and mingw-gcc-g++ packages, and in the menu bar, choose Installation > Apply Changes to then apply and install those two packages.
  3. Close and reopen the MinGW Installation Manager, and carefully look for the packages mingw32-mpc and mingw32-mpfr - choose only the dev class, and ignore the others. After marking those two packages, choose Installation > Apply Changes to then apply and install.
  4. Add C:\Program Files\qemu and C:\MinGW\bin to your environment variables (How-To Guide For Qemu)
  5. Install Windows Subsystem for Linux (How to set up WSL)
  6. 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 in build/myos.iso using VirtualBox or Qemu!

Build with Linux

Not yet supported.

About

Basic operating system built in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published