From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1J9MV6-0002Z0-EI for mharc-grub-devel@gnu.org; Mon, 31 Dec 2007 10:24:24 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J9MV3-0002UE-QK for grub-devel@gnu.org; Mon, 31 Dec 2007 10:24:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J9MV2-0002Ry-Ne for grub-devel@gnu.org; Mon, 31 Dec 2007 10:24:21 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9MV2-0002Rm-H1 for grub-devel@gnu.org; Mon, 31 Dec 2007 10:24:20 -0500 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J9MV2-00015N-6p for grub-devel@gnu.org; Mon, 31 Dec 2007 10:24:20 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1J9MUz-0000en-RH for grub-devel@gnu.org; Mon, 31 Dec 2007 16:24:19 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1J9MUc-000603-Rm for grub-devel@gnu.org; Mon, 31 Dec 2007 16:23:54 +0100 Date: Mon, 31 Dec 2007 16:23:54 +0100 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20071231152354.GA22762@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Xbox vesa-like framebuffer 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: Mon, 31 Dec 2007 15:24:22 -0000 It seems the Xbox (hacked) firmware, Cromwell, sets up a vesa-like framebuffer with predefined 640x480x32 RGBX settings at addr *(0xfd600800) [1] I just gave a quick look at vbe.c to see how hard would it be to adapt it to use default settings rather than BIOS calls. Can someone provide a bit of advice on what those settings would be? In particular, I wonder about: `mode' (as returned by grub_vbe_get_video_mode_info()) `active_mode_info.memory_model' (and in case of GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL, do we have to setup vga palette?) `framebuffer.bytes_per_scan_line' `framebuffer.bytes_per_pixel' --> 4, right? Anything else I could have missed ? Also, is there an easy way to get debugging output printed somewhere (before we have to care about font stuff) in the form of raw pixels ? This thing doesn't seem to have a serial port or any other simple debugging interface. [1] from http://www.xbox-linux.org/wiki/Porting_an_Operating_System_to_the_Xbox_HOWTO#Video_Driver -- Robert Millan I know my rights; I want my phone call! What use is a phone call, if you are unable to speak? (as seen on /.)