Fixed log and added VGA text driver #1

Closed
vanten-s wants to merge 12 commits from dev into main
Showing only changes of commit 256dc5b3d3 - Show all commits

View file

@ -350,6 +350,15 @@ fn panic(_info: &core::panic::PanicInfo) -> ! {
# Building the kernel
To build the kernel I just run `cargo build` in the `kernel` directory. This will produce a binary called `kernel/target/i686-bare-metal/debug/kernel.elf`. I now have a multiboot enabled kernel :)
# Grub
Now to turn the kernel into a ISO file with a bootloader, I used grub. To configure grub I needed to create a directory for it. I made `build/isodir/boot/grub/grub.cfg` containing this:
```
menuentry "geos" {
multiboot /boot/geos.bin
}
```
Then I copied `kernel/target/i686-bare-metal/debug/kernel.elf` to `isodir/boot/geos.bin`. Then I ran `grub-mkrescue -o build/geos.iso build/isodir` to make an ISO containing my OS and grub. Yippee
# File structure
```
geos/