From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-x22e.google.com (mail-it0-x22e.google.com [IPv6:2607:f8b0:4001:c0b::22e]) (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 396511A1E3B for ; Wed, 5 Oct 2016 09:05:04 -0700 (PDT) Received: by mail-it0-x22e.google.com with SMTP id j69so203093586itb.0 for ; Wed, 05 Oct 2016 09:05:04 -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; bh=9Oq95Rk/Txslju0fLCJDMT7C0CtUtrRtm/uaETPCsKg=; b=CFxAFqej9t2zy9j+iOpUaN9lrZ8LxcBq++8SOk0TGQxmKsoU+vNEtx4caVR0lc3EaS UqgXxXnWoAhN1z+nuq9nTR6tnwBqNvFugLzUwz2iwMQbALtANf6Exxgha3+aWXvvtKUq 4rNzDdN17GpJsMt7twZGcA8/d2A356gLH8DYk1HM76gBJIt+njBDbY20iFPrHfl5yCUM f9DmiOJ5DocCm8kC8FZvQfXBlbk4e20AC3cE1YQZ7dv69bHqPKyNzR/xYmU/QAUpmaB7 bVUH+q4zXDlJB0WudevM2kyKGLEqXW0+OfxUUVLPLhNg0G8HPvsOIQmu38RYDJLh5q5w 9Wsw== 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; bh=9Oq95Rk/Txslju0fLCJDMT7C0CtUtrRtm/uaETPCsKg=; b=fgsUEH/Y5D0bdP3ELsNPZTNyiHE543eoOux942Iig07fu/ybZrDTfxEy4pfPZXokm/ swbcyediuLXvtUPYj3pJxgclRCOwiOL1QI9966u+eNsoV9pUIDkRGK4LNTpVCra/nzaO 2hbDYdvZHH8+6R8xJRAj4/cdoI5W1UwNyzXjjJgQAFqt3KKYnEDpovB3p4Ti3fuhwNfx Fyf+6u7uamMCmj9NBLZrHw5eQidxBrUPEhm4CvArqBbqupX8dDa5AnDuM9v/09+7OC4Y vignEL4dfzeJP+mkV9R9vxEaeoVpIf27ne9fQL1x9EbIE8LtSlNM/E0JBIM53ilJAYTR gG6g== X-Gm-Message-State: AA6/9Rlw5wKWXJvUHCknboZjdPf53uWBBIpRO86uO2k8jR3aKOlAQyuGawgJSNjpbF+3MWQWLLD/N3xB4EUQdg== X-Received: by 10.36.48.74 with SMTP id q71mr21514631itq.116.1475683503275; Wed, 05 Oct 2016 09:05:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.196.214 with HTTP; Wed, 5 Oct 2016 09:05:02 -0700 (PDT) In-Reply-To: References: From: Saqib Khan Date: Wed, 5 Oct 2016 21:05:02 +0500 Message-ID: To: edk2-devel@lists.01.org X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Re: 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: Wed, 05 Oct 2016 16:05:04 -0000 Content-Type: text/plain; charset=UTF-8 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