This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

What's the difference between "nand scrub" and "nand erase"

Hello all,

    I want to know the difference between "nand scrub" and "nand erase", they both could erase the data on the flash.

    When I run "nand scrub", there is a error when 14% complete, such as "Erasing at 0x54c000: Failed erase, page 0x00002ca0", what's wrong with it?

    I also found that the error point is on the partiion of linux filesystem image, when the system boot, mount filesys would failed.

    How to avoid this kind of problem?

 

  • # nand scrub

    NAND scrub: device 0 whole chip
    Warning: scrub option will erase all factory set bad blocks!
             There is no reliable way to recover them.
             Use this command only for testing purposes if you
             are sure of what you are doing!

     
    Basically it removes Bad Blocks marked by default in factory. Below link may give you more details

    http://linux.omap.com/pipermail/davinci-linux-open-source/2008-February/005134.html


    Regards
    Gururaja

  • Thanks for your reply. I tried burn the uboot by CCS, but still got that kind of errors.

    There are some sections in the flash: uboot, kernel, filesystem image, app. I'm not sure In which sections the ECC check are valid? The bad block may occurs in each section, if necessary, they all need to check.

    When boot the whole system, uboot, kernel need different checks, I think.

    If all things OK, nand scrub will exeute without any errors. once an error occur, boot would be fail.