Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QDOn8-0003aD-K6 for mharc-grub-devel@gnu.org; Fri, 22 Apr 2011 18:25:34 -0400 Received: from eggs.gnu.org ([140.186.70.92]:59374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDOn6-0003a7-Q6 for grub-devel@gnu.org; Fri, 22 Apr 2011 18:25:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDOn5-0007vQ-Gc for grub-devel@gnu.org; Fri, 22 Apr 2011 18:25:32 -0400 Received: from europa.lunarpages.com ([67.210.116.225]:57986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDOn5-0007vK-8K for grub-devel@gnu.org; Fri, 22 Apr 2011 18:25:31 -0400 Received: from pool-98-118-248-20.clppva.fios.verizon.net ([98.118.248.20] helo=[192.168.1.10]) by europa.lunarpages.com with esmtpsa (SSLv3:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QDOn0-0006cZ-41 for grub-devel@gnu.org; Fri, 22 Apr 2011 15:25:26 -0700 Subject: Re: Question: how to add new menu functionality From: Stephen Torri To: grub-devel@gnu.org In-Reply-To: <20110422114056.GD9163@riva.ucam.org> References: <1303466621.24395.8.camel@localhost.localdomain> <20110422114056.GD9163@riva.ucam.org> Content-Type: text/plain; charset="UTF-8" Date: Fri, 22 Apr 2011 18:25:26 -0400 Message-ID: <1303511126.24395.25.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 (2.32.2-1.fc14) Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - europa.lunarpages.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - torri.org X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 67.210.116.225 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: Fri, 22 Apr 2011 22:25:33 -0000 Thanks for the help. The build code for 1.99 is much easier to navigate than for 1.98. I downloaded the 1.99-rc2 source from the ftp site. As I worked on the code today I came up with four more questions on developing grub2: 1. This relates to the use of the kvm for testing a grub2 iso. How do you scroll up and down in the view in the kvm window? When using the grub.iso with the livecd image in it I noticed that I got a lot of messages that scrolled up and I could not see them with debug=all. 2. How do you do unblocking I/O from stdin? There are ways to do it with the select system call but it seems that there are only grub functions that are substituted for system calls. 3. How do you call a standard C library routine or system call to work in grub? For example called read(). In working with the code today I noticed that the standard C library headers were not being found because of two compiler flags (-inostdinc and -isystem). The path to the system headers, /usr/include, was not in the compiler strings for each file. 4. Lets say you manually compiled certain files by copying the Makefile command and removed the -inostdinc and -isystem. When I was working on 1.98 and used a system header to get a function I had to manually include /usr/include and alter the appropriate def-.lst file to get the code to compile. When I installed that code to a bootable device and restarted the system I saw a message that said: in is not defined Often the culprit was the system calls being used (e.g. select). I would get a message when grub started on the bootable device that said: select in normal is not defined This probably relates to the third question. This message tells me what is wrong but does not offer any information on how to resolve it. What step(s) did I miss that resulted in this message? I appreciate the help. Stephen