From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LVB5v-0000f4-Nm for mharc-grub-devel@gnu.org; Thu, 05 Feb 2009 15:45:07 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVB5u-0000d7-1z for grub-devel@gnu.org; Thu, 05 Feb 2009 15:45:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVB5s-0000ak-FP for grub-devel@gnu.org; Thu, 05 Feb 2009 15:45:05 -0500 Received: from [199.232.76.173] (port=55850 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVB5s-0000aY-8F for grub-devel@gnu.org; Thu, 05 Feb 2009 15:45:04 -0500 Received: from fg-out-1718.google.com ([72.14.220.159]:6462) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LVB5r-0008GG-Qz for grub-devel@gnu.org; Thu, 05 Feb 2009 15:45:04 -0500 Received: by fg-out-1718.google.com with SMTP id l27so308141fgb.30 for ; Thu, 05 Feb 2009 12:45:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=DWV/T8LuTEAXJ9/GuJHRLMa5ulZArae1h9WvUmJiPmY=; b=v4g7UUYQAQo7CVqnfVPaFeWu64jzrcvfoVjQ5Y+uycexBv20ePVeDeboPnFQbIB0Mx hwc/+W+Rpha5Rbw019G2Bev5BfVp73bATQoPQCTUQs4GTEU97al7PPwOKhFQk/W3AFFo 8dozyi5jswwhi2LGvN3tiON5oN8rV41y4Wcvc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=A3hbeUujKZbJQi6F/MfqU7wa3VvmtX769UWmYFCZ1t9ZzFxUUq+q5e/e5Ad7Wj/o47 Mft9NKxEdSrgxpoArFBmwa4WKfzyx+e7SPrMQ07wGrIYJ13FhARv4L3MabRaJ3qvFqom ZqYKbVMScpzyD27aBLiSPpQfM6tmDKgzi+jJc= Received: by 10.86.84.5 with SMTP id h5mr555638fgb.64.1233866700689; Thu, 05 Feb 2009 12:45:00 -0800 (PST) Received: from ?192.168.1.25? (89-139.62-81.cust.bluewin.ch [81.62.139.89]) by mx.google.com with ESMTPS id e20sm2188492fga.56.2009.02.05.12.45.00 (version=SSLv3 cipher=RC4-MD5); Thu, 05 Feb 2009 12:45:00 -0800 (PST) Message-ID: <498B4FCB.6090106@gmail.com> Date: Thu, 05 Feb 2009 21:44:59 +0100 From: phcoder User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Framebuffer address and kernel video mode X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2009 20:45:06 -0000 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 Thanks Vladimir 'phcoder' Serbinenko