UUU with iMX95

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

UUU with iMX95

196 Views
stoeanifm
Contributor I

Hi,
I want to download and run U-Boot on a iMX95 based system.
I created this script cmd.lst:

# {
SDPS: boot -f flash.bin
SDPS: done
SDPV: delay 1000
SDPV: write -f flash.bin -skipspl
SDPV: jump
SDPV: done
# }

If I follow this commands step by step on command line it works fine. 
But if I call
=> sudo /usr/bin/uuu -v -b ./cmd.lst 

it hangs

Wait for Known USB Device Appear...
New USB Device Attached at 1:41-636B3EF4AB264648
1:41-636B3EF4AB264648>Start Cmd:SDPS: boot -f flash.bin
100%1:41-636B3EF4AB264648>Okay (3.007s)
1:41-636B3EF4AB264648>Start Cmd:SDPS: done
1:41-636B3EF4AB264648>Okay (0s)


Is it not allowed to do this steps within one command list?
Or what is wrong with this command list?







0 Kudos
Reply
2 Replies

173 Views
yipingwang
NXP TechSupport
NXP TechSupport

Yes, SDPS and SDPV steps can be in one UUU command list. For i.MX95 the intended sequence is: first SDPS: boot -f flash.bin starts SPL, then SDPV: write -f flash.bin -skipspl and SDPV: jump complete/start U-Boot . The script examples I found use the same combined SDPS→SDPV flow without an SDPS: done between them .

What is wrong in your case is most likely the done placement, and possibly the way you invoke the script:

uuu_version 1.5.233

SDPS: boot -f flash.bin

SDPV: delay 1000

SDPV: write -f flash.bin -skipspl

SDPV: jump

Run it as a custom script file directly:

sudo /usr/bin/uuu -v ./cmd.lst

not as:

sudo /usr/bin/uuu -v -b ./cmd.lst

The -b option is documented for UUU built-in scripts such as sd , emmc , sd_all , or emmc_all , while a custom script file is normally passed directly to uuu . Also, done is described as the last command for the whole flow, so putting SDPS: done immediately after the first boot stage can make UUU stop that stage and wait for the next known USB device instead of continuing cleanly into the SDPV stage .

So I would change your file from:

SDPS: boot -f flash.bin

SDPS: done

SDPV: delay 1000

SDPV: write -f flash.bin -skipspl

SDPV: jump

SDPV: done

to:

uuu_version 1.5.233

SDPS: boot -f flash.bin

SDPV: delay 1000

SDPV: write -f flash.bin -skipspl

SDPV: jump

If it still waits at the SDPS→SDPV transition, try a newer UUU release; one i.MX95 report specifically recommends moving from uuu_1.5.201 to uuu_1.5.233 for hangs at 100% . You can also increase the stage-switch wait timeout with -T , which is the timeout for waiting for the next known USB device at a stage switch .

Use one script, but remove the intermediate done lines and run the file directly with uuu -v ./cmd.lst ; then update UUU or increase -T only if the board still does not re-enumerate into the SDPV stage.

 

0 Kudos
Reply

152 Views
stoeanifm
Contributor I

Hi and thank you@yipingwang 
Please excuse the late feedback....

When I changed the cmd-lst to:
SDPS: boot -f flash.bin
SDPV: delay 1000
SDPV: write -f flash.bin -skipspl
SDPV: jump
SDPV: done

and then switched to uuu_1.5.233 it worked fine.

But the call must be:
=> ./uuu -v -b ./cmd.lst

With
=> ./uuu -v ./cmd.lst
it seems uuu try to load the cmd.lst as a botloader binary.
It returns:
New USB Device Attached at 3:5-636B3EF4AB264648
3:5-636B3EF4AB264648>Start Cmd:SDPS: boot -f "./cmd.lst"




0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2408167%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUUU%20with%20iMX95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2408167%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3EI%20want%20to%20download%20and%20run%20U-Boot%20on%20a%20iMX95%20based%20system.%3CBR%20%2F%3EI%20created%20this%20script%20cmd.lst%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%23%20%7B%3CBR%20%2F%3ESDPS%3A%20boot%20-f%20flash.bin%3CBR%20%2F%3ESDPS%3A%20done%3CBR%20%2F%3ESDPV%3A%20delay%201000%3CBR%20%2F%3ESDPV%3A%20write%20-f%20flash.bin%20-skipspl%3CBR%20%2F%3ESDPV%3A%20jump%3CBR%20%2F%3ESDPV%3A%20done%3CBR%20%2F%3E%23%20%7D%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20I%20follow%20this%20commands%20step%20by%20step%20on%20command%20line%20it%20works%20fine.%26nbsp%3B%3CBR%20%2F%3EBut%20if%20I%20call%3CBR%20%2F%3E%3D%26gt%3B%26nbsp%3Bsudo%20%2Fusr%2Fbin%2Fuuu%20-v%20-b%20.%2Fcmd.lst%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3Eit%20hangs%3C%2FP%3E%3CP%3EWait%20for%20Known%20USB%20Device%20Appear...%3CBR%20%2F%3ENew%20USB%20Device%20Attached%20at%201%3A41-636B3EF4AB264648%3CBR%20%2F%3E1%3A41-636B3EF4AB264648%26gt%3BStart%20Cmd%3ASDPS%3A%20boot%20-f%20flash.bin%3CBR%20%2F%3E100%251%3A41-636B3EF4AB264648%26gt%3BOkay%20(3.007s)%3CBR%20%2F%3E1%3A41-636B3EF4AB264648%26gt%3BStart%20Cmd%3ASDPS%3A%20done%3CBR%20%2F%3E1%3A41-636B3EF4AB264648%26gt%3BOkay%20(0s)%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EIs%20it%20not%20allowed%20to%20do%20this%20steps%20within%20one%20command%20list%3F%3CBR%20%2F%3EOr%20what%20is%20wrong%20with%20this%20command%20list%3F%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2408317%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20UUU%20with%20iMX95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2408317%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYes%2C%26nbsp%3BSDPS%26nbsp%3Band%26nbsp%3BSDPV%26nbsp%3Bsteps%20can%20be%20in%20one%20UUU%20command%20list.%20For%20i.MX95%20the%20intended%20sequence%20is%3A%20first%26nbsp%3BSDPS%3A%20boot%20-f%20flash.bin%26nbsp%3Bstarts%20SPL%2C%20then%26nbsp%3BSDPV%3A%20write%20-f%20flash.bin%20-skipspl%26nbsp%3Band%26nbsp%3BSDPV%3A%20jump%26nbsp%3Bcomplete%2Fstart%20U-Boot%26nbsp%3B.%20The%20script%20examples%20I%20found%20use%20the%20same%20combined%20SDPS%E2%86%92SDPV%20flow%20without%20an%26nbsp%3BSDPS%3A%20done%26nbsp%3Bbetween%20them%26nbsp%3B.%3C%2FP%3E%0A%3CP%3EWhat%20is%20wrong%20in%20your%20case%20is%20most%20likely%20the%26nbsp%3Bdone%26nbsp%3Bplacement%2C%20and%20possibly%20the%20way%20you%20invoke%20the%20script%3A%3C%2FP%3E%0A%3CP%3Euuu_version%201.5.233%3C%2FP%3E%0A%3CP%3ESDPS%3A%20boot%20-f%20flash.bin%3C%2FP%3E%0A%3CP%3ESDPV%3A%20delay%201000%3C%2FP%3E%0A%3CP%3ESDPV%3A%20write%20-f%20flash.bin%20-skipspl%3C%2FP%3E%0A%3CP%3ESDPV%3A%20jump%3C%2FP%3E%0A%3CP%3ERun%20it%20as%20a%20custom%20script%20file%20directly%3A%3C%2FP%3E%0A%3CP%3Esudo%20%2Fusr%2Fbin%2Fuuu%20-v%20.%2Fcmd.lst%3C%2FP%3E%0A%3CP%3Enot%20as%3A%3C%2FP%3E%0A%3CP%3Esudo%20%2Fusr%2Fbin%2Fuuu%20-v%20-b%20.%2Fcmd.lst%3C%2FP%3E%0A%3CP%3EThe%26nbsp%3B-b%26nbsp%3Boption%20is%20documented%20for%20UUU%20built-in%20scripts%20such%20as%26nbsp%3Bsd%26nbsp%3B%2C%26nbsp%3Bemmc%26nbsp%3B%2C%26nbsp%3Bsd_all%26nbsp%3B%2C%20or%26nbsp%3Bemmc_all%26nbsp%3B%2C%20while%20a%20custom%20script%20file%20is%20normally%20passed%20directly%20to%26nbsp%3Buuu%26nbsp%3B.%20Also%2C%26nbsp%3Bdone%26nbsp%3Bis%20described%20as%20the%20last%20command%20for%20the%20whole%20flow%2C%20so%20putting%26nbsp%3BSDPS%3A%20done%26nbsp%3Bimmediately%20after%20the%20first%20boot%20stage%20can%20make%20UUU%20stop%20that%20stage%20and%20wait%20for%20the%20next%20known%20USB%20device%20instead%20of%20continuing%20cleanly%20into%20the%26nbsp%3BSDPV%26nbsp%3Bstage%26nbsp%3B.%3C%2FP%3E%0A%3CP%3ESo%20I%20would%20change%20your%20file%20from%3A%3C%2FP%3E%0A%3CP%3ESDPS%3A%20boot%20-f%20flash.bin%3C%2FP%3E%0A%3CP%3ESDPS%3A%20done%3C%2FP%3E%0A%3CP%3ESDPV%3A%20delay%201000%3C%2FP%3E%0A%3CP%3ESDPV%3A%20write%20-f%20flash.bin%20-skipspl%3C%2FP%3E%0A%3CP%3ESDPV%3A%20jump%3C%2FP%3E%0A%3CP%3ESDPV%3A%20done%3C%2FP%3E%0A%3CP%3Eto%3A%3C%2FP%3E%0A%3CP%3Euuu_version%201.5.233%3C%2FP%3E%0A%3CP%3ESDPS%3A%20boot%20-f%20flash.bin%3C%2FP%3E%0A%3CP%3ESDPV%3A%20delay%201000%3C%2FP%3E%0A%3CP%3ESDPV%3A%20write%20-f%20flash.bin%20-skipspl%3C%2FP%3E%0A%3CP%3ESDPV%3A%20jump%3C%2FP%3E%0A%3CP%3EIf%20it%20still%20waits%20at%20the%20SDPS%E2%86%92SDPV%20transition%2C%20try%20a%20newer%20UUU%20release%3B%20one%20i.MX95%20report%20specifically%20recommends%20moving%20from%26nbsp%3Buuu_1.5.201%26nbsp%3Bto%26nbsp%3Buuu_1.5.233%26nbsp%3Bfor%20hangs%20at%20100%25%26nbsp%3B.%20You%20can%20also%20increase%20the%20stage-switch%20wait%20timeout%20with%26nbsp%3B-T%26nbsp%3B%2C%20which%20is%20the%20timeout%20for%20waiting%20for%20the%20next%20known%20USB%20device%20at%20a%20stage%20switch%26nbsp%3B.%3C%2FP%3E%0A%3CP%3EUse%20one%20script%2C%20but%20remove%20the%20intermediate%26nbsp%3Bdone%26nbsp%3Blines%20and%20run%20the%20file%20directly%20with%26nbsp%3Buuu%20-v%20.%2Fcmd.lst%26nbsp%3B%3B%20then%20update%20UUU%20or%20increase%26nbsp%3B-T%26nbsp%3Bonly%20if%20the%20board%20still%20does%20not%20re-enumerate%20into%20the%20SDPV%20stage.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2409190%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20UUU%20with%20iMX95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2409190%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3Band%26nbsp%3Bthank%26nbsp%3Byou%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F52411%22%20target%3D%22_blank%22%3E%40yipingwang%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EPlease%20excuse%20the%20late%20feedback....%3CBR%20%2F%3E%3CBR%20%2F%3EWhen%20I%20changed%20the%20cmd-lst%20to%3A%3CBR%20%2F%3ESDPS%3A%20boot%20-f%20flash.bin%3CBR%20%2F%3ESDPV%3A%20delay%201000%3CBR%20%2F%3ESDPV%3A%20write%20-f%20flash.bin%20-skipspl%3CBR%20%2F%3ESDPV%3A%20jump%3CBR%20%2F%3ESDPV%3A%20done%3CBR%20%2F%3E%3CBR%20%2F%3Eand%20then%20switched%20to%20uuu_1.5.233%20it%20worked%20fine.%3CBR%20%2F%3E%3CBR%20%2F%3EBut%20the%20call%20must%20be%3A%3CBR%20%2F%3E%3D%26gt%3B%20.%2Fuuu%20-v%20-b%20.%2Fcmd.lst%3CBR%20%2F%3E%3CBR%20%2F%3EWith%3CBR%20%2F%3E%3D%26gt%3B%20.%2Fuuu%20-v%20.%2Fcmd.lst%3CBR%20%2F%3Eit%20seems%20uuu%20try%20to%20load%20the%20cmd.lst%20as%20a%20botloader%20binary.%3CBR%20%2F%3EIt%20returns%3A%3CBR%20%2F%3ENew%20USB%20Device%20Attached%20at%203%3A5-636B3EF4AB264648%3CBR%20%2F%3E3%3A5-636B3EF4AB264648%26gt%3BStart%20Cmd%3ASDPS%3A%20boot%20-f%20%22.%2Fcmd.lst%22%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E