[FE training-materials-updates] Flash fs lab: misc clarifications

Michael Opdenacker michael.opdenacker at free-electrons.com
Fri Nov 22 05:23:23 CET 2013


Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=b9ef2d66bfd6289dae12aae57fc3fb8b9d72a33b

>---------------------------------------------------------------

commit b9ef2d66bfd6289dae12aae57fc3fb8b9d72a33b
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Fri Nov 22 05:22:32 2013 +0100

    Flash fs lab: misc clarifications
    
    - Clarify what images are and what read-only partitions are
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


>---------------------------------------------------------------

b9ef2d66bfd6289dae12aae57fc3fb8b9d72a33b
 labs/sysdev-flash-filesystems/flash-map.dia        |   92 ++++++++++++++------
 .../sysdev-flash-filesystems.tex                   |   14 +--
 2 files changed, 73 insertions(+), 33 deletions(-)

diff --git a/labs/sysdev-flash-filesystems/flash-map.dia b/labs/sysdev-flash-filesystems/flash-map.dia
index dcc732e..ceb8392 100644
--- a/labs/sysdev-flash-filesystems/flash-map.dia
+++ b/labs/sysdev-flash-filesystems/flash-map.dia
@@ -319,15 +319,16 @@
     </dia:object>
     <dia:object type="Standard - Text" version="1" id="O10">
       <dia:attribute name="obj_pos">
-        <dia:point val="18.225,10.4"/>
+        <dia:point val="18.7,10.025"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="18.225,9.9275;19.3269,10.52"/>
+        <dia:rectangle val="18.1491,9.5525;19.2509,10.78"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
           <dia:attribute name="string">
-            <dia:string>#MLO#</dia:string>
+            <dia:string>#MLO
+(ro)#</dia:string>
           </dia:attribute>
           <dia:attribute name="font">
             <dia:font family="sans" style="0" name="Helvetica"/>
@@ -336,13 +337,13 @@
             <dia:real val="0.63499997556209564"/>
           </dia:attribute>
           <dia:attribute name="pos">
-            <dia:point val="18.225,10.4"/>
+            <dia:point val="18.7,10.025"/>
           </dia:attribute>
           <dia:attribute name="color">
             <dia:color val="#000000"/>
           </dia:attribute>
           <dia:attribute name="alignment">
-            <dia:enum val="0"/>
+            <dia:enum val="1"/>
           </dia:attribute>
         </dia:composite>
       </dia:attribute>
@@ -352,15 +353,16 @@
     </dia:object>
     <dia:object type="Standard - Text" version="1" id="O11">
       <dia:attribute name="obj_pos">
-        <dia:point val="19.85,10.4"/>
+        <dia:point val="20.7,10.025"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="19.85,9.9275;21.5544,10.52"/>
+        <dia:rectangle val="19.8478,9.5525;21.5522,10.78"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
           <dia:attribute name="string">
-            <dia:string>#U-Boot#</dia:string>
+            <dia:string>#U-Boot
+(ro)#</dia:string>
           </dia:attribute>
           <dia:attribute name="font">
             <dia:font family="sans" style="0" name="Helvetica"/>
@@ -369,13 +371,13 @@
             <dia:real val="0.63499997556209564"/>
           </dia:attribute>
           <dia:attribute name="pos">
-            <dia:point val="19.85,10.4"/>
+            <dia:point val="20.7,10.025"/>
           </dia:attribute>
           <dia:attribute name="color">
             <dia:color val="#000000"/>
           </dia:attribute>
           <dia:attribute name="alignment">
-            <dia:enum val="0"/>
+            <dia:enum val="1"/>
           </dia:attribute>
         </dia:composite>
       </dia:attribute>
@@ -388,13 +390,14 @@
         <dia:point val="23.075,10.2"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="22.2228,9.58625;23.9272,10.8137"/>
+        <dia:rectangle val="22.2228,9.24653;23.942,11.1535"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
           <dia:attribute name="string">
             <dia:string>#U-Boot
-env#</dia:string>
+env
+(ro)#</dia:string>
           </dia:attribute>
           <dia:attribute name="font">
             <dia:font family="sans" style="0" name="Helvetica"/>
@@ -403,7 +406,7 @@ env#</dia:string>
             <dia:real val="0.63499997556209564"/>
           </dia:attribute>
           <dia:attribute name="pos">
-            <dia:point val="23.075,10.0588"/>
+            <dia:point val="23.075,9.73384"/>
           </dia:attribute>
           <dia:attribute name="color">
             <dia:color val="#000000"/>
@@ -476,12 +479,13 @@ env#</dia:string>
         <dia:point val="27.225,10"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="26.4271,9.70375;28.0229,10.2962"/>
+        <dia:rectangle val="26.4271,9.36403;28.0377,10.636"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
           <dia:attribute name="string">
-            <dia:string>#Kernel#</dia:string>
+            <dia:string>#Kernel
+(ro)#</dia:string>
           </dia:attribute>
           <dia:attribute name="font">
             <dia:font family="sans" style="0" name="Helvetica"/>
@@ -490,7 +494,7 @@ env#</dia:string>
             <dia:real val="0.63499997556209564"/>
           </dia:attribute>
           <dia:attribute name="pos">
-            <dia:point val="27.225,10.1762"/>
+            <dia:point val="27.225,9.85134"/>
           </dia:attribute>
           <dia:attribute name="color">
             <dia:color val="#000000"/>
@@ -560,12 +564,13 @@ env#</dia:string>
         <dia:point val="24.7,10"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="24.1762,9.70375;25.2237,10.2962"/>
+        <dia:rectangle val="24.1762,9.36403;25.2386,10.636"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
           <dia:attribute name="string">
-            <dia:string>#DTB#</dia:string>
+            <dia:string>#DTB
+(ro)#</dia:string>
           </dia:attribute>
           <dia:attribute name="font">
             <dia:font family="sans" style="0" name="Helvetica"/>
@@ -574,7 +579,7 @@ env#</dia:string>
             <dia:real val="0.63499997556209564"/>
           </dia:attribute>
           <dia:attribute name="pos">
-            <dia:point val="24.7,10.1762"/>
+            <dia:point val="24.7,9.85134"/>
           </dia:attribute>
           <dia:attribute name="color">
             <dia:color val="#000000"/>
@@ -698,7 +703,7 @@ env#</dia:string>
         <dia:point val="31.515,13.8375"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="31.515,13.4584;33.4266,13.9556"/>
+        <dia:rectangle val="31.515,13.47;33.415,13.9325"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -731,13 +736,14 @@ env#</dia:string>
         <dia:point val="30.85,10"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="29.545,9.38625;32.155,10.6137"/>
+        <dia:rectangle val="29.545,9.04653;32.1698,10.9535"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
           <dia:attribute name="string">
             <dia:string>#Root
-filesystem#</dia:string>
+filesystem
+(ro)#</dia:string>
           </dia:attribute>
           <dia:attribute name="font">
             <dia:font family="sans" style="0" name="Helvetica"/>
@@ -746,7 +752,7 @@ filesystem#</dia:string>
             <dia:real val="0.63499997556209564"/>
           </dia:attribute>
           <dia:attribute name="pos">
-            <dia:point val="30.85,9.85875"/>
+            <dia:point val="30.85,9.53384"/>
           </dia:attribute>
           <dia:attribute name="color">
             <dia:color val="#000000"/>
@@ -765,12 +771,13 @@ filesystem#</dia:string>
         <dia:point val="38.3,10"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="36.3063,9.68153;40.3086,10.3185"/>
+        <dia:rectangle val="36.3062,9.36403;40.3086,10.636"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
           <dia:attribute name="string">
-            <dia:string>#Data filesystem#</dia:string>
+            <dia:string>#Data filesystem
+(rw)#</dia:string>
           </dia:attribute>
           <dia:attribute name="font">
             <dia:font family="sans" style="0" name="Helvetica"/>
@@ -779,7 +786,7 @@ filesystem#</dia:string>
             <dia:real val="0.63499997556209564"/>
           </dia:attribute>
           <dia:attribute name="pos">
-            <dia:point val="38.3,10.1688"/>
+            <dia:point val="38.3,9.85134"/>
           </dia:attribute>
           <dia:attribute name="color">
             <dia:color val="#000000"/>
@@ -793,5 +800,38 @@ filesystem#</dia:string>
         <dia:enum val="2"/>
       </dia:attribute>
     </dia:object>
+    <dia:object type="Standard - Text" version="1" id="O28">
+      <dia:attribute name="obj_pos">
+        <dia:point val="22,15.0125"/>
+      </dia:attribute>
+      <dia:attribute name="obj_bb">
+        <dia:rectangle val="17.9622,14.54;26.0378,15.1325"/>
+      </dia:attribute>
+      <dia:attribute name="text">
+        <dia:composite type="text">
+          <dia:attribute name="string">
+            <dia:string>#ro: read-only        rw: read/write#</dia:string>
+          </dia:attribute>
+          <dia:attribute name="font">
+            <dia:font family="sans" style="0" name="Helvetica"/>
+          </dia:attribute>
+          <dia:attribute name="height">
+            <dia:real val="0.63499997556209564"/>
+          </dia:attribute>
+          <dia:attribute name="pos">
+            <dia:point val="22,15.0125"/>
+          </dia:attribute>
+          <dia:attribute name="color">
+            <dia:color val="#000000"/>
+          </dia:attribute>
+          <dia:attribute name="alignment">
+            <dia:enum val="1"/>
+          </dia:attribute>
+        </dia:composite>
+      </dia:attribute>
+      <dia:attribute name="valign">
+        <dia:enum val="3"/>
+      </dia:attribute>
+    </dia:object>
   </dia:layer>
 </dia:diagram>
diff --git a/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex b/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
index 550fff2..34ea6de 100644
--- a/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
+++ b/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
@@ -53,8 +53,8 @@ Modify the \code{/etc/init.d/rcS} file to mount a JFFS2 filesystem on
 the sixth flash partition, instead of an ext3 filesystem on the third
 MMC disk partition.
 
-Create a JFFS2 image for your root filesystem. with the same options
-as the data filesystem.
+Create a JFFS2 image for your root filesystem, with the same options
+as for the data filesystem.
 
 \section{MTD partitioning and flashing}
 
@@ -72,13 +72,13 @@ the NAND flash.
 Using the \code{tftp} command, download and flash the kernel image at
 the correct location.
 
-Using the \code{tftp} command, download and flash the JFFS2-ro image
-the correct location.
+Using the \code{tftp} command, download and flash the JFFS2 image
+of the root filesystem the correct location.
 
-Using the \code{tftp} command, download and flash the JFFS2 image at
-the correction location.
+Using the \code{tftp} command, download and flash the JFFS2 image of the
+data filesystem at the correction location.
 
-Don't forget that you can write U-Boot scripts to automate those
+Don't forget that you can write U-Boot scripts to automate these
 procedures. This is very handy to avoid mistakes when typing commands!
 
 Look at the way default MTD partitions are defined in the device tree



More information about the training-materials-updates mailing list