From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eastrmfepo101.cox.net (eastrmfepo101.cox.net [68.230.241.213]) by ml01.01.org (Postfix) with ESMTP id 8E0191A1DF4 for ; Tue, 20 Sep 2016 12:41:11 -0700 (PDT) Received: from eastrmimpo305.cox.net ([68.230.241.237]) by eastrmfepo101.cox.net (InterMail vM.8.01.05.28 201-2260-151-171-20160122) with ESMTP id <20160920194110.EGF20836.eastrmfepo101.cox.net@eastrmimpo305.cox.net> for ; Tue, 20 Sep 2016 15:41:10 -0400 Received: from nessus.rodsbooks.com ([68.228.155.77]) by eastrmimpo305.cox.net with cox id lvh91t00Y1gU3vo01vhA07; Tue, 20 Sep 2016 15:41:10 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020203.57E190D6.013E, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.1 cv=UPpTHUvy c=1 sm=1 tr=0 a=cr7GcaIkJBQfbFixn0P1TA==:117 a=cr7GcaIkJBQfbFixn0P1TA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=N659UExz7-8A:10 a=GW1xBdLrtEIA:10 a=FP58Ms26AAAA:8 a=28bguoTQAAAA:8 a=ec_3x0d1wPukKMBfRzAA:9 a=pILNOxqGKmIA:10 a=6LVbBl2NLSWPyIBDCKCu:22 a=voRV_PY5qW-4FQMV9MBC:22 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from [192.168.1.2] (nessus.rodsbooks.com [192.168.1.2]) by nessus.rodsbooks.com (Postfix) with ESMTP id ADB062A0A23; Tue, 20 Sep 2016 15:41:09 -0400 (EDT) To: edk2-devel@lists.01.org, saqib.khan2011@gmail.com References: <2c8f7b31-7cc5-38cf-a56f-d60229ace8e9@redhat.com> From: Rod Smith X-Enigmail-Draft-Status: N1110 Message-ID: <1ed8f5d6-7937-b723-086a-c09afef14d6e@rodsbooks.com> Date: Tue, 20 Sep 2016 15:41:09 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Subject: Re: Help Required legacy booting from an EFI X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2016 19:41:11 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit On 09/20/2016 02:38 PM, Saqib Khan wrote: > > Booting using BBS is my option,i was already looking for this and I have > attempted to modify EFIBootManagerMenuApp to work with legacy boot used (). > > I have system with CSM support so essentially i will be doing all my work > on physical system not on virtual machine. > > The detail you provided about BBS device path and then adding it to boot > menu is abstract for me .if you can detail this procedure a bit it will be > helpful, if required I can share the code snippet with you You may want to look at the relevant bits of code in my rEFInd boot manager: https://sourceforge.net/projects/refind/ In particular, look at the functions in EfiLib/legacy.c and refind/legacy.c. One big caveat is that rEFInd includes TWO code paths for launching BIOS-mode boot loaders -- one it inherits from its predecessor project, rEFIt, and works only on Macs; and the other was contributed by John Bressler and works only on UEFI-based PCs. Since I wrote neither, I can't offer a lot of insight into how either one works. (The Mac side, in particular, is pretty mysterious to me.) There may be a better way to do it than what rEFInd does, but at least rEFInd's code does work. Thus, if you need a concrete example, the rEFInd code might be helpful. -- Rod Smith rodsmith@rodsbooks.com http://www.rodsbooks.com