AnsweredAssumed Answered

uuu to flash u-boot to qpsi nor flash

Question asked by Gaston Bassi on Sep 2, 2019
Latest reply on Sep 11, 2019 by Aldo Gutierrez

Hello,

I am trying to flash stock uboot to the built-on QSPI NOR FLASH  of my iMX6ULEVK 14x14 board.

 

  • I already put the jumpers in the proper position (Serial Download Protocol and Boot from QSPI flash
  • I downloaded stock image and also git code of uboot

 

I would like to confirm some things first:

 

Q1. Is this file (u-boot-imx6ulevk_qspi1.imx) the right one? I took it from this image: L4.1.15_1.1.0_ga_images_MX6ULEVK

Q2. Why I cannot find mx6ulevk within the uboot git. (remotes/origin/imx_v2016.03_4.1.15_2.0.0_ga) (I didn't find

L4.1.15_1.1.0_ga)

Q3. ./uuu -b qspi [uboot-qspi.imx] hangs.

Q4. Is it, in fact, uuu the latest mfgtools?

 

Since I didn't find the mx6ulevk in the uboot source, I tried to flash the one from stock image.

1. Trying to flash uboot.imx only ...

 sudo ../uuu -b qspi u-boot-imx6ulevk_qspi1.imx
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.3.63-0-gea1d1ee

 

Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 0 [                                      ]                                                                                               
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [                                      ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [                  0%                  ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [=================100%=================] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [                  0%                  ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [=================100%=================] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [                  0%                  ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [==>               8%                  ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [=====>           17%                  ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [========>        26%                  ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [============>    35%                  ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [===============> 43%                  ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [=================52%                  ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [=================61%==>               ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [=================70%=====>            ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [=================78%========>         ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [=================87%============>     ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [=================96%===============>  ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [=================100%=================] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [                  0%                  ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [=================100%=================] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [                  0%                  ] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [=================100%=================] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 1 [=================100%=================] SDP: boot -f u-boot-imx6ulevk_qspi1.imx                                                       
Success 0    Failure 0                                                                                                                              
                                                                                                                                                    
2:12     1/ 1 [=================100%=================] SDP: boot -f u-boot-imx6ulevk_qspi1.imx  

(Hangs there)

And in the serial console says:

 

I can perform reset command or hard reset from board and go back to same state.

 

Q5: What does "Bad Linux ARM zImage magic!" means?

 

2. Trying to download uboot, zImage, and .dtb ...

 

sudo ../uuu u-boot-imx6ulevk_qspi1.imx zImage-imx6ulevk.bin zImage-imx6ul-14x14-evk.dtb
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.3.63-0-gea1d1ee

 

Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 0 [                                      ]                                                                                               
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [                                      ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [                  0%                  ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [=================100%=================] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [                  0%                  ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [=================100%=================] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [                  0%                  ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [==>               8%                  ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [=====>           17%                  ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [========>        26%                  ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [============>    35%                  ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [===============> 43%                  ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [=================52%                  ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [=================61%==>               ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [=================70%=====>            ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [=================78%========>         ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [=================87%============>     ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [=================96%===============>  ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [=================100%=================] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [                  0%                  ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [=================100%=================] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [                  0%                  ] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [=================100%=================] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     1/ 2 [=================100%=================] SDP: boot -f "u-boot-imx6ulevk_qspi1.imx"                                                     
Success 0    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     2/ 2 [=================100%=================] SDP: done                                                                                     
Success 1    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     2/ 2 [Done                                  ] SDP: done                                                                                     
Success 1    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     2/ 2 [Done                                  ] SDP: done                                                                                     
Success 1    Failure 0                                                                                                                              
                                                                                                                                                     
2:12     2/ 2 [Done                                  ] SDP: done        

Now we can see, the "Done" outputs and then the console returns (which is a good sign).

 

In the serial terminal I see this:

 

If I perform reset command or hard reset from board, the serial outputs hangs.

 

 

Outcomes