GRUB not setting VESA mode

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
User avatar
DeezRamChips
Member
Member
Posts: 132
Joined: Fri Apr 08, 2016 5:03 am
Location: atapio.cpp - why won't you work :(
Contact:

GRUB not setting VESA mode

Post by DeezRamChips »

Hi :D , Here is my code:

Code: Select all

MBALIGN equ 1<<0 ; Align flag
MEMINFO equ 1<<1 ; Memory info flag, so GRUB will give us the memory info in MB structure.
VBE_MODE equ 1<<2 ; VBE mode flag. Grub will set it for us and provide info about it.
FLAGS equ MBALIGN | MEMINFO | VBE_MODE ; Flags
MAGIC equ 0x1BADB002 ; Multiboot magic number.
CHECKSUM equ -(MAGIC + FLAGS) ; Multiboot checksum
align 4 ; 4-byte aligned code/data goes after that line.
; Put all our settings there.
dd MAGIC ; Magic number, so GRUB will know that we're not going to kill him
dd FLAGS ; Flags that we're set
dd CHECKSUM ; Checksum
dd 0, 0, 0, 0, 0 ; Unneeded now.
dd 0 ; Set graphics mode
dd 1024, 768, 32 ; WxHxD screen resolution
I'm using GRUB 0.97, do somebody now why it's not changing the video mode ?
User avatar
DeezRamChips
Member
Member
Posts: 132
Joined: Fri Apr 08, 2016 5:03 am
Location: atapio.cpp - why won't you work :(
Contact:

Re: GRUB not setting VESA mode

Post by DeezRamChips »

Looks like nobody know about grub 0.97 :cry:
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: GRUB not setting VESA mode

Post by Combuster »

Don't use vanilla GRUB_Legacy. You need a patched version to support graphics.
Last edited by sortie on Thu Jul 14, 2016 9:44 am, edited 1 time in total.
Reason: Edited by sortie due to ongoing wiki article renaming
"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 ]
User avatar
DeezRamChips
Member
Member
Posts: 132
Joined: Fri Apr 08, 2016 5:03 am
Location: atapio.cpp - why won't you work :(
Contact:

Re: GRUB not setting VESA mode

Post by DeezRamChips »

Thnks for the reply ^_^

Where can I get a patched version and do I replace my current version other version ?
Post Reply