FUSE burn automation on iMX8QXP (UUU FB: ucmd fuse prog)

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

FUSE burn automation on iMX8QXP (UUU FB: ucmd fuse prog)

Jump to solution
1,536 Views
MistX
Contributor III

We are trying to automate FUSE burn for SRK hash on iMX8QXP SMARC module.

Executed script loads uboot, but does not burn eFUSES and just hangs after loading (OTG usb connection to kontron board). We tried several times with "+FB:" as discribed in DOCS (wrong syntax) and with "FB: ucmd setenv force_ecc_prog y". It changed nothing. SRK HASH Fuses are not burned automatically using UUU script.

 

Executed script:

uuu_version 1.4.139

SDPS: boot -f flash.signed.bin

FB: ucmd fuse prog -y 0 730 0xd3bc7aa8
FB: ucmd fuse prog -y 0 731 0xcd75e19b
FB: ucmd fuse prog -y 0 732 0x9b7ae1f0
FB: ucmd fuse prog -y 0 733 0x94d923c3
FB: ucmd fuse prog -y 0 734 0x1cda4fdc
FB: ucmd fuse prog -y 0 735 0x89555840
FB: ucmd fuse prog -y 0 736 0x671da289
FB: ucmd fuse prog -y 0 737 0x0bd94a3b
FB: ucmd fuse prog -y 0 738 0xd0870ae1
FB: ucmd fuse prog -y 0 739 0xfc982ea3
FB: ucmd fuse prog -y 0 740 0x71842ac6
FB: ucmd fuse prog -y 0 741 0xcc6623d6
FB: ucmd fuse prog -y 0 742 0x44d89489
FB: ucmd fuse prog -y 0 743 0x57a0e1a8
FB: ucmd fuse prog -y 0 744 0x4917ba6a
FB: ucmd fuse prog -y 0 745 0x4db773c2
FB: done

Spoiler
sudo ~/bin/uuu fu.uuu

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.139-0-g1a8f760

Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 0 [                                      ]                                                                                                                                                                                                                                    
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [                                      ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [                  2%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=>                5%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [==>               7%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [===>             10%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [====>            13%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=====>           15%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [======>          18%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=======>         21%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [========>        23%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=========>       26%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [==========>      29%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [===========>     31%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [============>    34%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=============>   37%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [==============>  39%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [===============> 42%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [================>45%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=================47%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=================50%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=================53%                  ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=================55%>                 ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=================58%=>                ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=================61%==>               ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=================63%===>              ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=================66%====>             ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=================69%=====>            ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=================71%======>           ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                         
5:3      1/ 1 [=================74%=======>          ] SDPS: boot -f sd_flash.signed.bin                                                                                                                                                                                                  
Success 0    Failure 0                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                           
5:3      1/ 1 [=================76%========>         ] SDPS: boot -f sd_flash.signed.bin                                                                                                    
Success 0    Failure 0                                                                                                                                                                      
                                                                                                                                                                                           
                                                                                                                                                                                           
5:3      1/ 1 [=================79%=========>        ] SDPS: boot -f sd_flash.signed.bin                                                                                                    
Success 0    Failure 0                                                                                                                                                                      
                                                                                                                                                                                           
                                                                                                                                                                                           
5:3      1/ 1 [=================82%==========>       ] SDPS: boot -f sd_flash.signed.bin                                                                                                    
Success 0    Failure 0                                                                                                                                                                      
                                                                                                                                                                                           
                                                                                                                                                                                           
5:3      1/ 1 [=================84%===========>      ] SDPS: boot -f sd_flash.signed.bin                                                                                                    
Success 0    Failure 0                                                                                                                                                                      
                                                                                                                                                                                           
                                                                                                                                                                                           
5:3      1/ 1 [=================87%============>     ] SDPS: boot -f sd_flash.signed.bin                                                                                                    
Success 0    Failure 0                                                                                                                                                                      
                                                                                                                                                                                           
                                                                                                                                                                                           
5:3      1/ 1 [=================90%=============>    ] SDPS: boot -f sd_flash.signed.bin                                                                                                    
Success 0    Failure 0                                                                                                                                                                      
                                                                                                                                                                                           
                                                                                                                                                                                           
5:3      1/ 1 [=================92%==============>   ] SDPS: boot -f sd_flash.signed.bin                                                                                                    
Success 0    Failure 0                                                                                                                                                                      
                                                                                                                                                                                           
                                                                                                                                                                                           
5:3      1/ 1 [=================95%===============>  ] SDPS: boot -f sd_flash.signed.bin                                                                                                    
Success 0    Failure 0                                                                                                                                                                      
                                                                                                                                                                                           
                                                                                                                                                                                           
5:3      1/ 1 [=================98%================> ] SDPS: boot -f sd_flash.signed.bin                                                                                                    
Success 0    Failure 0                                                                                                                                                                      
                                                                                                                                                                                           
                                                                                                                                                                                           
5:3      1/ 1 [=================100%=================] SDPS: boot -f sd_flash.signed.bin                                                                                                    
Success 0    Failure 0                                                                                                                                                                      
                                                                                                                                                                                           
                                                                                                                                                                                           
5:3      1/ 1 [=================100%=================] SDPS: boot -f sd_flash.signed.bin                                                                                                    
Success 0    Failure 0                                                                                                                                                                      
                                                                                                                                                                                           
                                                                                                                                                                                           
5:3      1/ 1 [=================100%=================] SDPS: boot -f sd_flash.signed.bin

UBOOT LOG (LOG_LEVEL=7):

 

Spoiler

..... ..... ..... ........
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0
cdns_irq_handler_thread() 0

infinite - cdns_irq_handler_thread() 0

 

Any ideas?

Tags (1)
0 Kudos
1 Solution
1,465 Views
MistX
Contributor III

Examing the sourses of uboot_samx8x-R13 (from kontron BSP), I have figured out that it does not contain "FASTBOOT_UUU_SUPPORT" config option and implementation of static void run_ucmd(char *, char *);. So, obviously, if you have kontron board with iMX processor you should port manually new version of uboot to obtain "FASTBOOT_UUU_SUPPORT". Thnx to Kontron engineers!

View solution in original post

0 Kudos
4 Replies
1,466 Views
MistX
Contributor III

Examing the sourses of uboot_samx8x-R13 (from kontron BSP), I have figured out that it does not contain "FASTBOOT_UUU_SUPPORT" config option and implementation of static void run_ucmd(char *, char *);. So, obviously, if you have kontron board with iMX processor you should port manually new version of uboot to obtain "FASTBOOT_UUU_SUPPORT". Thnx to Kontron engineers!

0 Kudos
1,533 Views
MistX
Contributor III

Important! Device is not OEM closed and FUSES are not burned before.

fuse read 0 730 16
Reading bank 0:

Word 0x000002da: 00000000 00000000 00000000 00000000
Word 0x000002de: 00000000 00000000 00000000 00000000
Word 0x000002e2: 00000000 00000000 00000000 00000000
Word 0x000002e6: 00000000 00000000 00000000 00000000

0 Kudos
1,504 Views
AldoG
NXP TechSupport
NXP TechSupport

 Hello,

I would like to know, if you see anything in the uboot log?

Also, is this the complete script that you're using?
If not, please share it

Best regards,
Aldo.

0 Kudos
1,482 Views
MistX
Contributor III

I used log_level=4 (default for kontron uboot build config) and it outputs nothing useful, while executing described script.

I mentioned above complete script that I used to program FUSES.

0 Kudos