Custom kernel for a x86 system as part of Computer Engineering Operating System mini project in 2nd year.
Requirements :
- NASM assembler
- gcc
- ld
- qemu
Steps to run :
- Create object files for
kernel.c
andkernel.asm
- nasm -f elf32 kernel.asm -o kasm.o
- gcc -m32 -c kernel.c -o kc.o
- Link both the object files
- ld -m elf_i386 -T link.ld -o kernel kasm.o kc.o
- Run the kernel on
QEMU emulator
- qemu-system-i368 -kernel kernel