[FE training-materials-updates] sysdev-flash-filesystems: Improve explanation for trimffs usage with the JFFS2 images
Gregory Clement
gregory.clement at free-electrons.com
Mon Feb 2 17:36:01 CET 2015
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=fbf3ce52b908205ecf43df22ab12df1d093d43b6
>---------------------------------------------------------------
commit fbf3ce52b908205ecf43df22ab12df1d093d43b6
Author: Gregory CLEMENT <gregory.clement at free-electrons.com>
Date: Mon Feb 2 17:34:02 2015 +0100
sysdev-flash-filesystems: Improve explanation for trimffs usage with the JFFS2 images
Also move it in a footnote as it is quite complex.
Signed-off-by: Gregory CLEMENT <gregory.clement at free-electrons.com>
>---------------------------------------------------------------
fbf3ce52b908205ecf43df22ab12df1d093d43b6
.../sysdev-flash-filesystems/sysdev-flash-filesystems.tex | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex b/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
index dda9752..961f534 100644
--- a/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
+++ b/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
@@ -86,12 +86,15 @@ of the root filesystem the correct location.
Using the \code{tftp} command, download and flash the JFFS2 image of
the data filesystem at the correction location.
-Use the \code{trimffs} version of the command \code{nand write} for the
-JFFS2 image. The command \code{nand write.trimffs} skips the blank
-sectors instead of writing them. It is needed because the algorithm
-used by the hardware ECC for the SAMA5D3 SoC generates a checksum with
-bytes different of 0xFF if the page is blank, whereas Linux expects to
-have the OOB full of 0xFF if the associated page is blank too.
+Use the \code{trimffs} version of the command \code{nand write} for
+the JFFS2 image. \footnote{The command \code{nand write.trimffs} skips
+ the blank sectors instead of writing them. It is needed because the
+ algorithm used by the hardware ECC for the SAMA5D3 SoC generates a
+ checksum with bytes different of 0xFF if the page is blank. Linux
+ only checks the page, and if it is blank it doesn't erase it, but as
+ the OOB is not blank it leads to ECC errors. More generally it is
+ not recommended writing more than one time on a page and its OOB
+ even if the page is blank.}
Don't forget that you can write U-Boot scripts to automate these
procedures. This is very handy to avoid mistakes when typing commands!
More information about the training-materials-updates
mailing list