RE: [U-Boot-Users] NAND driver issue

Thursday, December 08, 2005 11:33 AM Aubrey wrote:
But "nand read" and "nand write" failed because of ECC. So I try to remove the macro "CONFIG_MTD_NAND_ECC" from the file "common/cmd_nand.c", now it works. I can run "nand read" and "nand write" successfully. The data wrote into the NAND flash and read back is the same.
I think the ECC code used to be broken unless CONFIG_MTD_NAND_ECC_JFFS2 is set in your board config file.
Dave Ellis
~~~~~~~~~~~~~~~~~~~~~~~~~~ SIXNET - "Leading the Industrial Ethernet Revolution" 331 Ushers Road, P.O. Box 767, Clifton Park, NY 12065 USA Tel +1 (518) 877-5173 Fax +1 (518) 877-8346 Email me at: dge@sixnetio.com Detailed product info: www.sixnetio.com ~~~~~~~~~~~~~~~~~~~~~~~~~~

On 12/10/05, Dave Ellis DGE@sixnetio.com wrote:
I think the ECC code used to be broken unless CONFIG_MTD_NAND_ECC_JFFS2 is set in your board config file.
The macro CONFIG_MTD_NAND_ECC_JFFS2 is there black and white in the file "common/cmd_nand.c". Should I add it again to my board config file?
On the other hand, If I don't want to work on the JFFS2 system, the macro should be disabled. I mean this macro shouldn't affect the direct read/write operation of the nand driver.
Thanks -Aubrey
participants (2)
-
Aubrey
-
Dave Ellis