Nand is not working with new DDR3 MT41K256M16TW-107 in U-boot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Nand is not working with new DDR3 MT41K256M16TW-107 in U-boot

1,202 Views
dhvanil_patel1
Senior Contributor I


Hi,

I am working on i.mx6ul based custom board. We want to added support of New DDR MT41K256M16TW on i.MX6ul in a replacement of older DDR3.

Our board is successfully boot from NAND flash configuration and But the U-boot is failed to read/write in NAND flash. Sometimes U-boot is not able to detect the NAND.

We are facing MXS NAND: DMA read error in U-boot

We are successfully able to run NAND with Older DDR3 MT41K256M16HA-125.

We are using latest code branch imx-4.1.15-1.0.0_ga

Can you please help me to find out the root cause of this issue. It is related to DDR3 related configuration? In imx-4.1.15-1.0.0_ga u-boot code, there is already DDR3 configuration available for new DDR  MT41K256M16TW.

////////////// Error log

1.  Failed to read Kernel and dtb from NAND

U-Boot 2015.04-imx_v2015.04_4.1.15_1.0.0_ga+gd7d7c43 (Jun 13 2016 - 14:55:35)

CPU:   Freescale i.MX6UL rev1.0 at 396 MHz

CPU:   Temperature 45 C

Reset cause: POR

Board: MX6UL

I2C:   ready

DRAM:  512 MiB

Setting up gmpi nand

NAND:  1024 MiB

MMC:   Inside FSU_config 0

FSL_SDHC: 0

*** Warning - bad CRC, using default environment

In:    serial

Out:   serial

Err:   serial

Net:   FEC0

Error: FEC0 address not set.

Normal Boot

Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x4000000, size 0x800000

MXS NAND: DMA read error

NAND read from offset 4000000 failed -110

0 bytes read: ERROR

NAND read: device 0 offset 0x5000000, size 0x100000

MXS NAND: DMA read error

NAND read from offset 5000000 failed -110

0 bytes read: ERROR

2. Failed to read Kernel but able to read dtb

U-Boot 2015.04-imx_v2015.04_4.1.15_1.0.0_ga+gd7d7c43 (Jun 13 2016 - 14:55:35)

CPU:   Freescale i.MX6UL rev1.0 at 396 MHz

CPU:   Temperature 43 C

Reset cause: POR

Board: MX6UL

I2C:   ready

DRAM:  512 MiB

Setting up gmpi nand

NAND:  1024 MiB

MMC:   Inside FSU_config 0

FSL_SDHC: 0

*** Warning - bad CRC, using default environment

In:    serial

Out:   serial

Err:   serial

Net:   FEC0

Error: FEC0 address not set.

Normal Boot

Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x4000000, size 0x800000

8388608 bytes read: OK

NAND read: device 0 offset 0x5000000, size 0x100000

1048576 bytes read: OK

Kernel image @ 0x80800000 [ 0x000000 - 0x51f3e0 ]

## Flattened Device Tree blob at 83000000

   Booting using the fdt blob at 0x83000000

   Using Device Tree in place at 83000000, end 8300a8bb

Modify /soc/aips-bus@02000000/bee@02044000:status disabled

ft_system_setup for mx6

switch to ldo_bypass mode!

Starting kernel ...

//////////////////////////////////////////////// End of log

-

Thanks,

Dhvanil Patel

Labels (3)
0 Kudos
2 Replies

648 Views
dhvanil_patel1
Senior Contributor I

Hi igor,

Now it's working with new DDR. Due to hardware issue it is not working. I have tested with new hardware board and it is working.

-

Dhvanil

0 Kudos

648 Views
igorpadykov
NXP Employee
NXP Employee

Hi Dhvanil

though there is already DDR3 configuration available for new DDR  MT41K256M16TW

for custom board it is necessary to run ddr test and rebuild uboot with new ddr settings.

Is uboot working without nand, just  using sd ?

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos