Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
build/
toolchain/
.toolchains/
*.err
bx_enh_dbg.ini
.vscode/*.log
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 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"](https://www.youtube.com/watch?v=9t-SPC7Tczc&list=PLFjM7v6KGMpiH2G-kT781ByCNC_0pKpPN) series on the ["Nanobyte"](https://www.youtube.com/channel/UCSPIuWADJIMIf9Erf--XAsA) YouTube channel.

Expand All @@ -19,6 +25,11 @@ paru -S gcc make bison flex libgmp-static libmpc mpfr texinfo nasm mtools qemu-s
```
NOTE: to install all the required packages on Arch, you need an [AUR helper](https://wiki.archlinux.org/title/AUR_helpers).

I had to run this to get guestmount to work without sudo:
```bash
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.
Expand All @@ -29,3 +40,4 @@ Finally, you should be able to run `scons`. Use `scons run` to test your OS usin

* [Discord channel](https://discord.gg/RgHc5XrCEw)
* [Patreon](https://www.patreon.com/nanobyte)

4 changes: 3 additions & 1 deletion build_scripts/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import os

#config = 'release'
#arch = 'i686'
imageType = 'disk'
imageFS = 'fat32'
imageSize = '250m'
toolchain='../.toolchains'
toolchain = os.path.abspath(os.path.join(os.getcwd(), '.toolchains'))