From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in21.apple.com (mail-out21.apple.com [17.171.2.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 99E5F803A4 for ; Wed, 15 Mar 2017 08:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1489590799; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=aijMQ8azSfnG2WWxtMLyfdeg1N/JS0P4f2VH1b4/dQQ=; b=Dr+UuQYA7G7+QJQjIlwRmseIPjWDAOTGnIvwoScpbDeftqt8UDDzNfPsNqUcpz90 GAu5Uyh25bR9ejFoaByhlGOzrGkOBqQdPGsT6OKcCsqaTA/GPf8+JsSu3c4jQeKS DXQj6hoF9AOwvoCwkr/Cv5qSVr0hSyIO6qcRj5CElgp/UZ1HtfHGftGqjPUUOVhl WIjOGmgSyd9RYmEI0U3PFXGgC5JRT95irN4Q3LnAMA7Ohwcr4h2uTqrBaUILXfwj h1x4M1q/o5OSvS9BSHebVqzYa2WtmJIPPebA8lcujzsEb4paW/NeAO9cLzXijC/s IyDjVVxFPiQnHfexqz2bAw==; Received: from relay4.apple.com (relay4.apple.com [17.128.113.87]) by mail-in21.apple.com (Apple Secure Mail Relay) with SMTP id 85.D8.16622.E0A59C85; Wed, 15 Mar 2017 08:13:19 -0700 (PDT) X-AuditID: 11ab0215-3e5889a0000040ee-f9-58c95a0ec099 Received: from nwk-mmpp-sz11.apple.com (nwk-mmpp-sz11.apple.com [17.128.115.155]) by relay4.apple.com (Apple SCV relay) with SMTP id AF.77.29758.E0A59C85; Wed, 15 Mar 2017 08:13:18 -0700 (PDT) MIME-version: 1.0 Received: from [17.153.47.209] (unknown [17.153.47.209]) by nwk-mmpp-sz11.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0OMV00MQ33M5XR60@nwk-mmpp-sz11.apple.com>; Wed, 15 Mar 2017 08:13:18 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish In-reply-to: Date: Wed, 15 Mar 2017 08:13:17 -0700 Cc: Michael Zimmermann , Feng Tian , "edk2-devel@lists.01.org" , Star Zeng , Liming Gao Message-id: <426920F0-4266-4BB2-BF19-40715A0F1C01@apple.com> References: To: Laszlo Ersek X-Mailer: Apple Mail (2.3226) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOLMWRmVeSWpSXmKPExsUi2FAYrssfdTLCoHuuvsW6Pd/YLSbtZrdY dmwHi8WKexvYLeZOfcpqsa/X2oHNY+esu+wei/e8ZPKYdOExs8f7fVfZAliiuGxSUnMyy1KL 9O0SuDJ+b73CWvCTt+LHuf1MDYz/uLoYOTgkBEwk3h0I6mLk4hAS2Mco8XVFL1sXIydY/NDf C2C2kMAhRon2/joQm1dAUOLH5HssIL3MAvISB8/LgoSZBbQkvj9qZYGYM5FJ4tfNE8wgCWEB cYl3ZzZB2bYSzcdmgM1kE1CWWDH/AzuIzSlgJ3H3YxsTiM0ioCpxs30hM8ggZoELjBJX1k9n hlhsI7Hp0m9miA1tjBJPNk9gBUmICKhIzJ7wgAniG1mJ2b+8QGokBC6zSczf0sE+gVF4FpLD ZyEcPgvJ4QsYmVcxCucmZuboZuYZGeolFhTkpOol5+duYgTFxGom0R2M818ZHmIU4GBU4uF9 4X8yQog1say4MvcQozQHi5I4b/TiExFCAumJJanZqakFqUXxRaU5qcWHGJk4OKUaGGWOyCu2 SooukjVhNMlpFPeP8Dusf4vbaKXq2aUbv7+dZ8JeycYmfEpppVh+ZqvujNWscs5lIfVJE0t/ nz+9as0qvvx5ns/OdrCLhIbwF8rndEzqC+ec15v0572FWE/ktlN1k1wLdOPDZ1of8cpiX2At WLttDe/NAxLpPuV/Zvs42r9RvvdViaU4I9FQi7moOBEAbRyDp2oCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJIsWRmVeSWpSXmKPExsUi2FA8W5cv6mSEwduNJhbr9nxjt5i0m91i 2bEdLBYr7m1gt5g79Smrxb5eawc2j52z7rJ7LN7zkslj0oXHzB7v911lC2CJ4rJJSc3JLEst 0rdL4Mr4vfUKa8FP3oof5/YzNTD+4+pi5OSQEDCROPT3AhuILSRwiFGivb8OxOYVEJT4Mfke SxcjBwezgLzEwfOyIGFmAS2J749agcJcQOUTmSR+3TzBDJIQFhCXeHdmE5RtK9F8bAbYTDYB ZYkV8z+wg9icAnYSdz+2MYHYLAKqEjfbFzKDDGIWuMAocWX9dGaIxTYSmy79ZobY0MYo8WTz BFaQhIiAisTsCQ+YQC6SEJCVmP3LawKjwCwkt85CuHUWklsXMDKvYhQoSs1JrDTRSywoyEnV S87P3cQIDuHC8B2M/5ZZHWIU4GBU4uGd4HsyQog1say4MhcYFhzMSiK8B0OBQrwpiZVVqUX5 8UWlOanFhxirgB6YyCwlmpwPjK+8knhDExMDE2NjM2NjcxNzqggrifP+1ALaLJCeWJKanZpa kFoEs5yJg1OqgVFKrDFbZu1d/m5DZ6tT04+t012XvPNN3HJxyfcrAqoWttySz21NaHa4o226 Vtzr7l/Z+Zv3nnHZuGhBcu2e0gjVXgEZy+DYS3diNxXmW/xknfW7S3XWCTsXNv+eZnfmBNOv uic8zI7x3T6z8VJMk65ahH2mTNLbiZeyXVNTTwcUXjb+YvHHWImlOCPRUIu5qDgRAMcib2u8 AgAA Subject: Re: how to load drivers from additional FV's? 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, 15 Mar 2017 15:13:20 -0000 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII > On Mar 15, 2017, at 8:07 AM, Laszlo Ersek wrote: > > On 03/15/17 13:23, Michael Zimmermann wrote: >> I'm trying to add another FV section FVMAIN_COMPACT so I can keep >> Platform specific drivers in a separate, included fdf. >> >> I did this: >> FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 { >> SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF >> PROCESSING_REQUIRED = TRUE { >> SECTION FV_IMAGE = FVMAIN >> SECTION FV_IMAGE = FVMAINPLATFORM >> } >> } >> >> The image builds file and using uefitool I can verify that the new FV >> is inside the compressed section. >> But none of the drivers gets discovered/loaded and I get 'Protocol not >> present!!' errors. > > The FVs need to be exposed to the DXE core via FV HOBs. See > - 9.8.5 "Firmware Volume HOBs" in Volume 2 of the Platform Init 1.5 > spec, > - and more importantly, 5.7 "Firmware Volume HOB" in Volume 3 of the > same. > > You can use the BuildFvHob() function for this. > > If the firmware volume contains PEIMs (... as well), then it has to be > exposed to the PEI core too, I think. I think the > PeiServicesInstallFvInfoPpi() function can be used for that. (See 3.3 > "PEI" in Volume 3 of the PI spec.) > > ... I used the PeiFvInitialization() function in > OvmfPkg/PlatformPei/Fv.c as a "cheat sheet" for the above. > Laszlo, I think this case is an FV that is compressed and nested in another FV that is discovered. I think the issues is multiple FV Sections in an FV file are not currently supported. Thanks, Andrew Fish > Thanks > Laszlo > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel