Skip to content

Files

Latest commit

 

History

History

Kernel

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Requirements :-

GNU/Linux :- Any distribution
Assembler :- GNU Assembler(gas)
GCC :- GNU Compiler Collection, C compiler. I'm using gcc 4, 5, 6, 7, 8 versions
Xorriso :- A package that creates, loads, manipulates ISO 9660 filesystem images.(man xorriso)
grub-mkrescue :- Make a GRUB rescue image, this package internally calls the xorriso functionality to build an iso image.
QEMU :- Quick EMUlator to boot our kernel in virtual machine without rebooting the main system.

Usage :-

Run the script(run.sh)

sh run.sh

or

chmod +x run.sh
./run.sh

To Run kernel in VirtualBox :

  1. Click on New
  2. Enter Name, Type: Other, Version: Other/Unknown
  3. Memory size : keep it as it is
  4. Click next until File location and size dialog, select 64.00 MB size
  5. Click create
  6. Goto Settings -> System -> Acceleration and disable Enable VT-x/AMD-V or any other graphics card support
  7. Goto Settings -> Storage select ISO image of kernel.
  8. Click OK and Start machine

References :-

https://www.codeproject.com/Articles/1225196/Create-Your-Own-Kernel-In-C

https://www.c-sharpcorner.com/article/create-your-own-kernel/