Skip to contentSkip to conversation

M28: Document that units has to be set to sectors on SD bootcard

PATCH New Marek Vasut 3 participants 7 messages Nov 24, 2011 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 M28: Document that units has to be set to sectors on SD bootcard

Cc Stefano Babic <[email protected]>
Cc Wolfgang Denk <[email protected]>
---
 doc/README.m28 |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
doc/README.m28 +6 -0
index b749ce0..242230b 100644
@@ -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
Signature · 1 line
1.7.7.1

A message that is not in the archive (sent off-list or not yet received): CAOMZO5CVP=efXnrOwP7MPkbOo4H4y2BdfMt43+c6wb0-8TFkJw@mail.gmail.com

#2 lore raw

PATCH 1/1 M28: Document that units has to be set to sectors on SD bootcard

Quoted 10 lines · Marek Vasut
Quoted 7 lines

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!

Quoted 8 lines
Quoted 5 lines
(quoted diff) +2 -0
+                                 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 ;-)

Quoted 4 lines

Regards,

Fabio Estevam

#3 lore raw

PATCH v2 1/1 M28: Document that units has to be set to sectors on SD bootcard

In reply to Marek Vasut
Cc Stefano Babic <[email protected]>
Cc Wolfgang Denk <[email protected]>
---
 doc/README.m28 |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

V2: Make this all simpler for user to follow

doc/README.m28 +2 -1
index b749ce0..e4929ad 100644
@@ -113,7 +113,8 @@ must have the following parameters:
 	* Partition size ........ at least 1024 kb
 	* Partition type ........ 0x53 (sometimes "OnTrack DM6 Aux3")
 
-For example in Linux fdisk, the sequence for a clear card is the following:
+For example in Linux fdisk, the sequence for a clear card is the follows. Be
+sure to run fdisk with the option "-u=sectors" to set units to sectors:
 
 	* o ..................... create a clear partition table
 	* n ..................... create new partition
Signature · 1 line
1.7.7.1
#4 lore raw

PATCH v2 1/1 M28: Document that units has to be set to sectors on SD bootcard

Quoted 17 lines · Marek Vasut
Cc Stefano Babic <[email protected]>
Cc Wolfgang Denk <[email protected]>

---
?doc/README.m28 | ? ?3 ++-
?1 files changed, 2 insertions(+), 1 deletions(-)

V2: Make this all simpler for user to follow

doc/README.m28 +0 -0
index b749ce0..e4929ad 100644
@@ -113,7 +113,8 @@ must have the following parameters:

? ? ? ?* Partition size ........ at least 1024 kb
? ? ? ?* Partition type ........ 0x53 (sometimes "OnTrack DM6 Aux3")

doc/README.m28 must have the following parameters: · line 116

Quoted 2 lines
doc/README.m28 +1 -1
-For example in Linux fdisk, the sequence for a clear card is the following:
+For example in Linux fdisk, the sequence for a clear card is the follows. Be

s/follows/following

Other than that:

#5 lore raw

PATCH v3 1/1 M28: Document that units has to be set to sectors on SD bootcard

In reply to Marek Vasut
Cc Stefano Babic <[email protected]>
Cc Wolfgang Denk <[email protected]>
---
 doc/README.m28 |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

V2: Make this all simpler for user to follow
V3: Fix grammar

doc/README.m28 +2 -1
index b749ce0..548982f 100644
@@ -113,7 +113,8 @@ must have the following parameters:
 	* Partition size ........ at least 1024 kb
 	* Partition type ........ 0x53 (sometimes "OnTrack DM6 Aux3")
 
-For example in Linux fdisk, the sequence for a clear card is the following:
+For example in Linux fdisk, the sequence for a clear card follows. Be sure to
+run fdisk with the option "-u=sectors" to set units to sectors:
 
 	* o ..................... create a clear partition table
 	* n ..................... create new partition
Signature · 1 line
1.7.7.1
#6 lore raw

PATCH 1/1 M28: Document that units has to be set to sectors on SD bootcard

In reply to Marek Vasut

Dear Marek Vasut,

Quoted 14 lines · In message <[email protected]> you wrote:
Cc Stefano Babic <[email protected]>
Cc Wolfgang Denk <[email protected]>
---
 doc/README.m28 |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
doc/README.m28 +0 -0
index b749ce0..242230b 100644
@@ -116,6 +116,12 @@ must have the following parameters:
 For example in Linux fdisk, the sequence for a clear card is the following:
 

doc/README.m28 must have the following parameters: · line 127

Quoted 10 lines
doc/README.m28 +6 -0
 	* 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

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A person with one watch knows what time it  is;  a  person  with  two
watches is never sure.                                       Proverb
#7 lore raw

PATCH 1/1 M28: Document that units has to be set to sectors on SD bootcard

Quoted 3 lines

Dear Marek Vasut,

In message <[email protected]> you

Quoted 24 lines · wrote:
Quoted 24 lines
Cc Stefano Babic <[email protected]>
Cc Wolfgang Denk <[email protected]>

---

 doc/README.m28 |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
doc/README.m28 +6 -0
index b749ce0..242230b 100644
@@ -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.
 
Quoted 7 lines

doc/README.m28 must have the following parameters: · line 127

Quoted 4 lines
doc/README.m28 +0 -0
 	* n ..................... create new partition
 
doc/README.m28 +0 -0
 		* 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