From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-x22d.google.com (mail-yw0-x22d.google.com [IPv6:2607:f8b0:4002:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7B7E521967BCC for ; Mon, 5 Jun 2017 10:02:06 -0700 (PDT) Received: by mail-yw0-x22d.google.com with SMTP id 63so45181770ywr.0 for ; Mon, 05 Jun 2017 10:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:references:in-reply-to:mime-version:thread-index:date :message-id:subject:to:cc; bh=piCVCH00Rl1ewWOMI9Hxd4oc4RKMRa+h3/vPaWKRXSs=; b=YfmEqkTWT3XWOFHvL1k5vtPtWNm8VToiyDPsMAxDm80nxKuxQMtXcCt64LwktuZly9 FNSS7P18cApd/A043KqPjEPfGQNEJB1fQekRiIQM3Nc9TNLmUmTgUn1FIgbRGqKi4OFT OG+9qVmqrVgE1yR4nGjiWhUglvuSNW+LAghPQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc; bh=piCVCH00Rl1ewWOMI9Hxd4oc4RKMRa+h3/vPaWKRXSs=; b=mcIwRVIcE03rfLCbqxE4Qs+YuYveMayi9Sue6ywrn5Q6HNotZWZMLnkJw0Lxboke70 qwq8n9mod/q8mm+umcCV5Z6okNNuyTZCju8KRrHHoiF/Z4vEREP4e4st+9enO4Vl0jwL whRQuS8f3DcYdqfoStRroG4FCYIZphXii7oQ4c4QkuLHZjI+uBKtBHQ+TUjLNF6EMbEc 0CDj3lA7DMUkWyfxbV/7l+THky8BVdh++DeKOHo1QIjl4kngvnht/YFo69kzH2l/V1zs QL9krP1x9ewDSLn0MG0GI9znZVW0gsYRfXWavr19MLr2pOjcIafq4TkXaZoe2XMMJkx7 kvtQ== X-Gm-Message-State: AODbwcAxv7WN1oaJl+9FelvcXWB9XBlEga/KItlts9Wk3l46dO9TaZ6W dfDMQvAuEAL/fYjyVtY3wJoFsSIEwmf/ X-Received: by 10.129.84.67 with SMTP id i64mr16078860ywb.293.1496682191330; Mon, 05 Jun 2017 10:03:11 -0700 (PDT) From: Vladimir Olovyannikov References: , <15B96BE3-C111-4125-B0CB-94FB74AD552C@apple.com> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKJu+O+tIBG/441lu1/u3yxC1PRjAJj39XlAYlIGV4B2mCOz6B6hmPA Date: Mon, 5 Jun 2017 10:03:10 -0700 Message-ID: <9b6f26a1168c9e925962fe7e031fd17a@mail.gmail.com> To: Shubham Mittal , Andrew Fish , Blibbet Cc: edk2-devel@lists.01.org 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: Mon, 05 Jun 2017 17:02:06 -0000 Content-Type: text/plain; charset="UTF-8" > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Shubham Mittal > Sent: June-03-17 10:28 PM > To: Andrew Fish; Blibbet > Cc: edk2-devel@lists.01.org > Subject: Re: [edk2] Format SD card while on UEFI shell > > Thanks Blibbet for your suggestions, i am trying to go through the links you > provided.. > > Thanks Andrew but i think i need to format the sd card as i am making an > application which tests the block i/o devices and sd card when tested, gets > corrupted. I implemented gpt partitioning tool capable to format partitions/devices and submitted that to the UEFI community a while ago (I am away from my PC until next Monday, so you need to search for it (UefiShellGptCommandLib) if it is urgent for you). With that one you format your SD card with gpt fatformat YOUR_SD_SHELL_BLK_ALIAS from within the UEFI Shell. Thank you, Vladimir > > > 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 > system 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 > disk 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 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel