From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0057.outbound.protection.outlook.com [104.47.1.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 14D8E21D046B6 for ; Mon, 18 Sep 2017 22:24:32 -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=rcW8+2vap2+IfVzY9FAXTewmBGSir51Z6XsWA2lL8SE=; b=QQIVCDne9A/Dpb3GywAsMeMACMWKz5tt4+3V28myBe7PPdbIj5q6afAhJYz+0wnGBwyVBzxXJUhpDzcpdvIwUWGlBOuewrn8Hu06mpApgRSF2rLv4WzvZd1cFgoB9z6O4iov4q2YmfK2H6h6kFMp/4Ccbsp97mHgkEe7S5MO7o0= Received: from AM6PR0402MB3334.eurprd04.prod.outlook.com (52.133.18.151) by AM6PR0402MB3623.eurprd04.prod.outlook.com (52.133.20.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Tue, 19 Sep 2017 05:27:33 +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; Tue, 19 Sep 2017 05:27:33 +0000 From: Udit Kumar To: Ard Biesheuvel , Jeremy Linton CC: "edk2-devel@lists.01.org" , "Olivier.Martin@arm.com" Thread-Topic: [edk2] Storing Non volatile variables on SD/NAND Thread-Index: AdMwhGas4HV30Cb6RHux5gL+cq9qtgAEHTUAAAqhZ4AAAC/7gAARSZ8Q Date: Tue, 19 Sep 2017 05:27:33 +0000 Message-ID: References: In-Reply-To: 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; AM6PR0402MB3623; 6:hV+1l8WAyh1jEzfsYQKPQfqRcXhmv1L+6x0ntyL0Cf/ly2Yo72nw4oIG2cZULxvLpLTal6lYngui2aNKUJw+HFBPFv5Z80+immPsoRuRf9OFA6HFBoXE2LJsPGC3x76c4d87jUBLhDKCYjW9w4LaNZlrKBqrLX8o60wKtKkuRJjv/RHUiFAU9h5D8be4FjNTsoqMUMTGk5X3FHaJxQgc4rEGskjBgKT1SF9pJVK9yxNF8lCefb1u8Ny0UN8DfXBOL1tnPjeXlDVUdFOenps3szWfUH7CkEb7OiPf2SaZ9s0OWxuNbb4+qHgwDXZWeUDb0VEAesU51cetSTCpcJoYoA==; 5:hvz2YUHV9elSu7hdqmwS4Bh+yi7UqixqPfCoOi2hIs7Nkr79uylutzcJctL2Pdtiev46CL2/mzOXpqU/G2D95rRPe2tjMnE6v4WBE5e5RHFErK1uQiByvyn1WczB2tOy8qSkPUmJslS2X4PZ7DEqtQ==; 24:kvm3WwoAErfGMhCxB86VWz2ybnpTKK09L+6Mvn3HMr6o8sUy6lMu3p33VmVvGc8e0BevpuAnzprBPDS24BQq5VwLnhHeI0bRUr45H9j0h68=; 7:x7Xb1TwNPn9CH/PNjzt/8/FzjMDdYZlshG0PfjU7mnvZDI1Gg2EtHurgS0yQC2L7CRgRulm/AyyTlhtitwfM3OX3RTVev7vupb4kwdLx/6pYahIzLL/i4hdGjw+/5RTieONVT3RA0fLdBnmwCZMTeS4Xd4hT9NyoIw88vQrJjDiIe+ht6T3M9wLlUaTmKNJcDUoHn43HIgvz0qtt6ILDrpxCCIU85aiNXejrKX1SQq4= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: c04c558e-9277-4020-80fd-08d4ff1f2151 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM6PR0402MB3623; x-ms-traffictypediagnostic: AM6PR0402MB3623: x-exchange-antispam-report-test: UriScan:(60795455431006)(180628864354917)(185117386973197)(162533806227266); 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)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6041248)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM6PR0402MB3623; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM6PR0402MB3623; x-forefront-prvs: 04359FAD81 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(39860400002)(199003)(24454002)(13464003)(189002)(377454003)(8936002)(66066001)(53376002)(81166006)(81156014)(8676002)(1720100001)(478600001)(54906002)(53936002)(33656002)(2900100001)(4326008)(55016002)(6306002)(99286003)(2950100002)(9686003)(7696004)(6506006)(5660300001)(6436002)(25786009)(6246003)(229853002)(5250100002)(76176999)(54356999)(2906002)(7736002)(110136005)(3846002)(6116002)(102836003)(101416001)(68736007)(50986999)(316002)(53546010)(189998001)(86362001)(74316002)(305945005)(106356001)(3660700001)(105586002)(14454004)(966005)(97736004)(3280700002)(93886005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0402MB3623; H:AM6PR0402MB3334.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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: 19 Sep 2017 05:27:33.3203 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3623 Subject: Re: 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: Tue, 19 Sep 2017 05:24:32 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 VGhhbmtzIEFyZCAvIEplcmVteS4gDQoNClNheSBTRC9OQU5EIGlzIGp1c3QgdXNlZCBmb3IgVUVG SSBmaXJtd2FyZSB0aGVuIHRoaXMgaXMgc29tZXRoaW5nIGRvYWJsZS4gDQoNCj4gPiBIYXZpbmcg dGhlIGZpcm13YXJlL3ZhcmlhYmxlIHN0b3JlIGFuZCBPUyByb290L2Jvb3Qgb24gdGhlIHNhbWUg ZGV2aWNlDQo+ID4gaXMgZnVuZGFtZW50YWxseSBmbGF3ZWQuDQoNCkkgYWdyZWUgaW4gY2FzZSBv ZiBTRC9OQU5ELCBwYXJ0aXRpb25pbmcgYW5kIHN5bmNocm9uaXphdGlvbiB3aXRoIE9TIHdpbGwg YmUgdG91Z2ggdGFzay4gDQpFdmVuIGluIGNhc2Ugb2YgTk9SIGZsYXNoLCBpZiB0aGlzIGlzIGV4 cG9zZWQgYXMgbXRkIGRldmljZSBhcyB3ZWxsLCB0aGVuIGFjY2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