From c0a27c51762ea0f9cb7cb05f7653ed5ec47054f2 Mon Sep 17 00:00:00 2001 From: Eric Lee Date: Fri, 7 Feb 2020 16:03:38 +0800 Subject: [PATCH] Add SPDV protocol in uuu script --- .../uuu/uuu-android-smarc-mx8mq-emmc.lst | 22 +++++++++------ .../smarc_mx8mq/uuu/uuu-android-smarc-mx8mq-sd.lst | 31 ++++++++++++++-------- 2 files changed, 34 insertions(+), 19 deletions(-) diff --git a/imx8m/smarc_mx8mq/uuu/uuu-android-smarc-mx8mq-emmc.lst b/imx8m/smarc_mx8mq/uuu/uuu-android-smarc-mx8mq-emmc.lst index e0be035..0ae6c09 100755 --- a/imx8m/smarc_mx8mq/uuu/uuu-android-smarc-mx8mq-emmc.lst +++ b/imx8m/smarc_mx8mq/uuu/uuu-android-smarc-mx8mq-emmc.lst @@ -1,17 +1,23 @@ uuu_version 1.1.81 # uuu scripts for imx8mq Android imx_pi9.0 eMMC -SDP: boot -f u-boot-smarcimx8mq_2g-uuu.imx +SDP: boot -f u-boot-imx8mq-smarcimx8mq_2g_uuu.imx # This command will be run when use SPL SDPU: delay 1000 -SDPU: write -f u-boot-smarcimx8mq_2g-uuu.imx -offset 0x57c00 +SDPU: write -f u-boot-imx8mq-smarcimx8mq_2g_uuu.imx -offset 0x57c00 SDPU: jump + +# This command will be run when use SDPV +SDPV: delay 1000 +SDPV: write -f u-boot-imx8mq-smarcimx8mq_2g_uuu.imx -offset 0x57c00 +SDPV: jump + # This command will be run when ROM support stream mode -SDPS: boot -f u-boot-imx8mq.imx +SDPS: boot -f u-boot-imx8mq-smarcimx8mq_2g.imx FB: ucmd setenv fastboot_dev mmc FB: ucmd setenv mmcdev 0 FB: ucmd mmc dev 0 -FB: flash bootloader0 u-boot-imx8mq.imx +FB: flash bootloader0 u-boot-imx8mq-smarcimx8mq_2g.imx FB[-t 600000]: flash gpt partition-table.img # erase environment variables of uboot @@ -24,12 +30,12 @@ FB: flash boot_a boot.img FB: flash boot_b boot.img FB[-t 100000]: flash system_a system.img FB[-t 100000]: flash system_b system.img -FB: flash vbmeta_a vbmeta-imx8mq.img -FB: flash vbmeta_b vbmeta-imx8mq.img +FB: flash vbmeta_a vbmeta-smarcimx8mq-hdmi.img +FB: flash vbmeta_b vbmeta-smarcimx8mq-hdmi.img FB: flash vendor_a vendor.img FB: flash vendor_b vendor.img -FB: flash dtbo_a dtbo-imx8mq.img -FB: flash dtbo_b dtbo-imx8mq.img +FB: flash dtbo_a dtbo-smarcimx8mq-hdmi.img +FB: flash dtbo_b dtbo-smarcimx8mq-hdmi.img # erase userdata and misc partition FB[-t 600000]: ERASE userdata diff --git a/imx8m/smarc_mx8mq/uuu/uuu-android-smarc-mx8mq-sd.lst b/imx8m/smarc_mx8mq/uuu/uuu-android-smarc-mx8mq-sd.lst index 36fad88..9a83281 100755 --- a/imx8m/smarc_mx8mq/uuu/uuu-android-smarc-mx8mq-sd.lst +++ b/imx8m/smarc_mx8mq/uuu/uuu-android-smarc-mx8mq-sd.lst @@ -1,32 +1,41 @@ uuu_version 1.1.81 -# uuu scripts for imx8mq Android imx_pi9.0 sd -SDP: boot -f u-boot-smarcimx8mq_2g-uuu.imx +# uuu scripts for imx8mq Android imx_pi9.0 eMMC +SDP: boot -f u-boot-imx8mq-smarcimx8mq_2g_uuu.imx # This command will be run when use SPL SDPU: delay 1000 -SDPU: write -f u-boot-smarcimx8mq_2g-uuu.imx -offset 0x57c00 +SDPU: write -f u-boot-imx8mq-smarcimx8mq_2g_uuu.imx -offset 0x57c00 SDPU: jump + +# This command will be run when use SDPV +SDPV: delay 1000 +SDPV: write -f u-boot-imx8mq-smarcimx8mq_2g_uuu.imx -offset 0x57c00 +SDPV: jump + # This command will be run when ROM support stream mode -SDPS: boot -f u-boot-imx8mq.imx +SDPS: boot -f u-boot-imx8mq-smarcimx8mq_2g.imx FB: ucmd setenv fastboot_dev mmc FB: ucmd setenv mmcdev 1 FB: ucmd mmc dev 1 -FB: flash bootloader0 u-boot-imx8mq.imx +FB: flash bootloader0 u-boot-imx8mq-smarcimx8mq_2g.imx FB[-t 600000]: flash gpt partition-table.img # erase environment variables of uboot +FB: ucmd mmc dev 1 FB: ucmd mmc erase 0x2000 8 +FB: ucmd mmc partconf 1 0 1 0 + FB: flash boot_a boot.img FB: flash boot_b boot.img -FB[-t 200000]: flash system_a system.img -FB[-t 200000]: flash system_b system.img -FB: flash vbmeta_a vbmeta-imx8mq.img -FB: flash vbmeta_b vbmeta-imx8mq.img +FB[-t 100000]: flash system_a system.img +FB[-t 100000]: flash system_b system.img +FB: flash vbmeta_a vbmeta-smarcimx8mq-hdmi.img +FB: flash vbmeta_b vbmeta-smarcimx8mq-hdmi.img FB: flash vendor_a vendor.img FB: flash vendor_b vendor.img -FB: flash dtbo_a dtbo-imx8mq.img -FB: flash dtbo_b dtbo-imx8mq.img +FB: flash dtbo_a dtbo-smarcimx8mq-hdmi.img +FB: flash dtbo_b dtbo-smarcimx8mq-hdmi.img # erase userdata and misc partition FB[-t 600000]: ERASE userdata -- 1.9.1