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.

Nand-Flash and Subpages

I am using a Micron SLC NAND MT29F1G16ABC flash, which doesn't support subpages. Running the mtd-test shows, that kernel expects to have subpages. Where do announce the kernel that flash has no subpages. There are lots of structs around, but I can't find the source of all and the setting. Help!

mtd_subpagetest: MTD device: 0

mtd_subpagetest: MTD device size 262144, eraseblock size 131072, page size 2048, subpage size 512, count of eraseblocks 0, pages per eraseblock 0, OOB size 64
mtd_subpagetest: scanning for bad eraseblocks
mtd_subpagetest: scanned 2 eraseblocks, 0 are bad
mtd_subpagetest: erasing whole device
mtd_subpagetest: erased 2 eraseblocks
mtd_subpagetest: writing whole device
mtd_subpagetest: error: write failed at 0x200
mtd_subpagetest:   write size: 0x200
mtd_subpagetest:   written: 0x0
mtd_subpagetest: error -5 occurred

  • Hi,

    Have seen some discussion about this on u-boot [1] and both (linux + u-boot) but nothing with clear results.

    do you have any update on this ?

    Thanks.

    [1] - http://lists.denx.de/pipermail/u-boot/2011-April/090072.html
    [2] - http://comments.gmane.org/gmane.linux.davinci/23836

    Regards,
    Aníbal