Self compiled Linux Kernel
- Used BusyBox for Linux utilities and Qemu as a hypervisor
- Total file size went to 68Mb
-
Clone the repo
git clone [email protected]:pranjal-barnwal/linux-kernel.git
-
Move to the
linux-kernel
directorycd linux-kernel
-
Install QEMU, which will be used as Hypervisor for our kernel. You can download it from here
-
Set up the path environment variable in your windows system. Add the below path:
C:\Program Files\qemu
-
Then we can simply boot up the image using
qemu-system-x86_64 boot
-
New window will be popped asking what to boot. Then we need to pass file path in that window:
/bzImage -initrd=/init.cpio
-
That's it, CLI interface will be loaded and we're good to go.
NOTE: All the linux commands will not be working, since all binaries for the commands are not present