From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::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 3486F1A1EEE for ; Wed, 5 Oct 2016 14:23:18 -0700 (PDT) Received: by mail-wm0-x232.google.com with SMTP id b201so7803061wmb.0 for ; Wed, 05 Oct 2016 14:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to:to; bh=G3VBBuJzTWZTSw/MbTfbOqCOqMlO55lS1XGxVNHrMSY=; b=WIAX2K5a2SG9dT2TA4toOU5PLVOfqL9eooK466kXseWUa+Wv35jllfSPq9J0zt7QKh pBOjO7ta7egR3Rrj685q11iI33FCAvhIPt/RmhoRFKUUlIEUmVHwYrCDrfQ/1/p89OAv ywUO/xCPcWnH6VY+uk8qR8rnqIvjIT0aJieAZY+npgTyVG7QwqI7fNSskjaVDV0tnIOd pfP3DF5UhrX0I9VARdkEU1j5KXzQSNXIpS5XNHyhKskiGMiBz8EwNw9hnOeTux5rnRad z0OTgnFlPcU0CYaJogHfizgWfgOwLI6EpeYZ9EhhDbcGntIkYs6hIIyDoXk+2l2I2ID2 Rp5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:references:in-reply-to:to; bh=G3VBBuJzTWZTSw/MbTfbOqCOqMlO55lS1XGxVNHrMSY=; b=Twhez++glmO/P0vfcuNqrxrlsJH00URdyCFc72FaJEyRCSBipcPxRilJKdL9HWLJUa 6138mCygj9Is500DRDcyjxMPyCHMmoCVRWmDYZCMlY2fJxe2zdoo8FSEMxq7kQpxzcbJ DqiZ28BnKpxV16O11xGXHTtXahv37EPR1lgAKjRWTsWXsWOhMaDHByUEHBo6ErQp2cNH UEx1/Qy4bHc9gI7bPsjEIqBebdkM8X5XebvRzvJmIkXtnWFvtHYWSGWtbAyDZfJ1fc7D urTfCmYVNspPlawtewbOdWega7A/X8U0/9zcIKoaTYfw1s0fAVaCeYg4iqfpY5GLjvXC 02QA== X-Gm-Message-State: AA6/9RltI2Gcu8Y24SVum9pZPf0CrmRGOqfronxB/MtM89+zblLnqt3ipuP6iuMA+LcOOg== X-Received: by 10.28.17.70 with SMTP id 67mr19311124wmr.73.1475702595930; Wed, 05 Oct 2016 14:23:15 -0700 (PDT) Received: from [192.168.1.101] ([119.155.30.92]) by smtp.gmail.com with ESMTPSA id y2sm399398wjx.20.2016.10.05.14.23.14 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Oct 2016 14:23:15 -0700 (PDT) From: Saqib Khan Mime-Version: 1.0 (1.0) Date: Thu, 6 Oct 2016 02:23:11 +0500 Message-Id: <02363E95-C78D-4137-93DB-FEB05A221A9B@gmail.com> References: In-Reply-To: To: edk2-devel@lists.01.org X-Mailer: iPhone Mail (14A456) X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: 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: Wed, 05 Oct 2016 21:23:18 -0000 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi all,i need urgent help regarding this issue. > On 05-Oct-2016, at 9:05 PM, Saqib Khan wrote: >=20 >=20 > I have found that it just dont return from mBmRefreshLegacyBootOption ()= ; . >=20 > have a look at code. let me know the possible cause of it ... > I need urgent help >=20 > 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 !=3D NULL) { > Print(L"Before legacy refresh \n"); > mBmRefreshLegacyBootOption (); //this method does not return=20 > Print(L"legacy refresh complete\n"); > } >=20 >> On Wed, Oct 5, 2016 at 5:51 PM, Saqib Khan wro= te: >> Hi, >>=20 >> when i import both lib in my project my EFI hangs at EfiRefreshAllBootOpt= ions, i removed LegacyBootManager and it worked fine .i need both lib as i n= eed to boot legacy from EFI, how this issue can be resolved? >>=20 >>=20 >> here is piece of inf file >>=20 >> [Packages] >> MdePkg/MdePkg.dec >> MdeModulePkg/MdeModulePkg.dec >> IntelFrameworkPkg/ >> IntelFrameworkPkg.dec >> IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec >> ShellPkg/ShellPkg.dec >>=20 >> [LibraryClasses] >> HiiLib >> DebugLib >> UefiLib >> MemoryAllocationLib >> UefiBootServicesTableLib >> UefiApplicationEntryPoint >> UefiBootManagerLib >> LegacyBootManagerLib >>=20 >>=20 >> --=20 >> Regards >> Saqib Ahmed Khanzada >=20 >=20 >=20 > --=20 > Regards > Saqib Ahmed Khanzada