Skip to content

an multiboot2 kernel (only printk and clear_screen)

Notifications You must be signed in to change notification settings

skinwalker3654/KERNEL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Simple Multiboot2 Kernel with Printk

A minimal 32-bit Multiboot2-compatible kernel written in C and NASM, featuring a basic clear_screen and printk function for text output.

πŸ“‚ Project Structure

KERNEL/
β”œβ”€β”€ boot/
β”‚  └── boot.asm  #Multiboot2 bootloader (ASM)
β”‚
β”œβ”€β”€ kernel/
β”‚  └── kernel.c  #Kernel main code (printk, clear_screen)
β”‚
β”œβ”€β”€ iso/
β”‚  └── boot/
β”‚     └── grub/
β”‚        └── grub.cfg  #GRUB configuration file
β”‚
β”œβ”€β”€ linker.ld  #connects object files
β”œβ”€β”€ Makefile  #Build automation
└── README.md  #This file

πŸ› οΈ Build & Run

Requirements

  • GCC (32-bit target support)
  • NASM (for assembly)
  • GNU Make
  • GRUB (for ISO generation)
  • QEMU (for emulation)

CommandsRun in QEMU

  1. Build the kernel and create ISO
    make 
  2. Run in QEMU
    make run
  3. Clean build files
    make clean  #delets the executable files

About

an multiboot2 kernel (only printk and clear_screen)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published