Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kascii

x86_64 kernel from asm to c

This was made by following a video series by CodePulse, the playlist can be found here

Prerequisites

remember to have this tools in your path

Docker for the build-environment

QEMU for emulating our operating system

Setup Build Environment

# buildenv: folder with the dockerfile
# kascii-env: container name

docker build buildenv --tag kascii-env

Entering on the Build Environment

# Linux or MacOS:
docker run --rm -it -v "$pwd":/root/env kascii-env

# Windows (CMD):
docker run --rm -it -v "%cd%":/root/env kascii-env

# Windows (PowerShell):
docker run --rm -it -v "${pwd}:/root/env" kascii-env

# --rm: remove container on exit
# -i: interactive mode
# -t: allocate a pseudo-TTY
# -v "<current_folder>:/root/env": mounts the current folter into the volume /root/env on the container
# kascii-env: container name used on setup

Build

make build-x86_64

The gerenated iso will be located at dist/x86_64/kernel.iso

Running (QEMU)

# windows/linux/macos
qemu-system-x86_64 -cdrom dist/x86_64/kernel.iso

# windows but qemu cannot find the pc bios (use powershell)
.\scripts\windows\qemu-x86_64.ps1

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages