We will be running the bootloader in QEMU. Follow the instructions here to install and launch QEMU with our custom bootloader!
- Install QEMU
- move to the bootloader directory
- Within src/main.rs, there is a comment with a command
- this builds the project, copies the bootloader file, and runs QEMU
- Run the command in a bash terminal. It should build the project and run it.
- run cargo build in the kernel directory
- run
cp target/x86_64-kernel/debug/kernel ../bootloader/esp/EFI/router_os/kernel.bin
- this copies the kernel file into the desired location in the filesystem that UEFI will bring up
- run the command to run the bootloader, and it should run.