This is a simple bootloader program implemented in assembly language to display a string during system bootup.
Packages required:
sudo apt-get install nasm
sudo apt-get install qemu-system-x86
After installing these packages, navigate to the directory of the bootloader ASM code.
-
Convert the bootloader assembly code to a binary code.
nasm -f bin bootloader.asm -o bootloader.bin -
Execute the bootloader binary in the qemu emulator.
qemu-system-x86_64 -hda bootloader.bin
You can copy this bootloader binary file to a formatted pendrive and boot your pc/system from the pendrive.
sudo fdisk -l
See the device name of your USB drive. Eg: /dev/sda1
Navigate to the project folder.
dd if="<device_name>" of="bootloader.bin"
Insert this bootable USB stick to a computer and boot it from the USB. You should see your bootloader string.