The major goal of this project is to recreate some of the functionality from a DOS-like operating system.
For contributing fork this repository and then make your changes in the form of Pull Requests to the main repository
qemu-system-x86
) on debian based systems you can install this with the apt package managerUse homebrew to install the dependencies using these commands:
brew install x86_64-elf-binutils x86_64-elf-gcc nasm binutils qemu
If you are on Apple Silicon, you will need to use Rosetta along with installing x86_64 libraries. This can be done by prefixing the previous commands with arch -x86_64
.
You will need to ensure that these programs are on your PATH or make
will not find them.
make
in the root directory of the projectmake qemu
in the root directory of the projectmake qemu-gdb
in the root directory of the projectmake qemu-gdb-boot
in the root directory for debugging the bootloadermake qemu DEBUG=true
in the root directory of the projectmake format
in the root directory of the project to format the code
according to the formatter in .clang-formatboot and immediately drop to a prompt. programs can be executed from the prompt. send signals by keyboard to do ✨stuff✨.
make
and you get an error along the lines of
/usr/bin/ld: cannot find crt1.o: No such file or directory
you likely only have the gcc for your current architecture that is 64bit. You need the 32bit support files. For that you can install them on debian based machines with sudo apt install gcc-multilib