From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in23.apple.com (mail-out23.apple.com [17.171.2.33]) (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 7B04C803A2 for ; Wed, 15 Mar 2017 08:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1489590735; 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=I8CnZHyyyygMB6edK66+CwAbcnlrUBqmxQ0L9ns+tW0=; b=3yrM8pQiaqlaiGKrNIe+bT57ZBu+OTqiUPTVde7FcDYWEa39cGqnr+zElSuOZIGN gngZa1mh/gZlYZkC7Xtqu5Mtm2yM+K/PuXpImm3dQbuXnfbEiYeHsJOvQhNDJ4c0 PZsPVdyBi4Zqoeuq35sfLvgUPlb/NP9Yr3sD9X90GR6ryz6ENEvm9E5KS7zJLu0q MMWAZLFDVnsWmV2h/hfK4SN2ZHWAJe35MUgzzIdLgmHk6G0JCeQ4+YBGpPO25swf 23x8jvZplrtyj7i/GvbjKyBH88vIgSGGt0jq9X8X137NwD3S2GkdUC6fUcKXZvT0 gG9VcsA+CumqT6F742dk5A==; Received: from relay2.apple.com (relay2.apple.com [17.128.113.67]) by mail-in23.apple.com (Apple Secure Mail Relay) with SMTP id 8D.53.23237.FC959C85; Wed, 15 Mar 2017 08:12:15 -0700 (PDT) X-AuditID: 11ab0217-79d8f9a000005ac5-bf-58c959cfe262 Received: from nwk-mmpp-sz13.apple.com (nwk-mmpp-sz13.apple.com [17.128.115.216]) by relay2.apple.com (Apple SCV relay) with SMTP id 71.9A.25530.EC959C85; Wed, 15 Mar 2017 08:12:14 -0700 (PDT) MIME-version: 1.0 Received: from [17.153.47.209] (unknown [17.153.47.209]) by nwk-mmpp-sz13.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0OMV00DNQ3KD8230@nwk-mmpp-sz13.apple.com>; Wed, 15 Mar 2017 08:12:14 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish Message-id: <0E70E103-15A9-4F36-97A6-6D2D387A7963@apple.com> Date: Wed, 15 Mar 2017 08:12:13 -0700 In-reply-to: Cc: "edk2-devel@lists.01.org" , Yonghong Zhu , Liming Gao , Feng Tian , Star Zeng To: Michael Zimmermann References: X-Mailer: Apple Mail (2.3226) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDLMWRmVeSWpSXmKPExsUi2FDorHs+8mSEwZ7FGhbr9nxjt5i0m91i xb0N7BZzpz5ltdjXa22xvyPNgc1j56y77B6L97xk8ph04TFzAHMUl01Kak5mWWqRvl0CV8au BXEFq7cwVjzY8ZWxgfHFHMYuRk4OCQETiW8HJrB1MXJxCAnsY5SY8WItG0xiXs8jqMQhRonb H+cwgyR4BQQlfky+xwJiMwuESRy71QdVNJFJYtq5f0wgCWEBcYl3ZzaBNbAJKEusmP+BHaLZ RmJ+33ZmiBo7iafnroHVswioSvw9PBtsKKdAsMTeiyvYQYYyCxxjlNjwfC/YrSIChhJPmx+D NQgJBEjsnD6JtYuRA+hUWYnZv7xA6iUEXrNJbJv8k20Co9AsJMfOQnIshK0l8f1RK1CcA8iW lzh4XhYirCnx7N4ndghbW+LJuwusCxjZVjEK5yZm5uhm5hkZ6yUWFOSk6iXn525iBEXPaibx HYyfXxseYhTgYFTi4Z3gezJCiDWxrLgy9xCjNAeLkjhv1OITEUIC6YklqdmpqQWpRfFFpTmp xYcYmTg4pRoYeQ7nmSUbzXdeu8Dq/j/OS4kd4Y9ywzUc2CYnHLU6H/7qvd8fBye9L/aq4WuN 0xZNm3PDQppDLGd1kuP7ub+Psu35GT1Jao1D2Ox66Xe3Lgo3/Pc2ny74aWKB8fPzXJ16zSc2 ZbkZT7vVUHv0u3z6g8P89mLTqyrfx2Ru4d96bN3SmMKX3UsOKbEUZyQaajEXFScCAE1pDiF/ AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKIsWRmVeSWpSXmKPExsUi2FB8Q/dc5MkIgy+frCzW7fnGbjFpN7vF insb2C3mTn3KarGv19pif0eaA5vHzll32T0W73nJ5DHpwmPmAOYoLpuU1JzMstQifbsEroxd C+IKVm9hrHiw4ytjA+OLOYxdjJwcEgImEvN6HrF1MXJxCAkcYpS4/XEOM0iCV0BQ4sfkeywg NrNAmMSxW31QRROZJKad+8cEkhAWEJd4d2YTWAObgLLEivkf2CGabSTm921nhqixk3h67hpY PYuAqsTfw7PBhnIKBEvsvbiCHWQos8AxRokNz/eCnSQiYCjxtPkxWIOQQIDEzumTWLsYOYBO lZWY/ctrAiP/LCT3zUJyH4StJfH9UStQnAPIlpc4eF4WIqwp8ezeJ3YIW1viybsLrAsY2VYx ChSl5iRWGuklFhTkpOol5+duYgSHeqHzDsZjy6wOMQpwMCrx8E7wPRkhxJpYVlyZCwwkDmYl Ed6DoUAh3pTEyqrUovz4otKc1OJDjBMZgZ6cyCwlmpwPjMS8knhDExMDE2NjM2NjcxNzWgor ifP+0gK6SCA9sSQ1OzW1ILUI5igmDk6pBkaJ51mKKn/nSYfvyqzoaGDd/jrKrFKLoajRWUfm /UyF3Wln/z+8wLypxabM7CoLd8BZf7UoP/mM+gOP7k6/r/Fxf+hV745Dp0ze/E3Znlv9IdX/ 1MYKFoXXNyITe1f1b7vpEMwWtlDsF78Er866YyddDxc+kv55Jzix96aWpnXCv0laGy7sTVJi Kc5INNRiLipOBACPXV/96AIAAA== 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:12:16 -0000 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT > On Mar 15, 2017, at 5:23 AM, 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. > Michael, This looks like an implementation restriction. Please file a bug. CoreProcessFvImageFile() will only grab the 1st instance (hard coded to 0) of EFI_SECTION_FIRMWARE_VOLUME_IMAGE and your example has 2 sections. Maybe the CoreProcessFvImageFile() should loop on instance. I assume the device path will be OK, but some one should check on that. https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c#L975 // // Read the first (and only the first) firmware volume section // SectionType = EFI_SECTION_FIRMWARE_VOLUME_IMAGE; FvHeader = NULL; FvAlignment = 0; Buffer = NULL; BufferSize = 0; AlignedBuffer = NULL; Status = Fv->ReadSection ( Fv, DriverName, SectionType, 0, &Buffer, &BufferSize, &AuthenticationStatus ); Thanks, Andrew Fish > Thanks > Michael > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel