From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1TdQKL-0001kU-G0 for mharc-grub-devel@gnu.org; Tue, 27 Nov 2012 13:56:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdQKD-0001hD-5n for grub-devel@gnu.org; Tue, 27 Nov 2012 13:56:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdQK8-0001Bl-JH for grub-devel@gnu.org; Tue, 27 Nov 2012 13:56:05 -0500 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.120]:59947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdQK8-0001Be-F5 for grub-devel@gnu.org; Tue, 27 Nov 2012 13:56:00 -0500 X-Authority-Analysis: v=2.0 cv=KMfY/S5o c=1 sm=0 a=/DbS/tiKggfTkRRHPZEB4g==:17 a=Qsx_du5GiBkA:10 a=1I5aD5_xVbAA:10 a=kUqaIQs_yi8A:10 a=S1A5HrydsesA:10 a=8nJEP1OIZ-IA:10 a=fxJcL_dCAAAA:8 a=rK2FDdp4iakA:10 a=QfKxxUxMAAAA:8 a=8dSdQ0In1_Gf3XdDfPYA:9 a=wPNLvfGTeEIA:10 a=/DbS/tiKggfTkRRHPZEB4g==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 67.78.168.186 Received: from [67.78.168.186] ([67.78.168.186:56695] helo=[10.1.1.235]) by cdptpa-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id B5/80-01425-FBC05B05; Tue, 27 Nov 2012 18:55:59 +0000 Message-ID: <50B50CBF.4050500@ubuntu.com> Date: Tue, 27 Nov 2012 13:55:59 -0500 From: Phillip Susi User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: (request) grub2 v1.97 how to debug and what is the real implement of b->allocate_pages. References: In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 75.180.132.120 Cc: cr os X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2012 18:56:11 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11/26/2012 10:34 PM, cr os wrote: > Dears, I'm pulzzed with some problems when reading grub2 v1.97 > source code. Could you please help me? > > Q1: About grub2 debug. Where does the grub2 log file(exist?) > locate? Such as grub_dprintf, grub_fatal, grub_error function > calls. Grub2 is a bootloader, it will load OS later, so the file > system still not ready for grub2 creating a log file at that time, > does it? Then how to debug grub2? There is no log file; you set the debug variable to cause the messages to be printed to the screen ( or serial console if you are using that ). > Q2: About efi_call_4 function call. For an example, grub2 v1.97, > in grub2\kern\efi\mm.c grub_efi_allocate_pages function: > efi_call_4 (b->allocate_pages, type, GRUB_EFI_LOADER_DATA, pages, > &address); I couldn't find the real function define of the pointer > "b->allocate_pages", what will be call after the efi_call_4(as > below) function been called? I haven't looked at the code in question but from the sound of it, you are talking about calling one of the EFI system functions provided by the system firmware. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBAgAGBQJQtQy+AAoJEJrBOlT6nu75HQoH/AjSqrTU8GFmQAL3pgCCj9YQ m6jBg9S3NFbRRggkQEGuaLWL0FTtfxn/2b4Y+IKubp4V4IRCxvEeEorJfvc5KmhF xDK/bnDlxsJtX7Ldzk1VezCmOzwAzK6pkR4mhIO/p85JarJyUOF5OPPHfY64H8eP 0X0pgOX5v49/j1yHVTcbZhAKrhgTrsieamsJjrQ2PxEVR+XR3Ee1TowpwN8ewoqW 9+fSs1oFCHKeCFY905poOb4KAsvFr6kpR+0hbiwoie5iy36YdKZ7OuL1SM1pq/gw c8g4KgfbL8w6crXJ2hi7pTWqV0LOLWOcmu9wH0Gd15F7H5GzPxXeSYXJTxpuALw= =hlUG -----END PGP SIGNATURE-----