use ref_name as release name
[mfgtools.git] / uuu / qspi_burn_loader.lst
blob4028f18528b37f146e7337665b33e81a2ce10994
1 uuu_version 1.2.39
3 # @_flexspi.bin            | bootloader
4 # @_image   [_flexspi.bin] | image burn to flexspi, default is the same as bootloader
6 # This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
7 SDP: boot -f _flexspi.bin
9 # This command will be run when ROM support stream mode
10 # i.MX8QXP, i.MX8QM, skip QSPI header
11 SDPS: boot -f _flexspi.bin -skipfhdr
13 # These commands will be run when use SPL and will be skipped if no spl
14 # SDPU will be deprecated. please use SDPV instead of SDPU
15 # {
16 SDPU: delay 1000
17 SDPU: write -f _flexspi.bin -offset 0x10000 -skipfhdr
18 SDPU: jump
19 # }
21 # These commands will be run when use SPL and will be skipped if no spl
22 # if (SPL support SDPV)
23 # {
24 SDPV: delay 1000
25 SDPV: write -f _flexspi.bin -skipspl -skipfhdr
26 SDPV: jump
27 # }
29 FB: ucmd setenv fastboot_buffer ${loadaddr}
30 FB: download -f _image
32 FB: ucmd if test ! -n "$fastboot_bytes"; then setenv fastboot_bytes $filesize; else true; fi
34 # Check Image if include flexspi header
35 FB: ucmd if qspihdr dump ${fastboot_buffer}; then setenv qspihdr_exist yes; else setenv qspihdr_exist no; fi;
37 FB[-t 60000]: ucmd if test ${qspihdr_exist} = yes; then qspihdr init ${fastboot_buffer} ${fastboot_bytes} safe; else true; fi;
39 #if uboot can't support qspihdr command, use uboot image to write qspi image, which require image include qspi flash header
40 FB: ucmd if test ${qspihdr_exist} = no; then sf probe; else true; fi;
41 FB[-t 40000]: ucmd if test ${qspihdr_exist} = no; then sf erase 0 +${fastboot_bytes}; else true; fi;
42 FB[-t 20000]: ucmd if test ${qspihdr_exist} = no; then sf write ${fastboot_buffer} 0 ${fastboot_bytes}; else true; fi;
43 FB: done