Hi,
I used uboot-imx-imx_v2016.03_4.1.15_2.0.0_ga source code on my IMX6UL board, but it failed when read data from nand flash(MT29F2G08ABAEA),below is the information:
=> nand read ${loadaddr} 0x4000000 0x800000
NAND read: device 0 offset 0x4000000, size 0x800000
NAND read from offset 4000000 failed -74
0 bytes read: ERROR
Command failed, result=1
Hi Jason
one can check if defined CONFIG_SYS_USE_NAND in uboot/include/configs/mx6ul_14x14_evk.h
Review sect.2.8 NAND flash i.MX6UL EVK Guide
https://www.nxp.com/docs/en/user-guide/IMX6ULEVKHUG.pdf
Program NAND with MFG Tools from link
i.MX 6 / i.MX 7 Series Software and Development Tool|NXP
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi igor,
I have double checked the configs, it is well. And the MFG tools are also right. But I can not read data out from Nand Flash. Please help...
what is real issue here as you mentioned two different problems:
"nand boot" and "uboot failed ..when read data from nand flash" ,
had you checked nand signals with oscilloscope ?
For nand boot debug one can follow description on
Best regards
igor
Hi igor,
They are the same thing. When boot from nand,it need read env settings and kernel from Nand flash,all failed. When I do a 'nand read' comman in main_loop console manually, it failed too. The EEROR information are all like this:
"NAND read from offset xx failed -74"
Below is detials:
so what happens when processors boots from nand, does it reach uboot prompt.
If not one can attach jtag and check boot configuration in SRC_SBMR1,2
registers and check boot data at 0x907400 as described on
https://community.nxp.com/thread/307723
~igor
yes, it reach uboot prompt.But can not read data out from the Nand, the error information as described above.
please post this on uboot mail list