Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MLhdO-0004Ef-KW for mharc-grub-devel@gnu.org; Tue, 30 Jun 2009 14:00:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLhdM-0004ES-JY for grub-devel@gnu.org; Tue, 30 Jun 2009 14:00:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLhdI-0004EE-6H for grub-devel@gnu.org; Tue, 30 Jun 2009 14:00:44 -0400 Received: from [199.232.76.173] (port=40988 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLhdH-0004EB-R9 for grub-devel@gnu.org; Tue, 30 Jun 2009 14:00:39 -0400 Received: from aybabtu.com ([69.60.117.155]:32824) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MLhdH-00013T-Dj for grub-devel@gnu.org; Tue, 30 Jun 2009 14:00:39 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1MLgZV-0007sx-Si; Tue, 30 Jun 2009 18:52:42 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1MLhd9-00045b-Ed; Tue, 30 Jun 2009 20:00:31 +0200 Date: Tue, 30 Jun 2009 20:00:31 +0200 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20090630180031.GA15681@thorin> References: <20090630144018.GA24555@thorin> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline In-Reply-To: <20090630144018.GA24555@thorin> 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.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) Cc: Arthur Marsh Subject: Re: Linux instrumentation for new loader 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: Tue, 30 Jun 2009 18:00:44 -0000 --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline And this one should help in case Linux can't display anything after GRUB transfers control to it. -- 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." --M9NhX3UHpAaciwkO Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="grub_dump.diff" Index: loader/i386/linux.c =================================================================== --- loader/i386/linux.c (revision 2375) +++ loader/i386/linux.c (working copy) @@ -541,6 +540,31 @@ params->video_cursor_y = grub_getxy () & 0xff; } + grub_printf ("screen_info dump:\n"); + grub_printf ("orig_x = 0x%x, orig_y = 0x%x\n", params->video_cursor_x, params->video_cursor_y); + grub_printf ("ext_mem_k = 0x%x\n", params->ext_mem); + grub_printf ("orig_video_page = 0x%x\n", params->video_page); + grub_printf ("orig_video_mode = 0x%x\n", params->video_mode); + grub_printf ("orig_video_cols = 0x%x\n", params->video_width); + grub_printf ("orig_video_ega_bx = 0x%x\n", params->video_ega_bx); + grub_printf ("orig_video_lines = 0x%x\n", params->video_height); + grub_printf ("orig_video_isVGA = 0x%x\n", params->have_vga); + grub_printf ("orig_video_points = 0x%x\n", params->font_size); + grub_printf ("lfb_width / lfb_height / lfb_depth = %dx%dx%d\n", params->lfb_width, params->lfb_height, params->lfb_depth); + grub_printf ("lfb_base = 0x%x, lfb_size = 0x%x\n", params->lfb_base, params->lfb_size); + grub_printf ("cl_magic = 0x%x, cl_offset = 0x%x\n", params->cl_magic, params->cl_offset); + grub_printf ("lfb_linelength = 0x%x\n", params->lfb_line_len); + grub_printf ("red_size = 0x%x, red_pos = 0x%x\n", params->red_mask_size, params->red_field_pos); + grub_printf ("green_size = 0x%x, green_pos = 0x%x\n", params->green_mask_size, params->green_field_pos); + grub_printf ("blue_size = 0x%x, blue_pos = 0x%x\n", params->blue_mask_size, params->blue_field_pos); + grub_printf ("rsvd_size = 0x%x, rsvd_pos = 0x%x\n", params->reserved_mask_size, params->reserved_field_pos); + grub_printf ("vesapm = 0x%x:0x%x\n", params->vesapm_segment, params->vesapm_offset); + grub_printf ("pages = 0x%x\n", params->lfb_pages); + grub_printf ("vesa_attributes = 0x%x\n", params->vesa_attrib); + grub_printf ("capabilities = 0x%x\n", params->capabilities); + grub_printf ("press a key to continue"); + grub_getkey (); + #ifdef __x86_64__ grub_memcpy ((char *) prot_mode_mem + (prot_mode_pages << 12), --M9NhX3UHpAaciwkO--