grub 0.97 + multiboot specification

Programming, for all ages and all languages.
Post Reply
500mhz
Posts: 5
Joined: Sat May 22, 2010 6:36 am

grub 0.97 + multiboot specification

Post by 500mhz »

Hi all

im set multiboot flags to 0x10007 (for non elf binary)

MB_HEADER_MAGIC equ 0x1BADB002
MB_HEADER_FLAGS equ 0x10007

_kheader:
dd MB_HEADER_MAGIC
dd MB_HEADER_FLAGS
dd -(MB_HEADER_MAGIC + MB_HEADER_FLAGS)
dd _kheader
dd _kheader
dd 0x0
dd 0x0
dd start
dd 0 LFB video mode
dd 640
dd 480
dd 8

but grub dont set gfx mode 640*480*8, what is wrong?


ps
sorry for bad english
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: grub 0.97 + multiboot specification

Post by Love4Boobies »

GRUB won't do that without some patch, I'm afraid. Note that the Multiboot specification does not require this, it's only a recommandation (the word "should" is used, term defined in section 2 of the document). However, it shouldn't be the job of the boot loader to switch video modes, IMO.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
Post Reply