Following guidelines from this guide to make a simple kernel
Setup Instructions
- Clone the repository
git clone https://github.com/Viktree/Simple-Linux-Kernel.git
- Enter into the repsitory
cd Simple-Linux-Kernel
- Create the kernal with
make
- Copy the kernel to the boot directory:
mv kernel /boot/kernel-01
. Note that this renames the kernel program to kernel-01 - Change the permissions so that we can edit the grub.
chmod u+xw /boot/grub/grub.cfg
. - Add the following section to the grub configuration. The grub configuration can be edited by running
sudo vim /boot/grub/grub.cfg
. Add the following lines to the grub:
menuentry 'kernel 01' {
set root='hd0,msdos1'
multiboot /boot/kernel-01 ro
}