Nand Boot on IMX6UL

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

Nand Boot on IMX6UL

1,054 Views
jasonshao
Contributor II

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

Labels (1)
0 Kudos
7 Replies

771 Views
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

771 Views
jasonshao
Contributor II

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...

0 Kudos

771 Views
igorpadykov
NXP Employee
NXP Employee

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

i.MX6Q NAND boot issues 

Best regards
igor

0 Kudos

771 Views
jasonshao
Contributor II

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:

pastedImage_2.png

0 Kudos

771 Views
igorpadykov
NXP Employee
NXP Employee

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

0 Kudos

771 Views
jasonshao
Contributor II

yes, it reach uboot prompt.But can not read data out from the Nand, the error information as described above.

0 Kudos

771 Views
igorpadykov
NXP Employee
NXP Employee

please post this on uboot mail list

U-Boot Info Page 

0 Kudos