From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-am5eur02on0604.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe07::604]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BA0A721C8D60E for ; Sat, 3 Jun 2017 22:27:13 -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=R2HaMU7Ar6r1OrVqxBPyQLEK8M0I+xx8lWIfyX88yKc=; b=RN3G3510bW4Z56wxF8YH6MmcaopoyvwlPinMnQ0mAvG9Hhx7PG5AZ+rm9V6r23qDy5Gw25TYMGCCF+CUTbX+y3MxuzY0SA5fzBAfCxp9gDg5/RV/jW1d4geevkV1JGOYDry1Q7WKw8bYKi+3chxwqWirbf1feaBrFsSbSx5vAUs= Received: from DB6PR04MB3269.eurprd04.prod.outlook.com (10.170.216.145) by DB6PR04MB3272.eurprd04.prod.outlook.com (10.170.216.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Sun, 4 Jun 2017 05:28:07 +0000 Received: from DB6PR04MB3269.eurprd04.prod.outlook.com ([fe80::71a0:e9ff:9975:f06a]) by DB6PR04MB3269.eurprd04.prod.outlook.com ([fe80::71a0:e9ff:9975:f06a%13]) with mapi id 15.01.1124.013; Sun, 4 Jun 2017 05:28:07 +0000 From: Shubham Mittal To: Andrew Fish , Blibbet CC: "edk2-devel@lists.01.org" Thread-Topic: [edk2] Format SD card while on UEFI shell Thread-Index: AQHS228EBLmmnsI5NEiwyXmihgEpvaIR1OCAgAAInACAAlGNlA== Date: Sun, 4 Jun 2017 05:28:07 +0000 Message-ID: References: , <15B96BE3-C111-4125-B0CB-94FB74AD552C@apple.com> In-Reply-To: <15B96BE3-C111-4125-B0CB-94FB74AD552C@apple.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.01.org; dkim=none (message not signed) header.d=none;lists.01.org; dmarc=none action=none header.from=nxp.com; x-originating-ip: [2603:10a6:6:2f:cafe::40] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB6PR04MB3272; 7:UCagw1+e/FZRUZr1qe6IFyBsPbHgpPxHx9zlmKAeX/6W3mDNCqNa1QcmuPYsgJdW0HfAv3w16crIES0mi9s9F/ZFvJOOL5EjHRleQrhijUBciK3BWzkLLwTpNO04oYUBvUqHhfm/tD6B4Dh0DsYkadVKtWQcOWdg25qYbukFVG0FfLVV54ySNk/PkX96BHfMQoYFtZPIG3ipmDqQ/hji/qcJIvGHPR3mZxaufV7cApzDg0RfqhVDQJRZhJpAUUNpGWGuho/BRmnseLkZLk72hJiCXB+26ISewAec8GtKiBekewvcXkv43GyhSaIzI47KnweOAScIYV0+Me7ZuQ/rpQ== x-ms-traffictypediagnostic: DB6PR04MB3272: x-ms-office365-filtering-correlation-id: b604d3bb-0326-4d21-da59-08d4ab0a7b52 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075); SRVR:DB6PR04MB3272; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(162533806227266)(31960201722614)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR04MB3272; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR04MB3272; x-forefront-prvs: 03283976A6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39840400002)(39860400002)(39450400003)(39410400002)(39850400002)(39400400002)(53754006)(24454002)(377454003)(6246003)(7906003)(5890100001)(7696004)(6506006)(86362001)(2906002)(6436002)(8936002)(99286003)(5250100002)(19627405001)(9686003)(76176999)(236005)(81166006)(14454004)(6306002)(4326008)(2950100002)(8676002)(33656002)(74316002)(551544002)(102836003)(54896002)(53936002)(6606003)(25786009)(2900100001)(229853002)(8666007)(3280700002)(606005)(478600001)(38730400002)(50986999)(53546009)(6116002)(3660700001)(189998001)(5660300001)(966005)(39060400002)(55016002)(7736002)(54356999); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR04MB3272; H:DB6PR04MB3269.eurprd04.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2017 05:28:07.2061 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3272 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Re: Format SD card while on UEFI shell 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: Sun, 04 Jun 2017 05:27:14 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks Blibbet for your suggestions, i am trying to go through the links yo= u provided.. Thanks Andrew but i think i need to format the sd card as i am making an ap= plication which tests the block i/o devices and sd card when tested, gets c= orrupted. Thanks, Shubham ________________________________ From: edk2-devel on behalf of Andrew Fish= Sent: Friday, June 2, 2017 11:30 PM To: Blibbet Cc: edk2-devel@lists.01.org Subject: Re: [edk2] Format SD card while on UEFI shell The SD spec calls out MBR with a single partition and FAT32 or exFAT file s= ystem based on size. You need to follow those rules if you want to use it = with embedded devices. A general purpose OS will treat the SD card like a d= isk and the format does not really matter. Thanks, Andrew Fish > On Jun 2, 2017, at 10:30 AM, Blibbet wrote: > > On 06/02/2017 12:23 AM, Shubham Mittal wrote: >> Hi all, >> >> Is there any utility/tool by which i can format sd card(connected to > board) using UEFI shell. >> >> As of now, i have to detach it and format it and attach it again.. > > I'm not sure this answers your question or not, but Intel has some UEFI > disk utilities, but they're pre-EDK2 and non-BSD licensed. So you can > fdisk/format from within the UEFI Shell, for FAT volumes. Brian of Intel > says that there is work underway to revise these tools, unclear of what > (perhaps relicense these tools, make them work with current toolchain, > and perhaps transfer them from Intel to UEFI Forum) and when. See this > message: > > https://lists.01.org/pipermail/edk2-devel/2016-October/002734.html > > Hmm, it looks like URL has changed: > https://firmware.intel.com/content/uefidiskutilitiesagreement > And the zip is no longer password-protected, thanks Intel lawyers! > But the contents appear to be still last-updated in 2011. > > HTH, > Lee Fisher > > _______________________________________________ > 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