From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in4.apple.com (mail-out4.apple.com [17.151.62.26]) (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 01874803AC for ; Wed, 15 Mar 2017 08:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1489592659; 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=UiEBtx+/u2ornYwrOrHdSE/b5IIzyAkG8kvaRgEHuew=; b=pSd0Q2cuvTHlKiWeEPDtfHqiUql+WHh5wst8oz9LKr30t7U1lsK8EIgkY+Qu5vhN vGnNGuTD48ZtuBw6uSrRYR/mFETR8iHjMVXN7tqhDPxbp1fdI5DxhTGIxBEd+jJ1 2077q2rkcJhy999svK/tdV54F+5pXZrZPs/ERBv9fljq81l+qJxnBDxVyb+KPnrf qUeocHgl7Os4lq7wl068Ngce5qL76tZ0m6Nv8wKbu6UkNiB38PIRyYo/F8y3/h7k ES0hip+XTrMayA6UKo0R5WHnhnpZDBPWi6PU/PZqCA3LuAEteeLpthe+6wW5LA+f 1TocSf+cUUiRQsKJddQ08w==; Received: from relay5.apple.com (relay5.apple.com [17.128.113.88]) by mail-in4.apple.com (Apple Secure Mail Relay) with SMTP id D1.F1.24168.35169C85; Wed, 15 Mar 2017 08:44:19 -0700 (PDT) X-AuditID: 11973e12-105fb70000005e68-e0-58c96153633a Received: from nwk-mmpp-sz09.apple.com (nwk-mmpp-sz09.apple.com [17.128.115.80]) by relay5.apple.com (Apple SCV relay) with SMTP id 14.55.06491.25169C85; Wed, 15 Mar 2017 08:44:19 -0700 (PDT) MIME-version: 1.0 Received: from [17.153.47.209] (unknown [17.153.47.209]) by nwk-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0OMV00BYC51T6M50@nwk-mmpp-sz09.apple.com>; Wed, 15 Mar 2017 08:44:18 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish Message-id: Date: Wed, 15 Mar 2017 08:44:17 -0700 In-reply-to: Cc: Feng Tian , Liming Gao , Laszlo Ersek , "edk2-devel@lists.01.org" , Star Zeng To: Michael Zimmermann References: <426920F0-4266-4BB2-BF19-40715A0F1C01@apple.com> X-Mailer: Apple Mail (2.3226) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrALMWRmVeSWpSXmKPExsUi2FAYoRuceDLCYN49FYt1e76xW0zazW6x 7NgOFosV9zawW8yd+pTVYl+vtQObx85Zd9k9Fu95yeQx6cJjZo/3+66yBbBEcdmkpOZklqUW 6dslcGU8P9DOUtBVV/H10RG2Bsaz2V2MnBwSAiYSVzZtZu1i5OIQEtjLKLGo6z8rTGL15/Ps EImDjBJn3/azgyR4BQQlfky+xwJiMwuESez+28oEYgsJTGSS2PrcAcQWFhCXeHdmEzOIzSag LLFi/geoXhuJqSu6mSBqbCWaj81gA7FZBFQldk6dCmZzCgRLnH/wgAlkMbPAYUaJNRuPgDWI CBhKPG1+zARxUQOTxN91Wxi7GDmATpWVmP3LCyQuIfCZTaL1yiXWCYxCs5AcOwvJsRC2lsT3 R61AcQ4gW17i4HlZiLCmxLN7n9ghbG2JJ+8usC5gZFvFKJSbmJmjm5lnopdYUJCTqpecn7uJ ERRF0+2EdjCeWmV1iFGAg1GJh/eF/8kIIdbEsuLK3EOM0hwsSuK8/ItPRAgJpCeWpGanphak FsUXleakFh9iZOLglGpgFFqz9NZ/2/fsXLKXJA9n+mVFeYpzHuV5Yq8gEWb0cenT31prJ8o3 sidfiZUW9+b++Orq3Bt3tTcL1HU5PN/28UvQnS3hTauSL/C/dw2xZt5dP/tY6q25HVaMuQGV 3eIKTpWf/r7/PmGbp8yT2F1/dm6wufsgeEFP8msfF65ytWkPX21+G2B9SYmlOCPRUIu5qDgR AOhv29qDAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFIsWRmVeSWpSXmKPExsUi2FAcoBuceDLCYMtRXot1e76xW0zazW6x 7NgOFosV9zawW8yd+pTVYl+vtQObx85Zd9k9Fu95yeQx6cJjZo/3+66yBbBEcdmkpOZklqUW 6dslcGU8P9DOUtBVV/H10RG2Bsaz2V2MnBwSAiYSqz+fZ+9i5OIQEjjIKHH2bT87SIJXQFDi x+R7LCA2s0CYxO6/rUwgtpDARCaJrc8dQGxhAXGJd2c2MYPYbALKEivmf4DqtZGYuqKbCaLG VqL52Aw2EJtFQFVi59SpYDanQLDE+QcPmEAWMwscZpRYs/EIWIOIgKHE0+bHTBAXNTBJ/F23 hbGLkQPoVFmJ2b+8JjDyz0Jy3ywk90HYWhLfH7UCxTmAbHmJg+dlIcKaEs/ufWKHsLUlnry7 wLqAkW0Vo0BRak5ipaleYkFBTqpecn7uJkZw0BdG7GD8v8zqEKMAB6MSD+8E35MRQqyJZcWV uYcYJTiYlUR4OeKAQrwpiZVVqUX58UWlOanFhxgnMgJ9OZFZSjQ5HxiTeSXxhiYmBibGxmbG xuYm5rQUVhLn/aUFdJFAemJJanZqakFqEcxRTBycUg2MZx5rz0x9uky+QeOv+Pd3354LL5x4 /NDxO88+f9WZcsJkvh+jVoQoq4Lqa5Zdj5SVGgtVT+T7HbRkaJ8SUsaytD6y/sa/qTxvP5ar 7t8TuMpilxvj3Xk9/S+ef1yXIN42yc7jHsdulrMFr7J+C048nCJjs8qY0V3ao+zjHPGZjfdn FRfeME49qcRSnJFoqMVcVJwIAJTx0SDtAgAA X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:44:20 -0000 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT > On Mar 15, 2017, at 8:28 AM, Michael Zimmermann wrote: > > Laszlo: As Andrew said, the problem is nesting FV's. I've also tried > different ways and depths of nesting FV's in the main FV, but none of > them worked. Also, I'm using PrePi, > > Andrew: Yea that seems to be the problem, but how would I access other > sections? ReadSection doesn't seem to take any section id or current > section pointer. > Michael, The 4th arg that is hard coded to zero is the SectionInstance. https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Protocol/FirmwareVolume2.h#L409 @param SectionInstance Indicates which instance of sections with a type of SectionType to return. SectionType in conjunction with SectionInstance indicates which section to return. SectionInstance is zero based. Thanks, Andrew Fish > Thanks > Michael > > On Wed, Mar 15, 2017 at 4:13 PM, Andrew Fish wrote: >> >>> 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 >> > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel