[Top][All Lists]

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

Re: Framebuffer address and kernel video mode

From: Robert Millan
Subject: Re: Framebuffer address and kernel video mode
Date: Sat, 7 Feb 2009 23:54:37 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Thu, Feb 05, 2009 at 09:44:59PM +0100, phcoder wrote:
> Hello. First of all some good news: I managed to boot xnu kernel. To do 
> so I need to set it to video mode and pass video mode info to kernel. 
> Now I do it in adapter-specific way which is bad and ugly. So I would 
> like to propose an interface to set video mode before loading kernel and 
> then retrieve information:
> For this I propose to put grub_gfxterm_init lines 253 (modevar = 
> grub_env_get ("gfxmode"))-482 (grub_video_fill_rect (...)) into video.c as
> grub_video_setup_by_var (char *varname)
> The informations I need is:
> framebuffer address, bytes_per_scan_line, resolution, color depth
> Unfortunately framebuffer_address and bytes_per_scanline is missing from 
>  struct grub_video_mode_info. I propose to add it to this structure

This is VERY nice.  Maybe we can make the Linux loader do the same, once we
switch to loader/i386/linux.c (current loader is loader/i386/pc/linux.c).

Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."

reply via email to

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