public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Format SD card while on UEFI shell
@ 2017-06-02  7:23 Shubham Mittal
  2017-06-02 17:30 ` Blibbet
  0 siblings, 1 reply; 5+ messages in thread
From: Shubham Mittal @ 2017-06-02  7:23 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

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..



Thanks,

Shubham Mittal


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Format SD card while on UEFI shell
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Blibbet @ 2017-06-02 17:30 UTC (permalink / raw)
  To: edk2-devel

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Format SD card while on UEFI shell
  2017-06-02 17:30 ` Blibbet
@ 2017-06-02 18:00   ` Andrew Fish
  2017-06-04  5:28     ` Shubham Mittal
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Fish @ 2017-06-02 18:00 UTC (permalink / raw)
  To: Blibbet; +Cc: edk2-devel

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Format SD card while on UEFI shell
  2017-06-02 18:00   ` Andrew Fish
@ 2017-06-04  5:28     ` Shubham Mittal
  2017-06-05 17:03       ` Vladimir Olovyannikov
  0 siblings, 1 reply; 5+ messages in thread
From: Shubham Mittal @ 2017-06-04  5:28 UTC (permalink / raw)
  To: Andrew Fish, Blibbet; +Cc: edk2-devel@lists.01.org

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.


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Format SD card while on UEFI shell
  2017-06-04  5:28     ` Shubham Mittal
@ 2017-06-05 17:03       ` Vladimir Olovyannikov
  0 siblings, 0 replies; 5+ messages in thread
From: Vladimir Olovyannikov @ 2017-06-05 17:03 UTC (permalink / raw)
  To: Shubham Mittal, Andrew Fish, Blibbet; +Cc: edk2-devel

> -----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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-05 17:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox