Skip to content

'80s-style BASIC OS, based on the Nanobyte OS tutorials.

License

Notifications You must be signed in to change notification settings

treytomes/basic_os

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basic_os

My work in progress. First step is getting the keyboard controller fully operational, then I can start working on parsing user input into something interesting.


nanobyte_os

This repository contains the code from the "Building an OS" series 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 wget \
                   nasm mtools python3 python3-pip python3-parted scons dosfstools libguestfs-tools qemu-system-x86

# Fedora:
sudo dnf install gcc gcc-c++ make bison flex gmp-devel libmpc-devel mpfr-devel texinfo wget \
                   nasm mtools python3 python3-pip python3-pyparted python3-scons dosfstools guestfs-tools qemu-system-x86

# Arch & Arch-based:
paru -S gcc make bison flex libgmp-static libmpc mpfr texinfo nasm mtools qemu-system-x86 python3 scons

NOTE: to install all the required packages on Arch, you need an AUR helper.

I had to run this to get guestmount to work without sudo:

sudo dpkg-statoverride --update --add root root 0644 /boot/vmlinuz-`uname -r`

Then you must run python3 -m pip install -r requirements.txt

After that, run scons 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 scons. Use scons run to test your OS using qemu.

Links

About

'80s-style BASIC OS, based on the Nanobyte OS tutorials.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 64.9%
  • Assembly 14.7%
  • Python 9.9%
  • C++ 6.8%
  • Shell 3.4%
  • Makefile 0.3%