Patchwork [U-Boot] M28: Document that units has to be set to sectors on SD bootcard

login
register
mail settings
Submitter Marek Vasut
Date Nov. 24, 2011, 4:57 p.m.
Message ID <1322153845-19369-1-git-send-email-marek.vasut@gmail.com>
Download mbox | patch
Permalink /patch/127560/
State Changes Requested
Headers show

Comments

Marek Vasut - Nov. 24, 2011, 4:57 p.m.
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
---
 doc/README.m28 |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
Marek Vasut - Nov. 24, 2011, 5:38 p.m.
> On Thu, Nov 24, 2011 at 2:57 PM, Marek Vasut <marek.vasut@gmail.com> wrote:
> >  For example in Linux fdisk, the sequence for a clear card is the
> > following:
> > 
> >        * o ..................... create a clear partition table
> > +       * p ..................... here you need to verify that units is
> > set to +                                 sectors. In the output, earch
> > for a line
> 
> s/earch/search

Thanks!
> 
> > +                                 containing:
> > +                                     Units = sectors of 1 * 512 = 512
> > bytes +                                 If no such line is present,
> > press "u" to +                                 switch units to sectors.
> 
> Or maybe an easier way is to call:
> sudo fdisk /dev/mmcblk0 -u

-u=sectors is even better. Of course, this doesn't work on *BSD. Other 
OSes/game-loaders/etc. I don't think we even consider ;-)
> 
> Regards,
> 
> Fabio Estevam
Wolfgang Denk - Nov. 24, 2011, 8:45 p.m.
Dear Marek Vasut,

In message <1322153845-19369-1-git-send-email-marek.vasut@gmail.com> you wrote:
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Wolfgang Denk <wd@denx.de>
> ---
>  doc/README.m28 |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/doc/README.m28 b/doc/README.m28
> index b749ce0..242230b 100644
> --- a/doc/README.m28
> +++ b/doc/README.m28
> @@ -116,6 +116,12 @@ must have the following parameters:
>  For example in Linux fdisk, the sequence for a clear card is the following:
>  
>  	* o ..................... create a clear partition table
> +	* p ..................... here you need to verify that units is set to
> +	                          sectors. In the output, earch for a line
> +				  containing:
> +				      Units = sectors of 1 * 512 = 512 bytes
> +				  If no such line is present, press "u" to
> +				  switch units to sectors.
>  	* n ..................... create new partition
>  		* p ............. primary partition
>  		* 1 ............. first partition

Would it not make sense to actually make sure this is the case, like
by passing the "-u" option to fdisk ?

Best regards,

Wolfgang Denk
Marek Vasut - Nov. 24, 2011, 10:32 p.m.
> Dear Marek Vasut,
> 
> In message <1322153845-19369-1-git-send-email-marek.vasut@gmail.com> you 
wrote:
> > Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> > Cc: Stefano Babic <sbabic@denx.de>
> > Cc: Wolfgang Denk <wd@denx.de>
> > ---
> > 
> >  doc/README.m28 |    6 ++++++
> >  1 files changed, 6 insertions(+), 0 deletions(-)
> > 
> > diff --git a/doc/README.m28 b/doc/README.m28
> > index b749ce0..242230b 100644
> > --- a/doc/README.m28
> > +++ b/doc/README.m28
> > 
> > @@ -116,6 +116,12 @@ must have the following parameters:
> >  For example in Linux fdisk, the sequence for a clear card is the following:
> >  	* o ..................... create a clear partition table
> > 
> > +	* p ..................... here you need to verify that units is set to
> > +	                          sectors. In the output, earch for a line
> > +				  containing:
> > +				      Units = sectors of 1 * 512 = 512 bytes
> > +				  If no such line is present, press "u" to
> > +				  switch units to sectors.
> > 
> >  	* n ..................... create new partition
> >  	
> >  		* p ............. primary partition
> >  		* 1 ............. first partition
> 
> Would it not make sense to actually make sure this is the case, like
> by passing the "-u" option to fdisk ?

Definitelly, please check v3 of the patch. Fabio was so kind to check my grammar 
issues etc ;-)

M

Patch

diff --git a/doc/README.m28 b/doc/README.m28
index b749ce0..242230b 100644
--- a/doc/README.m28
+++ b/doc/README.m28
@@ -116,6 +116,12 @@  must have the following parameters:
 For example in Linux fdisk, the sequence for a clear card is the following:
 
 	* o ..................... create a clear partition table
+	* p ..................... here you need to verify that units is set to
+	                          sectors. In the output, earch for a line
+				  containing:
+				      Units = sectors of 1 * 512 = 512 bytes
+				  If no such line is present, press "u" to
+				  switch units to sectors.
 	* n ..................... create new partition
 		* p ............. primary partition
 		* 1 ............. first partition