From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in7.apple.com (mail-out7.apple.com [17.151.62.29]) (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 6349081C0D for ; Thu, 12 Jan 2017 10:57:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1484247465; 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=lqvajcz85Wx93FAGnf20tJ85gKI4cLjzjyl0zMTuMs0=; b=ZcptkKkd1bnkIT1u1ppiKmsjknQIqMklV9VGQwLo/INU4nx/i651FYF57n3k1R5L Ni2WEDujlMsioxhrdYsxl1VNhKYI6zcIr29oU/GVtgcEFqvnok3b4YV/A2q/DXFb Id5F+/sW2Bj2+mw02uCbRwagRLF0KqU2EO0saV6wANIMKooQvc6P1z7J67krkTAk lRInFsAFVuVKhwqFQ9j9HOOvrCx7xYRy/CKvP0epc2nv2JuUW3TkAAtmlgPvBmRv DZvnuepFVzGq0jaZ24oBBcqiHP44GpMLGQg82oA3VsT4rQpb3LlU67eHjoEod99v A1MABRY80vmH9o4RIfwUYA==; Received: from relay2.apple.com (relay2.apple.com [17.128.113.67]) by mail-in7.apple.com (Apple Secure Mail Relay) with SMTP id C7.59.05063.9A1D7785; Thu, 12 Jan 2017 10:57:45 -0800 (PST) X-AuditID: 11973e16-99e949a0000013c7-0f-5877d1a9418a Received: from nwk-mmpp-sz11.apple.com (nwk-mmpp-sz11.apple.com [17.128.115.155]) by relay2.apple.com (Apple SCV relay) with SMTP id A4.34.09148.9A1D7785; Thu, 12 Jan 2017 10:57:45 -0800 (PST) MIME-version: 1.0 Received: from [17.153.57.207] (unknown [17.153.57.207]) by nwk-mmpp-sz11.apple.com (Oracle Communications Messaging Server 8.0.1.1.0 64bit (built Jun 15 2016)) with ESMTPSA id <0OJO00L7OKO87F30@nwk-mmpp-sz11.apple.com>; Thu, 12 Jan 2017 10:57:45 -0800 (PST) Sender: afish@apple.com From: Andrew Fish In-reply-to: <4A89E2EF3DFEDB4C8BFDE51014F606A14D6CE062@shsmsx102.ccr.corp.intel.com> Date: Thu, 12 Jan 2017 10:57:44 -0800 Cc: edk2-devel Message-id: <57F9E953-2F37-4487-BFAC-B2865AF784AB@apple.com> References: <4A89E2EF3DFEDB4C8BFDE51014F606A14D6CE062@shsmsx102.ccr.corp.intel.com> To: "Gao, Liming" X-Mailer: Apple Mail (2.3226) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrBLMWRmVeSWpSXmKPExsUi2FDorLvyYnmEwb7JYhZ7Dh1ltlhxbwO7 A5PH4j0vmTy6Z/9jCWCK4rJJSc3JLEst0rdL4Mq42j2JqaCNv2LlvNtsDYx9PF2MnBwSAiYS vw9eYQKxhQT2Mkqs6jOBie/c2svaxcgFFD/EKHHldhtYEa+AoMSPyfdYuhg5OJgF5CUOnpcF CTMLaEl8f9TKAlHfxSQxfcFjRpCEsIC4xLszm5ghbF2Jb2vfsIDYbALKEivmf2AHsTkFwiR+ TJzBDDKTRUBV4vsNS4iZGhJfV29nh1hrI9HV+pQR4s42Ron+q7EgtghQzcN7v8FaJQRkJWb/ 8gI5QUJgC5vEmcPzGScwCs9CcvUshKtnIbl6ASPzKkah3MTMHN3MPHO9xIKCnFS95PzcTYyg oJ5uJ7aD8eEqq0OMAhyMSjy8AvZlEUKsiWXFlbmHGKU5WJTEeUtWA4UE0hNLUrNTUwtSi+KL SnNSiw8xMnFwSjUwJu7y31lxZoGSznRblWez57beb23o9X1lKMDfv3D19FPrd30qidyy7WHo 3NhFRhE3ONcvSUpe/S7ylOqpqXb1q5aa2C1mvPDZaIl7wPO3i0ue3QoVXfKjyFYt0YPhs+3F 2F2fjpirhnGf5rjb6xiUXdMb9/Ezq8730GWm9+eskmI/GdU7a3d2ihJLcUaioRZzUXEiAKtI T69LAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpgkeLIzCtJLcpLzFFi42IRbCierbvyYnmEwbEePos9h44yW6y4t4Hd gclj8Z6XTB7ds/+xBDBFcdmkpOZklqUW6dslcGVc7Z7EVNDGX7Fy3m22BsY+ni5GTg4JAROJ nVt7WSFsMYkL99azdTFycQgJHGKUuHK7jQkkwSsgKPFj8j2WLkYODmYBeYmD52VBwswCWhLf H7WyQNR3MUlMX/CYESQhLCAu8e7MJmYIW1fi29o3LCA2m4CyxIr5H9hBbE6BMIkfE2cwg8xk EVCV+H7DEmKmhsTX1dvZIdbaSHS1PgUbKSTQxijRfzUWxBYBqnl47zdYq4SArMTsX14TGAVn ITl0FsKhs5AcuoCReRWjQFFqTmKlkV5iQUFOql5yfu4mRnB4FjrvYDy2zOoQowAHoxIPr4B9 WYQQa2JZcWUuMCQ4mJVEeGedL48Q4k1JrKxKLcqPLyrNSS0+xJgMdP1EZinR5Hxg7OSVxBua mBiYGBubGRubm5iTJqwkzusvmRMhJJCeWJKanZpakFoEs4WJg1OqgfGwahJzMh+DQ/s5FWeF pllL8vk5+flNHumWZN++1B2ndNNq3uNr1x6f3tEk09olZLW59w3DxJY43f/My/XvT7W6o7DI uvL3rp3M8tkLVjCedr7E+9Bz5xu1bmfWDPHfc0zm/K98KvNyR3+P8sWOg+GfVn3x5bGSfdB8 rdZs/6T9uhwGXeHLHimxFGckGmoxFxUnAgBZ0p/5kwIAAA== Subject: Re: FDF file syntax question? 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: Thu, 12 Jan 2017 18:57:45 -0000 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII > On Jan 12, 2017, at 6:55 AM, Gao, Liming wrote: > > Andrew: > So, this requests not to set FV size same to FD region size when this FV is placed into FD region. I think one way to do it. In [FD] section, FILE statement is used to point to the generated XXX.Fv image. And, [FV] section includes this FV block size and base address, but no block number. But, I suggest you submit one feature request in Bugzilla for BaseTools. We can enhance BaseTools to support this usage model. > Liming, Thanks for the ideas about FDF syntax. I actually had another idea. I was thinking of storing "actual size" of the FV (excluding all the pad bytes at the end of the FV) in the FV extended header. That way no information is lost. I'll let you know what I come up with. Thanks, Andrew Fish > Thanks > Liming > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Andrew Fish > Sent: Wednesday, January 11, 2017 5:15 PM > To: edk2-devel > Subject: [edk2] FDF file syntax question? > > Is there a way to make the FV defined in the FD section be only big enough to contain the data? The remaining area could be 0xFF (erase value). If the FV is read only there is no point reading the extra data from the FLASH device if all the bytes are 0xFF. > > For example if we make an FV to be compressed the [options] section in the Build output only has the block size, but if it comes from the FD section then you get a base address and block count. > > Thanks, > > Andrew Fish > > > _______________________________________________ > 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