Skip to content

Commit

Permalink
imx8mm_var_dart: Add UUU script to flash Android on eMMC
Browse files Browse the repository at this point in the history
  • Loading branch information
m-p-s committed Oct 19, 2021
1 parent 8b3a3a7 commit 514e4d6
Show file tree
Hide file tree
Showing 4 changed files with 196 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
uuu_version 1.2.39

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f u-boot-imx8mm-var-dart-uuu.imx

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -f u-boot-imx8mm-var-dart-uuu.imx

# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f u-boot-imx8mm-var-dart-uuu.imx -offset 0x57c00
SDPU: jump
# }

# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f u-boot-imx8mm-var-dart-uuu.imx -skipspl
SDPV: jump
# }


FB: ucmd mmc dev 2
FB: ucmd setenv mmcdev 2
FB: ucmd setenv fastboot_dev mmc
FB: ucmd mmc partconf 2 0 0 0
FB: ucmd mmc partconf 2 0 0 0
FB: flash bootloader0 u-boot-imx8mm-var-dart.imx
FB: flash gpt partition-table.img
FB: flash dtbo_a dtbo-imx8mm-var-dart-dt8mcustomboard.img
FB: flash dtbo_b dtbo-imx8mm-var-dart-dt8mcustomboard.img
FB: flash boot_a boot.img
FB: flash boot_b boot.img
FB[-t 600000]: flash super super.img
FB[-t 600000]: erase misc
FB[-t 600000]: erase presistdata
FB[-t 600000]: erase fbmisc
FB[-t 600000]: erase metadata
FB[-t 600000]: erase userdata
FB: flash vbmeta_a vbmeta-imx8mm-var-dart-dt8mcustomboard.img --disable-verity
FB: flash vbmeta_b vbmeta-imx8mm-var-dart-dt8mcustomboard.img --disable-verity
FB: ucmd mmc partconf 2 0 0 0
FB: set_active _a
FB: done

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
uuu_version 1.2.39

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f u-boot-imx8mm-var-dart-uuu.imx

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -f u-boot-imx8mm-var-dart-uuu.imx

# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f u-boot-imx8mm-var-dart-uuu.imx -offset 0x57c00
SDPU: jump
# }

# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f u-boot-imx8mm-var-dart-uuu.imx -skipspl
SDPV: jump
# }


FB: ucmd mmc dev 2
FB: ucmd setenv mmcdev 2
FB: ucmd setenv fastboot_dev mmc
FB: ucmd mmc partconf 2 0 0 0
FB: ucmd mmc partconf 2 0 0 0
FB: flash bootloader0 u-boot-imx8mm-var-dart.imx
FB: flash gpt partition-table.img
FB: flash dtbo_a dtbo-imx8mm-var-dart-dt8mcustomboard-legacy.img
FB: flash dtbo_b dtbo-imx8mm-var-dart-dt8mcustomboard-legacy.img
FB: flash boot_a boot.img
FB: flash boot_b boot.img
FB[-t 600000]: flash super super.img
FB[-t 600000]: erase misc
FB[-t 600000]: erase presistdata
FB[-t 600000]: erase fbmisc
FB[-t 600000]: erase metadata
FB[-t 600000]: erase userdata
FB: flash vbmeta_a vbmeta-imx8mm-var-dart-dt8mcustomboard-legacy.img --disable-verity
FB: flash vbmeta_b vbmeta-imx8mm-var-dart-dt8mcustomboard-legacy.img --disable-verity
FB: ucmd mmc partconf 2 0 0 0
FB: set_active _a
FB: done

49 changes: 49 additions & 0 deletions scripts/uuu_scripts/emmc_burn_android_imx8mm_var_som.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
uuu_version 1.2.39

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f u-boot-imx8mm-var-dart-uuu.imx

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -f u-boot-imx8mm-var-dart-uuu.imx

# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f u-boot-imx8mm-var-dart-uuu.imx -offset 0x57c00
SDPU: jump
# }

# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f u-boot-imx8mm-var-dart-uuu.imx -skipspl
SDPV: jump
# }


FB: ucmd mmc dev 2
FB: ucmd setenv mmcdev 2
FB: ucmd setenv fastboot_dev mmc
FB: ucmd mmc partconf 2 0 0 0
FB: ucmd mmc partconf 2 0 0 0
FB: flash bootloader0 u-boot-imx8mm-var-dart.imx
FB: flash gpt partition-table.img
FB: flash dtbo_a dtbo-imx8mm-var-som-symphony.img
FB: flash dtbo_b dtbo-imx8mm-var-som-symphony.img
FB: flash boot_a boot.img
FB: flash boot_b boot.img
FB[-t 600000]: flash super super.img
FB[-t 600000]: erase misc
FB[-t 600000]: erase presistdata
FB[-t 600000]: erase fbmisc
FB[-t 600000]: erase metadata
FB[-t 600000]: erase userdata
FB: flash vbmeta_a vbmeta-imx8mm-var-som-symphony.img --disable-verity
FB: flash vbmeta_b vbmeta-imx8mm-var-som-symphony.img --disable-verity
FB: ucmd mmc partconf 2 0 0 0
FB: set_active _a
FB: done

49 changes: 49 additions & 0 deletions scripts/uuu_scripts/emmc_burn_android_imx8mm_var_som_legacy.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
uuu_version 1.2.39

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f u-boot-imx8mm-var-dart-uuu.imx

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -f u-boot-imx8mm-var-dart-uuu.imx

# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f u-boot-imx8mm-var-dart-uuu.imx -offset 0x57c00
SDPU: jump
# }

# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f u-boot-imx8mm-var-dart-uuu.imx -skipspl
SDPV: jump
# }


FB: ucmd mmc dev 2
FB: ucmd setenv mmcdev 2
FB: ucmd setenv fastboot_dev mmc
FB: ucmd mmc partconf 2 0 0 0
FB: ucmd mmc partconf 2 0 0 0
FB: flash bootloader0 u-boot-imx8mm-var-dart.imx
FB: flash gpt partition-table.img
FB: flash dtbo_a dtbo-imx8mm-var-som-symphony-legacy.img
FB: flash dtbo_b dtbo-imx8mm-var-som-symphony-legacy.img
FB: flash boot_a boot.img
FB: flash boot_b boot.img
FB[-t 600000]: flash super super.img
FB[-t 600000]: erase misc
FB[-t 600000]: erase presistdata
FB[-t 600000]: erase fbmisc
FB[-t 600000]: erase metadata
FB[-t 600000]: erase userdata
FB: flash vbmeta_a vbmeta-imx8mm-var-som-symphony-legacy.img --disable-verity
FB: flash vbmeta_b vbmeta-imx8mm-var-som-symphony-legacy.img --disable-verity
FB: ucmd mmc partconf 2 0 0 0
FB: set_active _a
FB: done

0 comments on commit 514e4d6

Please sign in to comment.