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.

4Kbyte page NAND Flash support of AM1808 kernel

Other Parts Discussed in Thread: AM1808

During the nand driver inutialization, I get the message "davinci_nand davinci_nand.1: no 4-bit ECC support yet for 4KiB-page NAND".

When will the 4KiB page chips supported on the am1808 platform?

 

Regards,

Colman

 

  • Hi Colman,

    There is no near term plan for this feature. Note that the limitation is wrt 4-bit ECC support on 4KB page nand. 1-bit ECC should be supported (we have not tested 4KB pages NAND with AM1808 though).

    Thanks,

    Sekhar

  • Dear Sekhar,

    I have tried making the kernel driver and mtd-util support for 4KByte page NAND by modifying the structure nand_oobinfo and nand_ecclayout to make room for 128byte oob size. After that, I can mount the NAND partition for jffs2 and I can read/write to that partition, The data persist even the board is power downed.

    The only problem I encountered are the flash_erase with  -j option which reports "libmtd: error!: unaligned address 2, mtd4 page size is 4096", and flash_info which always report "has 0 erase regions".

    I also have problem on making the board booting from the NAND flash.

    Can the AM1808 support boot from a 4Kbyte per page with 512Kbyte per block NAND device?

    Regards,

    Colman

     

  • Dear Colman,

     

    If I`m not mistaken you can use 2Kb page driver with the 4Kb page NAND. To do so you must configure your driver to use 2Kb pages and 64 bytes spare area, but you should use the number of pages in block twice of what you have physically on your NAND. For example you have NAND with 4Kb page 128 byte spare area 64 pages in block 8192 blocks. You should configure your driver to work with NAND 2Kb page 64 byte spare area 128 pages in block 8192 blocks. To my mind driver simply split one physical page into two logical pages.

     

    Best regards,

    Yuriy