From nobody Wed Dec 25 01:04:38 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1512144731109168.87590859566603; Fri, 1 Dec 2017 08:12:11 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 7DBAA2034A785; Fri, 1 Dec 2017 08:07:41 -0800 (PST) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0045.outbound.protection.outlook.com [104.47.34.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EE50C22183C8D for ; Fri, 1 Dec 2017 08:07:37 -0800 (PST) Received: from DM5PR03CA0053.namprd03.prod.outlook.com (10.174.189.170) by MWHPR03MB2704.namprd03.prod.outlook.com (10.168.207.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Fri, 1 Dec 2017 16:12:02 +0000 Received: from BN1AFFO11FD011.protection.gbl (2a01:111:f400:7c10::166) by DM5PR03CA0053.outlook.office365.com (2603:10b6:4:3b::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.282.5 via Frontend Transport; Fri, 1 Dec 2017 16:12:02 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD011.mail.protection.outlook.com (10.58.52.71) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.239.4 via Frontend Transport; Fri, 1 Dec 2017 16:12:02 +0000 Received: from uefi-OptiPlex-790.ap.freescale.net ([10.232.132.56]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vB1GBiul003880; Fri, 1 Dec 2017 09:11:57 -0700 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.34.45; helo=nam01-by2-obe.outbound.protection.outlook.com; envelope-from=vabhav.sharma@nxp.com; receiver=edk2-devel@lists.01.org Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; From: Vabhav To: , , , Date: Fri, 1 Dec 2017 09:40:06 +0530 Message-ID: <1512101406-11567-5-git-send-email-vabhav.sharma@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1512101406-11567-1-git-send-email-vabhav.sharma@nxp.com> References: <1512101406-11567-1-git-send-email-vabhav.sharma@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131566183223113358; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39860400002)(376002)(39380400002)(346002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(104016004)(53376002)(106466001)(105606002)(6666003)(966005)(81156014)(16799955002)(81166006)(498600001)(189998001)(305945005)(2950100002)(8676002)(6306002)(53936002)(8656006)(356003)(33646002)(36756003)(48376002)(50466002)(110136005)(114624004)(51416003)(8936002)(86362001)(54906003)(77096006)(15188155005)(575784001)(50226002)(85426001)(2201001)(316002)(47776003)(4326008)(16586007)(2906002)(97736004)(5660300001)(76176011)(68736007)(142933001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2704; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD011; 1:pmND40DmfFS5PAUdI+UIlP1eF+Au6VCqe4ohYn6Tf52PZZ/8lAFMbiq+5Z6u1CjsG+1Uo74Z2ibORLcVZglUHfl/3lPNpGE3XKtcM8OqhMbNiEfGsmTehVjp84NIpZDx MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: a6999d4e-8c40-4800-552f-08d538d641ec X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603286); SRVR:MWHPR03MB2704; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 3:T02b9MmBiIlf9vEW2ewqlB6S74w9KegfRBJ5r03zcbdj7hG3BqyDlrRSFWPTJg3xm66q53q8NNP7rtvZTjwzYofdxh8nVQLbGAA1LtPqg5MSfebbpYzL2qGuanz4DMQ9NP4ixZtw8whHyKKuelCA91wanPdidbCzzsA21Opqz+jVOi6pAW5ELmO9n73cImmHDanPx8zOw35LjPPyTWMbXccPLMgCCP3uqjKYxWc0HioV5uIn+s1Bk3IgQiXLvChOCF+jisVvCoYH0v6E5sXL00F0RgVFb0oiTK2Bb2Adwq4QztY6ngoLcKg+ajedObNNcRhcw38guV4cWR+oPVIe9qxDvn9Vk6M1hLFIIavbR3w=; 25:olzVBU4sb7Uw18xtuXm5vusLoVsLmhzWf0YCDoFmpjAglTDQ/2CHY62ztXfLirhfFHss4I44Rg8320feCk1AkBOCYtZEIyEd6cX3YFKC5JmI7DN45iTtAapOJQQ6jpkuIr4imNp0rtWe0P9FwxaIWDbEcgzkC3eV4edmng5z+uTX8EwBOPjZhzJwDgvXJ+i/0r022zDstX4Jy7vPLv75krKRMxnQUayI4PcOkiJNvhyoNYEiy3tC0QCptJHEgIzj5Leah0FXMHFhc8QCltdr96IOnOu/xNqtatitibERIRM7n64NtGOIjToxQPI6zKjSywNr5zKM/d2e9vGXJNmZyA== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR03MB2704: X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 31:FiJNFlYwcQ2QUTIBU/3SoxQnjRLqxGQ/upC2ku0OmfoAHd+BqpqsdI9LJf8lUbUFH2tVDrBqTGABn/AzMx+Qze8JOrgl9Xdw1ME8RCZv2HTk31b8QQ9y11+f6w8fEn7z+TwtacDH0zPKIACMWdEf7rc7LJW8nk5LY0smg/SS2A4wXND+zMqxBpLcIUe5CGsjtboF8aR3aLMouLSWv/5fxMjs03C6gYMRSGaZ7qPCIEw=; 4:n4SkEEjf0HO3b0h5xi9SeMae19eiZLew6zm1qc8A3rIJ1GucruwZ2AKJv0zWFgiVYWWfC64YJ9ufqMl3x+EQeSeHanKrO2TQiUgZ7WP7otnDufkC4G0dCIUdKvHxk+zpGiSPQHiOCtE9JGI4yOi/V2zebk/AdYKVOSGgueZmpGPONAgiYRlgiXoA3JbeCl4X5INmzUhQjEbyOutv0sa2sVOGwqIdRLCT2o7Y9TcUi7jLt7lHSXBmCIDXNVDqzC+9NFce6ieaffAEZOOyfF0+wIFLzZC5BpKsmfgfCyvBD6uJrL28s/O0qmkoxtxf95RL X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3231022)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123556025)(20161123563025)(20161123561025)(20161123559100)(20161123565025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(201708071742011); SRVR:MWHPR03MB2704; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:MWHPR03MB2704; X-Forefront-PRVS: 05087F0C24 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2704; 23:dmNT/esjhcFXbdGyb+k0sps+2k+tt82RPpxsIWMRO?= =?us-ascii?Q?8AUphSkAhsEy+1OPNdx3f42ntFCKlRgaCYu8kkdTRO2pFUn3s9W4zjdS26y7?= =?us-ascii?Q?WRa8h34unDtoZcK2GwihtWQFXQSKRQJHzNWFZXknuthXEOqla5yV2YcztjVi?= =?us-ascii?Q?KPddivNY724bEgLMrqmiqGHvpWnd+WDkra8gwKBgQjgXtX5O/RgfeecOtS3Z?= =?us-ascii?Q?R1iRAjT3TZH89YsCk8uM6L7rwT02qC925+tbC7mAAWkT72Hf+BEwrMYfOs/I?= =?us-ascii?Q?z2O3/foEiuZ6ixqMfW7owXb52ePZd2haDFB0uSq8qrgV+h7/nhsFnlOyPYRp?= =?us-ascii?Q?dNJQ0z6Xy4GPOlcp7gHQ0WX1hqJctWQJ0eVieeCknXuTCQyexZdvg7RNHdSK?= =?us-ascii?Q?I+DV/rC3U2UPR/152O3Hkm+ACU9Bg7ESTXpjWPt0kj1wJ5FLFrsjJAW6bsF5?= =?us-ascii?Q?GKqQflChEwk7sq05x0TTgUNG4+X5mpc5hMiw/0WOkLgAU6pPCxYAm8fHkc3F?= =?us-ascii?Q?d0EdM9H9hmPrEyOTdRfzc9bpyehXZp4y+YT8T+k6SKrDxfKbftVo6DHfngWq?= =?us-ascii?Q?zK+u6l9NpAMQ2+Tf2TjnhG0ku+VkAzMGoXW+lnEvGzV0o1rYg9JQOGL83Ib9?= =?us-ascii?Q?v+qPy2L0k4qLJgmoV0HMnroqF4brYlzsZ6ILmE3+fUopYdEBLWB/ZCchzvES?= =?us-ascii?Q?TGI4FED2AUOTNyNZlQxYBA9pN1LzBa4XcQ703mtxHsKvCr0qEWd5srAZokMm?= =?us-ascii?Q?KYb20CoyRJVV8dNo1O0nV1mST4baAAfwwsgQM8hOcZZH5vrcXAbCbk4BN4g0?= =?us-ascii?Q?cpnazS0otGx7Pl5Wd2Gzbr7zBZ4f4LptSRjTvfPdWPWIndRRKy0cKUMgrF8d?= =?us-ascii?Q?/Fs2sGNzsNYxvTd0EVnvV2dGOyAm962QgKEC878oQ/tSMpn0p/1r8TjEu06T?= =?us-ascii?Q?t1O+oWLe3SFeyqzlgs4qU0BStffQPs7R0x0lL4HOgPeH3hUlSh3Gg7DSuVtz?= =?us-ascii?Q?T/5iweokKwMGhkTtP1PWeNebI5Q5XCyryYH+R4AZV+bEtVlD806dKOmgF0P1?= =?us-ascii?Q?EMqZ3eF6XS/CcuuYjItj/BGAqeH9/WkKhcWBrA+l61gmgqiyJvbuIORboHyc?= =?us-ascii?Q?zfUUvezfNfT6/WF0KyBgUsLwnzhJ7lBossBaBh598o0Y7YgdmKr7gRgNfS34?= =?us-ascii?Q?ZSSQouF8oD8onNbx9Vy5CB15gLF5NEe2CoR0Y9XDRoH9MaZEhrX4rTvj6Pai?= =?us-ascii?Q?J6wNn81A7W9I6FOLsS+SkgbfsNU7nNh/NdzYs9cwBVHpW0yNQ8ulwH5HI7q5?= =?us-ascii?Q?0xAq66viSX8Xl6MV/U4Nq2wFYg2Xi3OICO9XphA6kMu?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 6:LXg++XESIOnDDlC2a93J+u/GZxM4uPy92N1X1wLViYWXtIlqCz2G10WLON7OKDy9l0twFEuCqzJhCKA5QjRJ07+LtzMqSmnON+muWvIlvBUmL/mpE0ng3pqU/9yphu8+JNQIAVGYop+arIW9bNhUJ5/JwZHlXoN5KiFkJiXBrQJXP6KctT+tLVbJaifScfzaWxKMk+9QSRrg+EA2LeaiG4GGDmo+oTBY7XcVY/4IQWPh7x/astYoQkQqZkCHrvkHQV4dlQZC/Ow+/FS19Ef0WMRvNiQls6KTrS2Yujzj0kHLYw0Bdea2dJvjq26trMLcB6Gm2nYQGX5aLV8v0RT9bl5ZIcpjQ6uiOeUIicRrO1k=; 5:MYP1P2blnyOAbEczQ1Mjrp+ayeQlZWXWkQ8BWhGs3KYPtoV0hv3no+C27H3zV9VnjQBNEEhMvAwDuH9W8gkE6HtC5T3ngsTaivWwT0ntuC3LzpPEG+ckHpvV5HAkA3BprEOERiL5Z1inZqZbWgcSCHJ4L9eVGkdzqBe2mkkReI4=; 24:NXOaheBPf+esddsI8D0h1JsBgbsQVFINJxRTKvSqJp9njR9Ec5E+VwAZNtuDHeD8zGeKlpxiB+kjyPkrSqd1/Ts0pUyrTa/07d923AusdAc=; 7:Yt1JyoqFDE3O3iQLHoJF0sojmTeg3w8/N00mNPNglD/65nAs3SUXMQ2/lQyc465vc75SUqUXuWS6J/CufgYezer4VywjJnKado0E8Wctec9EETV1udsdWCRV6HDAmKtUCUtud1ltxIaUjJZbEVj8unrxOfFC8Yi/E3rvgaKENCNYY5SnTDyvljuIiXIPkSBSIXhh93UCktO7JZQnh8n0SWgyBCQ/W5Io+Fkx9OIwseayHLQBfQpM6MZec4FcK9ud SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2017 16:12:02.0305 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a6999d4e-8c40-4800-552f-08d538d641ec X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2704 Subject: [edk2] [PATCH 4/4] Compilation:Modify dsc, fdf files and add inc file X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" This patch adds support for compilation of IfcFlashLib, NorFlashLib,Nor flash Driver and include runtime variable support Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Vabhav --- Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc | 22 +++++++ Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf | 9 ++- Platform/NXP/LS1043aRdbPkg/VarStore.fdf.inc | 98 ++++++++++++++++++++++++= ++++ Platform/NXP/NxpQoriqLs.dsc | 6 +- 4 files changed, 133 insertions(+), 2 deletions(-) create mode 100644 Platform/NXP/LS1043aRdbPkg/VarStore.fdf.inc diff --git a/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc b/Platform/NXP/LS= 1043aRdbPkg/LS1043aRdbPkg.dsc index 19d4d30..4b3ac02 100644 --- a/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc +++ b/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc @@ -39,6 +39,16 @@ SocLib|edk2-platforms/Silicon/NXP/Chassis/LS1043aSocLib.inf RealTimeClockLib|edk2-platforms/Silicon/Maxim/Library/Ds1307RtcLib/Ds130= 7RtcLib.inf =20 + # + # Nor Lib + # + NorFlashLib|edk2-platforms/Platform/NXP/Library/NorFlashLib/NorFlashLib.= inf + + # + # IFC FLASH Lib + # + IfcFlashLib|edk2-platforms/Platform/NXP/Library/IfcFlashLib/IfcFlashLib.= inf + [PcdsFixedAtBuild.common] gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"LS1043a RDB board" =20 @@ -55,6 +65,13 @@ gNxpQoriqLsTokenSpaceGuid.PcdWdogBigEndian|TRUE =20 # + # NV Storage PCDs. + # + gArmTokenSpaceGuid.PcdVFPEnabled|1 + gNxpQoriqLsTokenSpaceGuid.PcdFlashDeviceBase64|0x060000000 + gNxpQoriqLsTokenSpaceGuid.PcdFlashReservedRegionBase64|0x60300000 + + # # I2C controller Pcds # gNxpQoriqLsTokenSpaceGuid.PcdI2cBus|0 @@ -74,4 +91,9 @@ edk2-platforms/Platform/NXP/Drivers/WatchDog/WatchDogDxe.inf edk2-platforms/Platform/NXP/Drivers/I2cDxe/I2cDxe.inf =20 + # + # NOR + # + edk2-platforms/Platform/NXP/Drivers/NorFlashDxe/NorFlashDxe.inf + ## diff --git a/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf b/Platform/NXP/LS= 1043aRdbPkg/LS1043aRdbPkg.fdf index 9a8f242..902de2d 100644 --- a/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf +++ b/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.fdf @@ -54,6 +54,7 @@ NumBlocks =3D 0xEC890 gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize FV =3D FVMAIN_COMPACT =20 +!include VarStore.fdf.inc =20 ##########################################################################= ###### # @@ -103,7 +104,8 @@ READ_LOCK_STATUS =3D TRUE INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf - INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.= inf + INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf + INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.i= nf INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.i= nf INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf =20 @@ -120,6 +122,11 @@ READ_LOCK_STATUS =3D TRUE INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf =20 # + # NOR Driver + # + INF edk2-platforms/Platform/NXP/Drivers/NorFlashDxe/NorFlashDxe.inf + + # # Network modules # INF MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf diff --git a/Platform/NXP/LS1043aRdbPkg/VarStore.fdf.inc b/Platform/NXP/LS1= 043aRdbPkg/VarStore.fdf.inc new file mode 100644 index 0000000..0aea642 --- /dev/null +++ b/Platform/NXP/LS1043aRdbPkg/VarStore.fdf.inc @@ -0,0 +1,98 @@ +## @file +# FDF include file with FD definition that defines an empty variable stor= e. +# +# Copyright (c) 2016, Freescale Semiconductor. All rights reserved. +# Copyright (c) 2016, Linaro, Ltd. All rights reserved. +# Copyright (C) 2014, Red Hat, Inc. +# Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved. +# +# This program and the accompanying materials are licensed and made avail= able +# under the terms and conditions of the BSD License which accompanies this +# distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR +# IMPLIED. +# +## + +[FD.LS1043aRdbNv_EFI] + +BaseAddress =3D 0x60300000|gNxpQoriqLsTokenSpaceGuid.PcdNvFdBase #The base= address of the FLASH device +Size =3D 0x000C0000|gNxpQoriqLsTokenSpaceGuid.PcdNvFdSize #The size in by= tes of the FLASH device +ErasePolarity =3D 1 +BlockSize =3D 0x1 +NumBlocks =3D 0xC0000 + +# +# Place NV Storage just above Platform Data Base +# +DEFINE NVRAM_AREA_VARIABLE_BASE =3D 0x00000000 +DEFINE NVRAM_AREA_VARIABLE_SIZE =3D 0x00040000 +DEFINE FTW_WORKING_BASE =3D $(NVRAM_AREA_VARIABLE_B= ASE) + $(NVRAM_AREA_VARIABLE_SIZE) +DEFINE FTW_WORKING_SIZE =3D 0x00040000 +DEFINE FTW_SPARE_BASE =3D $(FTW_WORKING_BASE) + $= (FTW_WORKING_SIZE) +DEFINE FTW_SPARE_SIZE =3D 0x00040000 + +##########################################################################= ### +# LS1043ARDB NVRAM Area +# LS1043ARDB NVRAM Area contains: Variable + FTW Working + FTW Spare +##########################################################################= ### + + +$(NVRAM_AREA_VARIABLE_BASE)|$(NVRAM_AREA_VARIABLE_SIZE) +gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|gEfiMdeModu= lePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize +#NV_VARIABLE_STORE +DATA =3D { + ## This is the EFI_FIRMWARE_VOLUME_HEADER + # ZeroVector [] + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + # FileSystemGuid: gEfiSystemNvDataFvGuid =3D + # { 0xFFF12B8D, 0x7696, 0x4C8B, + # { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }} + 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C, + 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50, + # FvLength: 0xC0000 + 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, + # Signature "_FVH" # Attributes + 0x5f, 0x46, 0x56, 0x48, 0x36, 0x0E, 0x00, 0x00, + # HeaderLength # CheckSum # ExtHeaderOffset #Reserved #Revision + 0x48, 0x00, 0xC2, 0xF9, 0x00, 0x00, 0x00, 0x02, + # Blockmap[0]: 0x3 Blocks * 0x40000 Bytes / Block + 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, + # Blockmap[1]: End + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + ## This is the VARIABLE_STORE_HEADER + # It is compatible with SECURE_BOOT_ENABLE =3D=3D FALSE as well. + # Signature: gEfiAuthenticatedVariableGuid =3D + # { 0xaaf32c78, 0x947b, 0x439a, + # { 0xa1, 0x80, 0x2e, 0x14, 0x4e, 0xc3, 0x77, 0x92 }} + 0x78, 0x2c, 0xf3, 0xaa, 0x7b, 0x94, 0x9a, 0x43, + 0xa1, 0x80, 0x2e, 0x14, 0x4e, 0xc3, 0x77, 0x92, + # Size: 0x40000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariabl= eSize) - + # 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) =3D 0x3ffb8 + # This can speed up the Variable Dispatch a bit. + 0xB8, 0xFF, 0x03, 0x00, + # FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32 + 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +} + +$(FTW_WORKING_BASE)|$(FTW_WORKING_SIZE) +gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|gEfiMdeMo= dulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize +#NV_FTW_WORKING +DATA =3D { + # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature =3D gEdkiiWorkingBl= ockSignatureGuid =3D + # { 0x9e58292b, 0x7c68, 0x497d, { 0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0= x1b, 0x95 }} + 0x2b, 0x29, 0x58, 0x9e, 0x68, 0x7c, 0x7d, 0x49, + 0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0x1b, 0x95, + # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Res= erved + 0x5b, 0xe7, 0xc6, 0x86, 0xFE, 0xFF, 0xFF, 0xFF, + # WriteQueueSize: UINT64 + 0xE0, 0xFF, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00 +} + +$(FTW_SPARE_BASE)|$(FTW_SPARE_SIZE) +gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|gEfiMdeModu= lePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize +#NV_FTW_SPARE diff --git a/Platform/NXP/NxpQoriqLs.dsc b/Platform/NXP/NxpQoriqLs.dsc index 2ea3757..ec49e85 100644 --- a/Platform/NXP/NxpQoriqLs.dsc +++ b/Platform/NXP/NxpQoriqLs.dsc @@ -349,7 +349,11 @@ MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf - MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf + MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf{ + + NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf + } + MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf --=20 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel