public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
To: Shubham Mittal <shubham.mittal@nxp.com>,
	Andrew Fish <afish@apple.com>, Blibbet <blibbet@gmail.com>
Cc: edk2-devel@lists.01.org
Subject: Re: Format SD card while on UEFI shell
Date: Mon, 5 Jun 2017 10:03:10 -0700	[thread overview]
Message-ID: <9b6f26a1168c9e925962fe7e031fd17a@mail.gmail.com> (raw)
In-Reply-To: <DB6PR04MB3269A9B7D2EE07E5346E88389CF50@DB6PR04MB3269.eurprd04.prod.outlook.com>

> -----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 <edk2-devel-bounces@lists.01.org> on behalf of Andrew
> Fish <afish@apple.com>
> 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 <blibbet@gmail.com> 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


      reply	other threads:[~2017-06-05 17:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-02  7:23 Format SD card while on UEFI shell Shubham Mittal
2017-06-02 17:30 ` Blibbet
2017-06-02 18:00   ` Andrew Fish
2017-06-04  5:28     ` Shubham Mittal
2017-06-05 17:03       ` Vladimir Olovyannikov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9b6f26a1168c9e925962fe7e031fd17a@mail.gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox