Closed Brian3647 closed 2 years ago
Bootloader 0.10 doesn't use vga text mode anymore. It sets up a framebuffer instead whose address is stored in boot_info.framebuffer
. You have to rasterize a font and write the raw pixels or use the serial port instead.
@bjorn3 do you know any tutorial or something I can follow to do that?
https://github.com/rust-osdev/bootloader/blob/0f7f78382a8021f81d66fb149ab98a441a47a6c0/src/binary/logger.rs uses the font8x8 crate to write to the framebuffer.
https://github.com/rust-osdev/bootloader/blob/2bdc5ac8e0fd658cc30aecbe7b0aed8d1521cb04/examples/basic/src/main.rs show how to use boot_info.framebuffer
to get the framebuffer address.
@bjorn3 thanks!
Sample code: https://github.com/Brian3647/rust-bootloader-issue