From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0083.outbound.protection.outlook.com [104.47.2.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 00F2521D046D1 for ; Mon, 18 Sep 2017 06:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=McCqaLgrO5wSQlR5nPzJ9xgKpHhoJLcHqSFqjY+76DE=; b=TKy8pW2lE6KNRXL7d7rQ+TU4Lt//qwkphnf1YFIEdhgqHxZg5oyJwT6kYYzsoDw4lRVINv9B47EeO2Kvfwz6eQzuX2gbrf1rUunqwdcQbbIfs6RHHq6xMv481W+KEvidQ0qCd/BGz01Xwwg2yxJdHX8+qfHELnppKlXSHeVC0fg= Received: from AM6PR0402MB3334.eurprd04.prod.outlook.com (52.133.18.151) by AM6PR0402MB3591.eurprd04.prod.outlook.com (52.133.20.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Mon, 18 Sep 2017 13:52:24 +0000 Received: from AM6PR0402MB3334.eurprd04.prod.outlook.com ([fe80::4d05:6a0c:bcca:93be]) by AM6PR0402MB3334.eurprd04.prod.outlook.com ([fe80::4d05:6a0c:bcca:93be%13]) with mapi id 15.20.0056.016; Mon, 18 Sep 2017 13:52:23 +0000 From: Udit Kumar To: "edk2-devel@lists.01.org" CC: "grant.likely@linaro.org." , "Olivier.Martin@arm.com" Thread-Topic: Storing Non volatile variables on SD/NAND Thread-Index: AdMwhGas4HV30Cb6RHux5gL+cq9qtg== Date: Mon, 18 Sep 2017 13:52:23 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=udit.kumar@nxp.com; x-originating-ip: [192.88.169.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR0402MB3591; 6:Dhzs4JGebnUIqpmOXkFuUjTH6hJdFe4wrmkIEQNXA+rTADxqydXtNgmT+wFnTavqBAkDijnBxlKhfvtkDoKSGTBuarJ2r7h2g1hHXdnv25BAxDG3uZ5XSk6q0Ag/c/4h591i8CCn1vOVgVxekzSLDFgLotEK6GI4Fqb/ZBLVh9LTcmFc90LHbGCHNrNh2MRFHTDuflBa2w3MjpMxMf6bhR0jo81ACnH9TpSfk9uiPWh/AqIWXMJzhZ9t/R2r1Ga5phRm0kuPTSt3BOxrsG24AvRwh/iv4pT75cSKBfTyRaK483KSb8Wd6pQbvKPRePDp8FdxfDIyKEJNAdgDZZT4bw==; 5:hhgKvJqemtLvNTrDfPAtwoVBQ0tGBOKRKjqoVtT/uNBs+n55AHcY6ZdkozB5lpKhzAPjcjYWXDan3+RN5XOaZpgQP6YyqxiHzRDIQzXDOudHTvpID5G2WbgEbWTmySm7mt433icry4Ye3gjZZwh71g==; 24:NlT2V9yy+Jfq9Kdy2wg1OVyJ2hWak+WS1WK9OuLxqXD/pWYbf5Cbx6FHLkVkwShJ1S5hdjsLlu25hgl1S4hZpoJrpPE75rF3bX0d4GPxqnY=; 7:AJ95tImdpcHbPUyjskpwfexAXnKq3kXB1mxuoVSF3R74H3FSPFja77JuwR2GIMqI/HnKkEnxn8WpPYnXEzvi00d71IunyoF0Bhtyux75jGoUE0I9OeR/6p0tFuo/We8EHPa8hbWpSgmTHRN7TVSrOeZIZY6IxsHKnkQnDmpy8GIOsHMqo5M6yRN4LLgFRDLLC49KBmX7lydVGQhguazo3l8OqoHNHS/WgN+j9K7yHU4= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: eca026f2-f694-48b0-0aa9-08d4fe9c7d60 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM6PR0402MB3591; x-ms-traffictypediagnostic: AM6PR0402MB3591: x-exchange-antispam-report-test: UriScan:; x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123560025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM6PR0402MB3591; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM6PR0402MB3591; x-forefront-prvs: 04347F8039 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(376002)(346002)(189002)(199003)(74316002)(478600001)(305945005)(3280700002)(68736007)(6436002)(966005)(8676002)(316002)(97736004)(14454004)(2900100001)(7736002)(8936002)(25786009)(3660700001)(81166006)(81156014)(2906002)(99286003)(101416001)(54356999)(3846002)(6116002)(102836003)(2501003)(55016002)(50986999)(189998001)(106356001)(66066001)(53936002)(5660300001)(7696004)(4743002)(5250100002)(86362001)(5640700003)(53376002)(110136004)(6506006)(4326008)(105586002)(33656002)(6916009)(2351001)(9686003)(6306002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0402MB3591; H:AM6PR0402MB3334.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Sep 2017 13:52:23.7413 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3591 Subject: Storing Non volatile variables on SD/NAND 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: , X-List-Received-Date: Mon, 18 Sep 2017 13:49:27 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi EDK-2 Experts,=20 I am looking to store NV variables on SD/NAND device.=20 While browsing, I came across some old post at link,=20 http://feishare.com/efimail/messages/20130319-1700-Re__edk2__Regarding_stor= ing_Boot_Device_Config_in_persistent_memory-Olivier_Martin.html=20 Looks like, this is possible easily.=20 >> What you need to support Non-Volatile UEFI variables is a Non-Volatile M= emory. And also a driver that implements the EFI Firmware Volume Block prot= ocol for this NVM device. But MdeModulePkg does Copymem from NV variable start memory to some allocat= ed buffers. With SD/NAND Copymem is not possible, Is this something change= s since 2013 or there are some other way to use SD/NAND=20 Thanks Udit=20