bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uing vbe commands


From: Vesa Jääskeläinen
Subject: Re: uing vbe commands
Date: Tue, 02 May 2006 23:27:22 +0300
User-agent: Thunderbird 1.5.0.2 (Windows/20060308)

Gerardo Richarte wrote:
> Hi, I'm having problems with the vbe commands, specially if I compile
> grub (0.97) myself.
> shared.h:
> 
> struct vbe_mode {
>   ...
>    unsigned char reserved3[190];
> } __attribute__ ((packed));
>      I read somewhere that this strcture must be 256 bytes, but, as far
> as I can count (tried twice) the original structure has 255 bytes, which
> would make sence.
> 
>    In short, my fix is to make reserved3 have 190 bytes.

Yes, there is a error in VBE 3.0 specification and only fixup I could
figure out is to add one to last reserved field.

Here is my solution to GRUB 2:
http://cvs.savannah.gnu.org/viewcvs/*checkout*/grub/grub2/include/grub/i386/pc/vbe.h?content-type=text%2Fplain&rev=1.5

>    I also added a new command: setvbe, which will change the video mode
> and continue (cut&pasted from testvbe). My plan is to use this to
> bootstrap the development of some graphic mode bottable stuff.
> 
>    At some point I also thought of implementing the support for video
> mode selection of the multiboot loader of GRUB Legacy, I don't know if
> this makes sence or not, in the view of GRUB2. Any thoughts?

Please do not develop for GRUB Legacy instead consider contributing to
GRUB 2. It has much better video features at this point. Video support
for GRUB Legacy won't happen in official version of GRUB, it is only
targeted for GRUB 2. Though, I can fix this header error for GRUB Legacy.

Thanks,
Vesa Jääskeläinen






reply via email to

[Prev in Thread] Current Thread [Next in Thread]