I know there are many posts about kernels working in qemu but not on real computers, but i have the opposite problem. I'm currently writing my memory management code which goes through the whole memory marking which pages are used or not. On a real computer, everything works. in qemu, however, it just stops at the grub booting prompt. Also, it works ok in bochs.
What are my solutions except restarting my computer or using bochs(which uses a horrible configuration file)?
Thanks.
If you want I will attach the code in a subsequent post.
kernel works in real computer but not qemu
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
QEMU supports debugging connections via GDB...
Also you can use QEMU Monitor, Inside of that you can do lots of neat things.
Show the CPU registers..
Physical/Virtual memory dumps..
etc..
http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC12
Hope this helps out in your debugging efforts
Also you can use QEMU Monitor, Inside of that you can do lots of neat things.
Show the CPU registers..
Physical/Virtual memory dumps..
etc..
Code: Select all
Ctrl-Alt-n
Switch to virtual console 'n'. Standard console mappings are:
1) Target system display
2) Monitor
3) Serial port
Hope this helps out in your debugging efforts