Skip to content
/ Dan-OS Public
forked from Dan13615/Dan-OS

My own 64-bit x86 operating system kernel from scratch [fork to add vim]

License

Notifications You must be signed in to change notification settings

Tech0ne/Dan-OS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dan-kernel

My own 64-bit x86 operating system kernel from scratch

Prerequisites

  • Docker for creating our build-environment.
  • Qemu for emulating our operating system.
  • A text editor or IDE for writing code.

Setup

Build an image for our build-environment:

  • docker build . -t dan-os

Build

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.

Emulate

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.

Cleanup

Remove the build-evironment image:

  • docker rmi dan-os -f

Dev

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

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details.

Acknowledgments

About

My own 64-bit x86 operating system kernel from scratch [fork to add vim]

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C 75.6%
  • Assembly 16.0%
  • Makefile 7.6%
  • Other 0.8%