My own 64-bit x86 operating system kernel from scratch
- Docker for creating our build-environment.
- Qemu for emulating our operating system.
- A text editor or IDE for writing code.
Build an image for our build-environment:
docker build . -t dan-os
Enter build environment:
-
docker run --rm -it -v "$(pwd)":/root/env dan-os -
make build: building the kernel -
make clean: cleaning the build -
make help: for more commands
If you are using Qemu, please close it before running this command to prevent errors.
To leave the build environment, enter exit.
You can emulate your operating system using Qemu:
qemu-system-x86_64 -cdrom dist/x86_64/kernel.iso- You also should be able to load the operating system on a USB drive and boot into it when you turn on your computer, check your BIOS setup to unable secure boot options and enable legacy boot.
Remove the build-evironment image:
docker rmi dan-os -f
Quick dev tip:
Inside of the docker container, run the following:
apt-get update && apt-get install entr find src/ | entr make build
To auto rebuild everytime you change a file on the src directory Note: you'll need to Ctrl+C and restart the find command if you create a new file
This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details.