From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E28281A1DEB for ; Thu, 6 Oct 2016 00:28:20 -0700 (PDT) Received: by mail-io0-x232.google.com with SMTP id i202so7131534ioi.2 for ; Thu, 06 Oct 2016 00:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jkfWHN9Tn3JWU+YdLnuk/4OmM9qEV9OJOq8p3E2gR4Y=; b=p45vTx2dwEDQrHJxKmsgIdL1yj23zEZPCLIrsCS8LvXM+tqx5gxY9d9XnUnit88mdX WxGL7Rf/NCl9UZq1/IHSoI7aU/9N90laA8sEEp5i/16NqIj9AxmPwHEsqY3Gcvwaz/uq d00vZKZ8aOdG1ex6/vQy//hOd1GyE6iG0cBKsV87wonHiqoPhj42OxB2eISeYImOipYW zvYz2xIRp46rT1tFeP6oOf60BVjRrnAGFCKpV36NSrl1F7PmiK5U8IQ4pkRPI46LJiBW 5KzjM7XRKYOYcnS6ky57X1pDDeq6pviUEEk5v7c51tfJ7V5dMW7eS8skFEO5WHJW7DZQ dIcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jkfWHN9Tn3JWU+YdLnuk/4OmM9qEV9OJOq8p3E2gR4Y=; b=RZhFg/beW+/Rd/IKMXRJ2L8dDEqfAsxfHnMENPNp5OxqO2HJYSkCfv+YCUWZNMOz6y 9i5OwzBAGElYRLZtcKHGf1SR5aHFBdFMhYed7NzidRTV77ek265ajICLNOJ3pZAv5c85 LSEZz24tLNraupuFL4sxeolyyB3k+TyhwbpfI9cbVO+0T67sPBAaHtocrMoyrWAGDjSD +IW8ZCRW44rZAdbVJjLBp8jue1LL3LGtsciKZXJ3NyoDhss1HdE9okzYGq+G0rsAsXlx BoEbGhq97AyGJJUO6pRgirzsJ28G69MFvE8szXz3MM/S+9Trc8h/UiYzNUkaklB9TdjF B+yw== X-Gm-Message-State: AA6/9Rmtvqd3F2HTD0aOnFUhiqAhdNFs2x8BVV6FsdUng8+Ue5uJ7OQJgNcHj2wc6PvAkJt/R1C4ZNC/fwt1/Q== X-Received: by 10.107.143.79 with SMTP id r76mr13535776iod.227.1475738900273; Thu, 06 Oct 2016 00:28:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.196.214 with HTTP; Thu, 6 Oct 2016 00:28:19 -0700 (PDT) In-Reply-To: References: <02363E95-C78D-4137-93DB-FEB05A221A9B@gmail.com> From: Saqib Khan Date: Thu, 6 Oct 2016 12:28:19 +0500 Message-ID: To: Andrew Fish Cc: edk2-devel@lists.01.org X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Re: Urgent help -UefiBootManagerLib and LegacyBootManagerLib issue 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: Thu, 06 Oct 2016 07:28:21 -0000 Content-Type: text/plain; charset=UTF-8 Hi Andrew, I think I did not address my problem well in my previous email.Please take a minute again to understand my problem. here is my scenario have following lib added to my *.inf file [LibraryClasses] HiiLib DebugLib UefiLib MemoryAllocationLib UefiBootServicesTableLib UefiApplicationEntryPoint *UefiBootManagerLib LegacyBootManagerLib* UefiShellLib And here is piece of code I am trying to compile EfiBootManagerConnectAll (); EfiBootManagerRefreshAllBootOption (); BootOption = EfiBootManagerGetLoadOptions (&BootOptionCount, LoadOptionTypeBoot); Status = gBS->LocateProtocol (&gEfiLegacyBiosProtocolGuid, NULL, (VOID **) &LegacyBios); it Compiles successfully but EFI hangs at *EfiBootManagerRefreshAllBootOption () * When I remove * LegacyBootManagerLib* Libraries it does not hang I think I missing something in it may be i need to add CSM libraries in my EFI? I also tried NULL library resolution in DuetPkgx64.dsc like this MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf { NULL|IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBootManagerLib.inf } If you still think that is a CSM issue then i will be go for another system as i am doing my development on physical system. *Thank you* On Thu, Oct 6, 2016 at 2:37 AM, Andrew Fish wrote: > > > On Oct 5, 2016, at 2:23 PM, Saqib Khan wrote: > > > > > > > > Hi all,i need urgent help regarding this issue. > > > > > Saqib, > > You likely have a bug in your CSM. So that is your > gEfiLegacyBiosProtocolGuid implementation and all the 16-bit legacy BIOS > code. > > So you should contact the people you got your CSM from. > > Thanks, > > Andrew Fish > > >> On 05-Oct-2016, at 9:05 PM, Saqib Khan > wrote: > >> > >> > >> I have found that it just dont return from mBmRefreshLegacyBootOption > (); . > >> > >> have a look at code. let me know the possible cause of it ... > >> I need urgent help > >> > >> EfiBootManagerRefreshAllBootOption ( > >> VOID > >> ) > >> { > >> EFI_STATUS Status; > >> EFI_BOOT_MANAGER_LOAD_OPTION *NvBootOptions; > >> UINTN NvBootOptionCount; > >> EFI_BOOT_MANAGER_LOAD_OPTION *BootOptions; > >> UINTN BootOptionCount; > >> UINTN Index; > >> Print(L"indside refresh\n"); > >> // > >> // Optionally refresh the legacy boot option > >> // > >> if (mBmRefreshLegacyBootOption != NULL) { > >> Print(L"Before legacy refresh \n"); > >> mBmRefreshLegacyBootOption (); //this method does not return > >> Print(L"legacy refresh complete\n"); > >> } > >> > >>> On Wed, Oct 5, 2016 at 5:51 PM, Saqib Khan > wrote: > >>> Hi, > >>> > >>> when i import both lib in my project my EFI hangs at > EfiRefreshAllBootOptions, i removed LegacyBootManager and it worked fine .i > need both lib as i need to boot legacy from EFI, how this issue can be > resolved? > >>> > >>> > >>> here is piece of inf file > >>> > >>> [Packages] > >>> MdePkg/MdePkg.dec > >>> MdeModulePkg/MdeModulePkg.dec > >>> IntelFrameworkPkg/ > >>> IntelFrameworkPkg.dec > >>> IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec > >>> ShellPkg/ShellPkg.dec > >>> > >>> [LibraryClasses] > >>> HiiLib > >>> DebugLib > >>> UefiLib > >>> MemoryAllocationLib > >>> UefiBootServicesTableLib > >>> UefiApplicationEntryPoint > >>> UefiBootManagerLib > >>> LegacyBootManagerLib > >>> > >>> > >>> -- > >>> Regards > >>> Saqib Ahmed Khanzada > >> > >> > >> > >> -- > >> Regards > >> Saqib Ahmed Khanzada > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel > > -- Regards Saqib Ahmed Khanzada