[FE training-materials-updates] sysdev-flash-filesystems: onenand erase doesn't make sense

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Oct 5 11:30:05 CEST 2012


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

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

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

commit ae85617b5018e6a150b8adc0db85ad806c349c76
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date:   Fri Oct 5 11:30:32 2012 +0200

    sysdev-flash-filesystems: onenand erase doesn't make sense
    
    We can't use onenand erase on a NAND flash. And also, nand erase
    doesn't automatically computed the size to be erased when given just
    an offset.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>


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

ae85617b5018e6a150b8adc0db85ad806c349c76
 .../sysdev-flash-filesystems.tex                   |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex b/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
index ba5b6b6..ee9db99 100644
--- a/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
+++ b/labs/sysdev-flash-filesystems/sysdev-flash-filesystems.tex
@@ -63,10 +63,11 @@ naturally in the \code{arch/<arch>/<march>/board-<name>.c} since it is
 board dependent. Nevertheless, during device development, it can be
 useful to define partitions at boot time, on the kernel command line.
 
-Enter the U-Boot shell and erase NAND flash, from offset
-0x00280000, up to the end of the NAND flash storage (tip: if you don't
-specify the number of bytes to erase, \code{onenand erase} will
-continue until it reaches the end).
+Enter the U-Boot shell and erase NAND flash, from offset 0x00280000,
+up to the end of the NAND flash storage. You'll have to compute the
+remaining size of the flash, from 0x280000 to the end. Remember that
+you can look at U-Boot booting messages to find what is the size of
+the NAND flash.
 
 Using the \code{tftp} command, download and flash the kernel image at
 the correct location.



More information about the training-materials-updates mailing list