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.

UBIFS on NAND of 128 pages (512K)

Hi,

We are using MT29F16G08ABABA NAND with Page size x8: 4320 bytes (4096 + 224 bytes) & Block size: 128 pages (512K +28K bytes) for custom DM368 board. Can UBIFS detect this NAND automatically or some modifications are required while making UBIFS.

  • Vipul,

    UBIFS doesn't detect NAND device directly. It reads the parameters provided by the MTD driver. If MTD driver is able to handle the NAND properly, the same parameters will be used by UBIFS if you create the UBIFS image from the target board itself. 

    However, if you choose to create the UBIFS image from the host and flash it to the target, you'll have to specify the MTD parameters manually. The parameters are related to the page size, logical erase block size, sub-page support and the partition size etc. 

  • Thanks Renjith,

    Is there any patch available for Uboot & Linux to add support for NAND with 4K page size. If so, plz share it with us.  

  • Hi Vipul,

     

    As you are using (4K/224B) NAND device, i would like you to go through following E2E post before you freeze on your booting sequence.

    AM335x NAND Flash Tool or nandlib does not support BCH 16-bit ECC

    So if you are planning to use (4K/224B) NAND device for storing your UBL, then you might need some 3rd party utility to flash your image.

    Reason: RBL will expect BCH16 ECC scheme for (4K/224B) NAND device, But currently TI U-Boot and Kernel do not support BCH16, so you need 3rd party flashing utility with BCH16 support.

     

    But added advantage of using 4K/224B NAND device is that its ECC scheme is scalable, that means in future you can upgrade to complex ECC schemes which support correction & detection capabilities for more number of bit-flips. This becomes necessary as your device ages in field.

       

    with regards, pekon

  • Vipul,

    I don't have a patch with me. But I think the modifications are very minor w.r.t page size and block sizes mainly. Rest all you can hack.

    Are you able to boot UBL from this NAND?

    Pekon,

    The changes that you've suggested are not applicable here as Vipul is using DM36x series, which doesn't support BCH-8/BCH-16 bit hardware ECCs.

  • Renjith,

    Actually i have not tried UBL yet. While browsing e2e forums i come to know that UBL doesn't require any change. Will update the right method once I tried it.