uuu to flash u-boot to qpsi nor flash

cancel
Showing results for 
Search instead for 
Did you mean: 

uuu to flash u-boot to qpsi nor flash

785 Views
Contributor II

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:

pastedImage_3.png

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:

pastedImage_5.png

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

Labels (2)
Tags (3)
0 Kudos
3 Replies

217 Views
NXP TechSupport
NXP TechSupport

Hello,

 

Yes it is the correct one, also UUU is the latest MFGtool, for it to work properlly it needs the fastboot utility to be enabled in uboot, unfortunately old version of uboot doesn't support these, it would need a custom script for it to work, similar to what is done here:

https://github.com/NXPmicro/mfgtools/issues/46

 

Thank you,

Best regards,

Aldo

0 Kudos

217 Views
Contributor II

Ok, I'd like to use a newer version that can support it.

I am trying with this (remotes/origin/imx_v2017.03_4.9.11_1.0.0_ga), however, I cannot make a proper defconfig.

I tried:

make mx6ul_defconfig

make mx6ul_14x14_evk_defconfig

make mx6ul_evk_defconfig

It says no rule to make target.

Which git repository and target should I use?

Thanks

0 Kudos

217 Views
NXP TechSupport
NXP TechSupport

Hello,

 

Sorry for the delayed response, please take a look to the attached "i.MX_BSP_Porting_Guide.pdf" in section 3.1.1 How to build U-Boot in standalone environment.

 

I'll also attach the UUU documentation, take a look to the section 10 Uboot config requirement.

 

Hope this helps,

Kind regards,

Aldo.

0 Kudos