/dvida_os

Primary LanguageCMIT LicenseMIT

Dvida OS

This is a simple operating system that I am developing based on the osdev wiki

Build

On Nix-OS

You can run nix develop at the root directory of the project, which will then have all other packages required

On Non Nix-OS

First of all

A gcc & binutils cross compiler toolchain with the target i686-elf is needed
After building the compilers, set the following environment variables:
I686_GCC="path/to/cross-gcc"
I686_LD="path/to/cross-ld"

Secondly

These are other packages required:
nasm
qemu
grub2
xorriso
gnumake

Run

DO NOT RUN THIS IN A REAL MACHINE!!! THE IMMATURITY OF THIS PROJECT MIGHT ERASE YOUR DISK!!!

To run, a 4Gib raw disk image called storage.img must be created
You can use qemu-img to do so
Then, simply run ./run.sh would emulate the iso in qemu