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.

DM8148 Nand issue

Hello Everyone,

     I am trying to boot WINEC7 on custom board other than NAND rest of the components remains same as EVM8148.I am able to boot up WINEC7 on the custom board successfully through the SD card.now i need to do NAND boot .

but i am not able to recognize nand i am getting the following error messages in tera term console.

NAND manufacturex 17 device 17 : no matching device found
FMD driver does not support NAND manufacturer:0x17 dev:0x17

I have made changes tothe following files.

1) bspcfg.c(The manufacture id,read id ,block ....)

2) Bsp_def.h(Config registers).

3) fmd.c

Could anyone please give me some pointers on where to make changes and other necessary things to make my NAND get recognized.

  • Rajath,

    Which is your platform? Did you change the timings of the GPMC/EMIF for NAND? If not, can you set it to maximum and try? I guess its not detected the NAND properly.

  • Hi Renjith,

    Platform-WINEC7 (Windows7).

    Timing of the GPMC - Done(Most generic)

    for instance

    ACTIM_CTRLA -
     *  TWR = 12/6  = 2 (samsung)
     *  TWR = 15/6  = 3 (micron)
     *  TDAL = Twr/Tck + Trp/tck = 12/6 + 18/6 = 2 + 3 = 5  (samsung)
     *  TDAL = Twr/Tck + Trp/tck = 15/6 + 18/6 = 3 + 3 = 6  (micron)
     *  TRRD = 12/6 = 2
     *  TRCD = 18/6 = 3
     *  TRP = 18/6  = 3
     *  TRAS = 42/6 = 7
     *  TRC = 60/6  = 10
     *  TRFC = 72/6 = 12 (samsung)
     *  TRFC = 125/6 = 21 (micron)
     *
     * ACTIM_CTRLB -
     *  TCKE            = 2 (samsung)
     *  TCKE            = 1 (micron)
     *  XSR = 120/6   = 20  (samsung)
     *  XSR = 138/6   = 23  (micron)

    i have made changes in BSPCFG.c file (Manufacture id,device ID)

    Could you give me some pointers in the inclusion of different NAND to the BSP and getting the OS build......

    Thanku

  • I dont think the NAND manufacturer and device id is 0x17. Most likely it is some garbage/junk value read from the data port of GPMC. In my opinion why this can happen is most likely the timings. Could you please try maximum timings instead of the optimum timings that you calculate.

    Also verify that the GPMC reference clock given is also proper. Third thing to try out is that connect an oscilloscope to the GPMC_Dx lines and see any transfer is happening really. If you can see something going on in the GPMC data bus, most likely the timings might be the culprit.