Page 1 of 1

GRUB not setting VESA mode

Posted: Wed Jul 13, 2016 11:33 am
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 ?

Re: GRUB not setting VESA mode

Posted: Thu Jul 14, 2016 5:32 am
by DeezRamChips
Looks like nobody know about grub 0.97 :cry:

Re: GRUB not setting VESA mode

Posted: Thu Jul 14, 2016 8:00 am
by Combuster
Don't use vanilla GRUB_Legacy. You need a patched version to support graphics.

Re: GRUB not setting VESA mode

Posted: Thu Jul 14, 2016 9:58 am
by DeezRamChips
Thnks for the reply ^_^

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