Commit c0a27c51762ea0f9cb7cb05f7653ed5ec47054f2

Authored by Eric Lee
1 parent 79edc1b632

Add SPDV protocol in uuu script

Showing 2 changed files with 34 additions and 19 deletions Inline Diff

imx8m/smarc_mx8mq/uuu/uuu-android-smarc-mx8mq-emmc.lst
1 uuu_version 1.1.81 1 uuu_version 1.1.81
2 # uuu scripts for imx8mq Android imx_pi9.0 eMMC 2 # uuu scripts for imx8mq Android imx_pi9.0 eMMC
3 SDP: boot -f u-boot-smarcimx8mq_2g-uuu.imx 3 SDP: boot -f u-boot-imx8mq-smarcimx8mq_2g_uuu.imx
4 # This command will be run when use SPL 4 # This command will be run when use SPL
5 SDPU: delay 1000 5 SDPU: delay 1000
6 SDPU: write -f u-boot-smarcimx8mq_2g-uuu.imx -offset 0x57c00 6 SDPU: write -f u-boot-imx8mq-smarcimx8mq_2g_uuu.imx -offset 0x57c00
7 SDPU: jump 7 SDPU: jump
8
9 # This command will be run when use SDPV
10 SDPV: delay 1000
11 SDPV: write -f u-boot-imx8mq-smarcimx8mq_2g_uuu.imx -offset 0x57c00
12 SDPV: jump
13
8 # This command will be run when ROM support stream mode 14 # This command will be run when ROM support stream mode
9 SDPS: boot -f u-boot-imx8mq.imx 15 SDPS: boot -f u-boot-imx8mq-smarcimx8mq_2g.imx
10 16
11 FB: ucmd setenv fastboot_dev mmc 17 FB: ucmd setenv fastboot_dev mmc
12 FB: ucmd setenv mmcdev 0 18 FB: ucmd setenv mmcdev 0
13 FB: ucmd mmc dev 0 19 FB: ucmd mmc dev 0
14 FB: flash bootloader0 u-boot-imx8mq.imx 20 FB: flash bootloader0 u-boot-imx8mq-smarcimx8mq_2g.imx
15 FB[-t 600000]: flash gpt partition-table.img 21 FB[-t 600000]: flash gpt partition-table.img
16 22
17 # erase environment variables of uboot 23 # erase environment variables of uboot
18 FB: ucmd mmc dev 0 0 24 FB: ucmd mmc dev 0 0
19 FB: ucmd mmc erase 0x2000 8 25 FB: ucmd mmc erase 0x2000 8
20 26
21 FB: ucmd mmc partconf 0 0 1 0 27 FB: ucmd mmc partconf 0 0 1 0
22 28
23 FB: flash boot_a boot.img 29 FB: flash boot_a boot.img
24 FB: flash boot_b boot.img 30 FB: flash boot_b boot.img
25 FB[-t 100000]: flash system_a system.img 31 FB[-t 100000]: flash system_a system.img
26 FB[-t 100000]: flash system_b system.img 32 FB[-t 100000]: flash system_b system.img
27 FB: flash vbmeta_a vbmeta-imx8mq.img 33 FB: flash vbmeta_a vbmeta-smarcimx8mq-hdmi.img
28 FB: flash vbmeta_b vbmeta-imx8mq.img 34 FB: flash vbmeta_b vbmeta-smarcimx8mq-hdmi.img
29 FB: flash vendor_a vendor.img 35 FB: flash vendor_a vendor.img
30 FB: flash vendor_b vendor.img 36 FB: flash vendor_b vendor.img
31 FB: flash dtbo_a dtbo-imx8mq.img 37 FB: flash dtbo_a dtbo-smarcimx8mq-hdmi.img
32 FB: flash dtbo_b dtbo-imx8mq.img 38 FB: flash dtbo_b dtbo-smarcimx8mq-hdmi.img
33 39
34 # erase userdata and misc partition 40 # erase userdata and misc partition
35 FB[-t 600000]: ERASE userdata 41 FB[-t 600000]: ERASE userdata
36 FB: ERASE misc 42 FB: ERASE misc
37 FB[-t 100000]: ERASE presistdata 43 FB[-t 100000]: ERASE presistdata
38 FB[-t 100000]: ERASE fbmisc 44 FB[-t 100000]: ERASE fbmisc
39 45
40 FB: done 46 FB: done
41 47
imx8m/smarc_mx8mq/uuu/uuu-android-smarc-mx8mq-sd.lst
1 uuu_version 1.1.81 1 uuu_version 1.1.81
2 # uuu scripts for imx8mq Android imx_pi9.0 sd 2 # uuu scripts for imx8mq Android imx_pi9.0 eMMC
3 SDP: boot -f u-boot-smarcimx8mq_2g-uuu.imx 3 SDP: boot -f u-boot-imx8mq-smarcimx8mq_2g_uuu.imx
4 # This command will be run when use SPL 4 # This command will be run when use SPL
5 SDPU: delay 1000 5 SDPU: delay 1000
6 SDPU: write -f u-boot-smarcimx8mq_2g-uuu.imx -offset 0x57c00 6 SDPU: write -f u-boot-imx8mq-smarcimx8mq_2g_uuu.imx -offset 0x57c00
7 SDPU: jump 7 SDPU: jump
8
9 # This command will be run when use SDPV
10 SDPV: delay 1000
11 SDPV: write -f u-boot-imx8mq-smarcimx8mq_2g_uuu.imx -offset 0x57c00
12 SDPV: jump
13
8 # This command will be run when ROM support stream mode 14 # This command will be run when ROM support stream mode
9 SDPS: boot -f u-boot-imx8mq.imx 15 SDPS: boot -f u-boot-imx8mq-smarcimx8mq_2g.imx
10 16
11 FB: ucmd setenv fastboot_dev mmc 17 FB: ucmd setenv fastboot_dev mmc
12 FB: ucmd setenv mmcdev 1 18 FB: ucmd setenv mmcdev 1
13 FB: ucmd mmc dev 1 19 FB: ucmd mmc dev 1
14 FB: flash bootloader0 u-boot-imx8mq.imx 20 FB: flash bootloader0 u-boot-imx8mq-smarcimx8mq_2g.imx
15 FB[-t 600000]: flash gpt partition-table.img 21 FB[-t 600000]: flash gpt partition-table.img
16 22
17 # erase environment variables of uboot 23 # erase environment variables of uboot
24 FB: ucmd mmc dev 1
18 FB: ucmd mmc erase 0x2000 8 25 FB: ucmd mmc erase 0x2000 8
19 26
27 FB: ucmd mmc partconf 1 0 1 0
28
20 FB: flash boot_a boot.img 29 FB: flash boot_a boot.img
21 FB: flash boot_b boot.img 30 FB: flash boot_b boot.img
22 FB[-t 200000]: flash system_a system.img 31 FB[-t 100000]: flash system_a system.img
23 FB[-t 200000]: flash system_b system.img 32 FB[-t 100000]: flash system_b system.img
24 FB: flash vbmeta_a vbmeta-imx8mq.img 33 FB: flash vbmeta_a vbmeta-smarcimx8mq-hdmi.img
25 FB: flash vbmeta_b vbmeta-imx8mq.img 34 FB: flash vbmeta_b vbmeta-smarcimx8mq-hdmi.img
26 FB: flash vendor_a vendor.img 35 FB: flash vendor_a vendor.img
27 FB: flash vendor_b vendor.img 36 FB: flash vendor_b vendor.img
28 FB: flash dtbo_a dtbo-imx8mq.img 37 FB: flash dtbo_a dtbo-smarcimx8mq-hdmi.img
29 FB: flash dtbo_b dtbo-imx8mq.img 38 FB: flash dtbo_b dtbo-smarcimx8mq-hdmi.img
30 39
31 # erase userdata and misc partition 40 # erase userdata and misc partition
32 FB[-t 600000]: ERASE userdata 41 FB[-t 600000]: ERASE userdata
33 FB: ERASE misc 42 FB: ERASE misc
34 FB[-t 100000]: ERASE presistdata 43 FB[-t 100000]: ERASE presistdata
35 FB[-t 100000]: ERASE fbmisc 44 FB[-t 100000]: ERASE fbmisc
36 45
37 FB: done 46 FB: done
38 47