From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by mx.groups.io with SMTP id smtpd.web11.14216.1681220809520683029 for ; Tue, 11 Apr 2023 06:46:49 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@bsdio.com header.s=fm1 header.b=gK9DfWik; spf=pass (domain: bsdio.com, ip: 64.147.123.24, mailfrom: rebecca@bsdio.com) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 93E113200902; Tue, 11 Apr 2023 09:46:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 11 Apr 2023 09:46:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdio.com; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1681220808; x= 1681307208; bh=57FShSr5WYORzdtlb/OJ/HyXBaB0kbzYZIgJyK9vntc=; b=g K9DfWiklZD2Iba1UOyJ58La/NFwklDdJyTs5vlywKOMw4rZc44SqM65mcKh2wh3t runsUcUCnhsaZCMSVenoEIvc4GMET7cYfUZJeC/Yu0Irc+QYdNmju9jBAZfVpqFl EW44BM3bWPCLIqc3AttgDuTjOzvbEtn+18kzzHQ6NgH4eztclSD/ReExqtkUuDfd 0JnvhuKP4BDc+ywVZTkv/LS0m12jnIiS2iBoJM1Kl22oumJYbLUSfs3FAGL9tJ56 pPjU/XGRVMXahSLLywVxcUX/00d8mPfhRS0bU7RE8JkizuJqmhdMc2p4bTT+JYmU 8WghuKkyr8sV1kGO0H5pw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1681220808; x= 1681307208; bh=57FShSr5WYORzdtlb/OJ/HyXBaB0kbzYZIgJyK9vntc=; b=V pObw2nTrVqCDiBVfcAk3avEoKzCE4IfLQa4a5piBEc2sCHY3R5rLthAc392AU80B sjnd5dGA9egheDfC8OOCLHAEnH2FCMrYbcMJM64Of/gywHFDXGo8d+bP3FHUa8GI P/rYTHHZeYAMjMP/dLlUudLUuMVLEyux5W4x0TQGKFS8KdBA1u+RYykfz5V/qxey D0KNTfwq8r5DqusXw/Zmsr1xC07QhO1OJS2foMwh+zbuhS6HEPgy1Nl5TBc+O9dr E3otff0jpmEz4/sVQvpglxYNpRhjtvGRYVBmChiKygSiKsHYaQ31M4A651S9Wdq8 Dzz1wuHUa3mkpOYmu8V7Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdekgedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheptfgvsggv tggtrgcuvehrrghnuceorhgvsggvtggtrgessghsughiohdrtghomheqnecuggftrfgrth htvghrnhepiedtfeejgffgveefleelieehteeuvdejvdejffehkedtgefhudevffehffek veejnecuffhomhgrihhnpehhthhtphhssghoohhtrdhithenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrvggsvggttggrsegsshguihhordgt ohhm X-ME-Proxy: Feedback-ID: i5b994698:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Apr 2023 09:46:47 -0400 (EDT) From: "Rebecca Cran" To: devel@edk2.groups.io, Ard Biesheuvel , Thomas Abraham , Sami Mujawar , Leif Lindholm , Michael D Kinney Cc: Rebecca Cran Subject: [PATCH edk2-platforms 1/2] Platform/ARM/JunoPkg: Bump the FV size to 2MB Date: Tue, 11 Apr 2023 07:46:42 -0600 Message-Id: <20230411134643.116380-2-rebecca@bsdio.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230411134643.116380-1-rebecca@bsdio.com> References: <20230411134643.116380-1-rebecca@bsdio.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Increase the FV size from 996KB to 2MB. This allows more features to be accommodated in the firmware image, such as HTTPS boot. It also allows a NOOPT build to be added, which is useful for source-level debugging. Add a comment explaining that the size chosen doesn't reflect the actual size of the Flash Device but is instead selected to reduce the amount of time needed to copy the image to the target. Update the BlockSize and NumBlocks to reflect the 256KB block size of the main area on the Juno R2. Signed-off-by: Rebecca Cran --- Platform/ARM/JunoPkg/ArmJuno.fdf | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Platform/ARM/JunoPkg/ArmJuno.fdf b/Platform/ARM/JunoPkg/ArmJuno.fdf index 836d3cde8781..0c5a50e968e1 100644 --- a/Platform/ARM/JunoPkg/ArmJuno.fdf +++ b/Platform/ARM/JunoPkg/ArmJuno.fdf @@ -18,14 +18,21 @@ # ################################################################################ +# The Size value is rather arbitrary, and doesn't reflect the actual size of the FLASH Device, +# but is instead chosen to accommodate a normal build while reducing the amount of time required +# to copy the image to the target. +# +# Juno R2 has a 64MB NOR flash split into 2 areas: the main area is 65280KB (0x3FC0000) with +# a 256KB block size. + [FD.BL33_AP_UEFI] BaseAddress = 0xE0000000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in NOR Flash. -Size = 0x000F9000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device +Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device ErasePolarity = 1 # This one is tricky, it must be: BlockSize * NumBlocks = Size -BlockSize = 0x00001000 -NumBlocks = 0xF9 +BlockSize = 0x00040000 +NumBlocks = 0x0008 ################################################################################ # @@ -43,7 +50,7 @@ [FD.BL33_AP_UEFI] # ################################################################################ -0x00000000|0x000F9000 +0x00000000|0x00200000 gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize FV = FVMAIN_COMPACT -- 2.34.1