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.

DM365 DVSDK 4.0 Nand OOB Layout question

Hello,

I have used DVSDK 2.10 with MontaVista tools at DM365.

Recently I am trying to use DVSDK 4.0 at my DM365 HW.

My DM365 HW has Samsung 128MByte NAND Flash(2048 bytes page, 64 bytes OOB).

The NAND OOB layout of DVSDK 2.10 is TI 4-bit ECC,

but the one of DVSDK 4.0 psp(uboot & linux kernel) is not 4-bit ECC.

As my test, the UBL and u-boot in NAND Flash should be programed as 4-bit ECC for NAND booting.

However, the new u-boot & linux kernel(DVSDK 4.0 psp) are using the different OOB layout.

 

I wish one OOB layout in the entire NAND flash using DVSDK 4.0 psp. Is it possible?

  • Hi,

    Which DVSDK release you are using? I checked DVSDK 4.00.00.22 and found that both Linux and U-Boot are using same OOB layout. Refer to drivers/mtd/nand/davinci_nand.c in both Linux and U-Boot.

    Regards, Sudhakar

  • Hello Sudhakar,

    You are right.
    The u-boot & linux kernel in DVSDK 4.0 use same NAND OOB layout.

    But, in my test result, UBL & u-boot binary themselves are programed as TI 4-bit ECC syndrome style at NAND flash for NAND booting.
    When I programed UBL & u-boot binary to NAND as DVSDK 4.0 OOB layout style, NAND booting is failed and SD boot is trying.
    See the document sprufg5a.pdf (DM36x Arm subsystem User's Guide) section 11.2.1 and 11.2.1.1.

    In my thought, this result means that some area in NAND OOB should be TI 4-bit ECC syndrome and other area should be  new OOB layout.
    I wish to using unified OOB layout at entire NAND flash.

    Regards,

  • Hi,

    How are you programming UBL and U-Boot to NAND flash? Note that UBL and U-Boot may be following different OOB layouts. Ideally RBL and UBL will follow similar OOB layouts and U-Boot and Linux will follow similar OOB layouts.

    Regards, Sudhakar

  • Hi,

    I programed my DM365 b/d NAND using SD-boot app.
    (http://processors.wiki.ti.com/index.php/SD_card_boot_and_flashing_tool_for_DM355_and_DM365)
    This SD-boot app use TI 4-bit ECC syndrome style.
    I also modified OOB related codes for testing OOB layout difference.

    I know UBL & u-boot binary should be programed as TI 4-bit ECC syndrome style,
    but DSVSDK 4.0 u-boot & linux kernel access NAND using diffent OOB layout.

    My question was "Is it possible unified OOB layout of entire NAND using DVSDK 4.0?"

    I understand your words; it is not possible without modifing DVSDK 4.0 u-boot/kernel OOB layout codes.

    Regards,