Skip to content

jasonp019/nanobyte_os

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nanobyte_os

This repo contains the code from the "Building an OS" tutorial on the "Nanobyte" YouTube channel.

Building

First, install the following dependencies:

# Ubuntu, Debian:
$ sudo apt install build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo \
                   nasm mtools qemu-system-x86
           
# Fedora:
$ sudo dnf install gcc gcc-c++ make bison flex gmp-devel libmpc-devel mpfr-devel texinfo \
                   nasm mtools qemu-system-x86

After that, run make toolchain, this should download and build the required tools (binutils and GCC). If you encounter errors during this step, you might have to modify build_scripts/config.mk and try a different version of binutils and gcc. Using the same version as the one bundled with your distribution is your best bet.

Finally, you should be able to run make. Use ./run.sh to test your OS using qemu.

About

OS tutorial from Nanobyte YouTube channel.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 70.0%
  • Assembly 22.0%
  • Makefile 7.9%
  • Shell 0.1%