Video mode from bootloader?

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
TheGuy
Posts: 13
Joined: Wed Jul 08, 2009 11:14 pm

Video mode from bootloader?

Post by TheGuy »

Blah blah blah, I want to change the graphics mode (I don't care about VBE yet) so that I'm working with pixels. Now I want some help. How should I proceed with doing so? I am loading using grub - but i'm not afraid to write my own boot loader (I have read up - 123). Is there a way to tell grub to load me in real mode? Must I return to real mode (1)?
dak91
Member
Member
Posts: 43
Joined: Thu Mar 12, 2009 3:27 am
Location: Sardegna (IT)

Re: Video mode from bootloader?

Post by dak91 »

You can switch graphic mode with a patched grub (http://www.smksoftware.co.za/products/vbe-grub/).
I don't know if grub can keep real mode, but I found this -> http://www.sudleyplace.com/pmtorm.html about switching from protected to real mode
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Video mode from bootloader?

Post by Combuster »

Vanilla Grub can't put you in graphics mode, you need a patched version to have it set a VBE mode for you. Patched or not, neither can load a kernel into real mode.

You can however set a graphics mode without using the bios - using the VGA standard. It won't give you high resolutions, but in protected mode it is the easiest way to go. Either way, there are two entries in the FAQ related to your question. I suggest you start from there.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply