Closed
Description
I'm new to using this crate, and I'm trying to get some simple graphics working. However, whenever I try and get the GOP
, it locks up the system, without a panic, and I couldn't figure out why. Hopefully this is the right place for this...
Here's most of the code I have
pub const LEMONCAKE_VER: &str = "25m3-UEFI";
use log::{error, info};
use uefi::{
helpers,
prelude::*,
proto::console::gop::GraphicsOutput,
};
#[entry]
fn main() -> Status {
helpers::init().unwrap();
info!("Running Lemoncake {}", LEMONCAKE_VER);
let gop_handle =
boot::get_handle_for_protocol::<GraphicsOutput>().expect("Unable to find the GOP!");
info!("This does appear!");
let mut gop = boot::open_protocol_exclusive::<GraphicsOutput>(gop_handle);
info!("This does NOT appear!");
return Status::SUCCESS;
}
#[panic_handler]
fn panic(info: &core::panic::PanicInfo) -> ! {
error!(
"(X_X)\n\nUh-Oh, Lemoncake panicked!\nMessage: {}\nLocation: {}@L{}:{}",
info.message(),
info.location().unwrap().file(),
info.location().unwrap().line(),
info.location().unwrap().column()
);
loop {}
}
And as one may be able to tell, the "This does NOT appear!" text does not appear.
I've tried quite a few things, and nothing works. Even the sierpinski example inside of here doesn't work when putting it into my project.
If it helps, I'm running openSUSE Tumbleweed, and how I've been running QEMU.
qemu-system-x86_64 -enable-kvm \
-bios bin/ovmf.bin\
-drive format=raw,file=fat:rw:bin/esp\
-m 256M
I don't know if this is just my bad programming, or if something's possibly wrong with the crate itself (which i doubt). However, I would like to get this resolved soon.
Metadata
Metadata
Assignees
Labels
No labels