Black screen on boot in QEMU

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
macq
Posts: 1
Joined: Wed Jan 03, 2024 9:51 am

Black screen on boot in QEMU

Post by macq »

I'm brand new to OS development, so I'm sorry for such a basic question.

I'm developing on Linux, Debian 12.4 to be exact. I've followed the Bare Bones guide as closely as I could, built a working cross-compiler, assembled, compiled and linked the code included in the tutorial, and verified that it has a valid multiboot header. There were no errors printed for any of these steps. I followed the directions to create a bootable ISO and tried to run that with QEMU. Booting both the ISO and the kernel binary result in a black screen with a blinking cursor on the left side about a third of the way down the screen.

Any advice is appreciated, thank you.
Octocontrabass
Member
Member
Posts: 5560
Joined: Mon Mar 25, 2013 7:01 pm

Re: Black screen on boot in QEMU

Post by Octocontrabass »

If you run QEMU by itself without booting your OS, do you see anything?

If you boot your OS and add "-no-reboot" to your QEMU command line, do you see anything?

If you replace the "hlt" in the bootstrap assembly with "nop", do you see anything?
Post Reply