- Whenever you change the config (first lines of krnlload.asm) you'll have to re-compile
- To re-compile you will need nasm installed how to install it on debian based distros:
- root privileges required
sudo apt install make
make debian-setup
- root privileges required
- How to install it on arch based distros:
- root privileges required
pacman -S make
make arch-setup
- root privileges required
- To compile you need to run this command:
make compile
- Place your kernel in the same directory you have krnlload.bin
- Note that the kernel must be compiled to a binary
- To use krnlload you'll have to get your kernel binary name it however you want but you have to remember that in this example it is showed as
kernel.bin
cat krnlload.bin kernel.bin > output.bin
This outputs a binary that is ready to use
- If KRNLload is not working try these things:
- Go into the first lines of krnlload.asm and change KERNEL_START_SECTOR to 0x02 (Like this:
%define KERNEL_START_SECTOR 0x02
) - Go into the first lines of krnlload.asm and change SECTORS_TO_READ to a big number, the number depends on how big you're kernel is we assume that you know about sectors since you are making an operating system (Like this:
%define SECTORS_TO_READ 32
)
-
KRNLload v1.0.0d
- KRNLload is the name of the bootloader
- v1.0.0 is the version
- d is the dev channel
-
KRNLload v1.0.0f
- KRNLload is the name of the bootloader
- v1.0.0 is the version
- f is the final release channel