> -----Original Message-----
> From: edk2-devel [mailto:[email protected]] On Behalf Of
> Shubham Mittal
> Sent: June-03-17 10:28 PM
> To: Andrew Fish; Blibbet
> Cc: [email protected]
> 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 <[email protected]> on behalf of Andrew
> Fish <[email protected]>
> Sent: Friday, June 2, 2017 11:30 PM
> To: Blibbet
> Cc: [email protected]
> 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 <[email protected]> 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
> > [email protected]
> > https://lists.01.org/mailman/listinfo/edk2-devel
>
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.01.org/mailman/listinfo/edk2-devel
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to