IMX6UL u-boot read nand data error

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

IMX6UL u-boot read nand data error

607 Views
zhaopingyang_sg
Contributor III

CPU : imx6ul

I'm tring to read data from nand flash,found some data is always fix with 0xFn or 0xnF,show as follows:

zhaopingyang_sg_0-1675694897961.png

The error rule of the data is every two reads. The high quad bit of the 2018 byte in the second read data is fixed as 0xf, and the low quad bit of the 2019 byte is fixed as 0xf.

If two operations read the same page of nand flash, the second read is still wrong.

follows is some log add by myself and nand flash info

zhaopingyang_sg_1-1675695380881.pngzhaopingyang_sg_2-1675695415999.png

How can we solve this problem? 

thanks...

Tags (1)
0 Kudos
3 Replies

570 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @zhaopingyang_sg 

I hope you are doing well.
 
Please make sure you have correctly configured nand flash in u-boot.
 
Please refer to  imx6ul-14x14-evk-gpmi-weim.dts and specify the value of kernel_a env variable in u-boot.
 
Please try to reproduce this issue in Linux.
 
Thanks & Regards,
Sanket Parekh
0 Kudos

540 Views
zhaopingyang_sg
Contributor III

thanks for your reply.

I have changed the PINMUX  according to dtb. But the problem remains.Then I tested nand read operation in SPL and Linux,all of them works well.

the follows is the data read from nand for each page from 0xfe0 to 0xfe.Could you give me more advices? thanks...

zhaopingyang_sg_0-1678383711151.png

 

0 Kudos

527 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @zhaopingyang_sg 

I hope you are doing well.

Please make sure that the custom uboot configuration contains CONFIG_NAND_MXS=y option.
 
SPL and U-boot use separate drivers for nand, mxs_nand_spl.c, and mxs_nand.c respectively.
 
Please provide me with the u-boot version and kernel_a env variable for further debugging.
 
Thanks & Regards,
Sanket Parekh
0 Kudos