I am working with a custom board using an imx8mq Variscite SOM with eMMC only (no SD) and have successfully used uuu to load linux images using uuu, but am having difficulty loading android 10. I see posts for both 'uuu android.zip' and 'uuu-android-mx8mm-evk-emmc.lst', but I do not know how to create android.zip and cannot find the .lst script which I may be able to modify for my situation.
Any help would be appreciated.
--tnx
--tom
My Arrow field engineer helped me discover the uuu_imx_android_flash.sh script in the android build output directory.
I've been messing with it and have made some progress, but now it appears that the eMMC load hangs. I made a couple of changes to the script to accept var-dart et al in order to align it with my build output. I also added -v -V to the uuu args.
Here is the generated uuu.lst file:
uuu_version 1.3.102
SDP: boot -f u-boot-imx8mq-var-dart-uuu.imx
SDPU: delay 1000
SDPU: write -f u-boot-imx8mq-var-dart-uuu.imx -offset 0x57c00
SDPU: jump
SDPV: delay 1000
SDPV: write -f u-boot-imx8mq-var-dart-uuu.imx -skipspl
SDPV: jump
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev 0
FB: ucmd mmc dev 0
FB: ucmd mmc dev 0 0
FB: ucmd mmc erase 0x2000 0x8
FB: ucmd mmc partconf 0 1 1 1
FB: flash bootloader0 u-boot-imx8mq-var-dart.imx
FB: flash gpt partition-table.img
FB: ucmd setenv fastboot_dev sata
FB: ucmd setenv fastboot_dev mmc
FB: flash dtbo_a dtbo-imx8mq-var-dart-sd-hdmi.img
FB: flash boot_a boot.img
FB: flash system_a system.img
FB: flash vendor_a vendor.img
FB: flash product_a product.img
FB: flash vbmeta_a vbmeta-imx8mq-var-dart-sd-hdmi.img
FB[-t 600000]: erase misc
FB[-t 600000]: erase presistdata
FB[-t 600000]: erase fbmisc
FB: set_active a
FB[-t 600000]: erase userdata
FB: done
Here is my script call and output:
~/var_imx-android-10.0.0_1.0.0/android_build/out/target/product/dart_mx8mq$ sudo ./uuu_imx_android_flash.sh -f imx8mq -a -e -t emmc -u var-dart -d var-dart-sd-hdmi -p var-dart
This script is validated with uuu 1.3.102 version, please align with this version.
dtbo is supported
dual slot is supported
generate lines to flash u-boot-imx8mq-var-dart.imx to the partition of bootloader0
generate lines to flash partition-table.img to the partition of gpt
generate lines to flash dtbo-imx8mq-var-dart-sd-hdmi.img to the partition of dtbo_a
generate lines to flash boot.img to the partition of boot_a
generate lines to flash system.img to the partition of system_a
generate lines to flash vendor.img to the partition of vendor_a
generate lines to flash product.img to the partition of product_a
generate lines to flash vbmeta-imx8mq-var-dart-sd-hdmi.img to the partition of vbmeta_a
uuu script generated, start to invoke uuu with the generated uuu script
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.3.154-0-g47ddef5
Build in config:
Pctl Chip Vid Pid BcdVersion
==================================================
SDPS: MX8QXP 0x1fc9 0x012f [0x0002..0xffff]
SDPS: MX8QM 0x1fc9 0x0129 [0x0002..0xffff]
SDPS: MX8DXL 0x1fc9 0x0147
SDPS: MX28 0x15a2 0x004f
SDPS: MX815 0x1fc9 0x013e
SDPS: MX865 0x1fc9 0x0146
SDP: MX7D 0x15a2 0x0076
SDP: MX6Q 0x15a2 0x0054
SDP: MX6D 0x15a2 0x0061
SDP: MX6SL 0x15a2 0x0063
SDP: MX6SX 0x15a2 0x0071
SDP: MX6UL 0x15a2 0x007d
SDP: MX6ULL 0x15a2 0x0080
SDP: MX6SLL 0x1fc9 0x0128
SDP: MX7ULP 0x1fc9 0x0126
SDP: MXRT106X 0x1fc9 0x0135
SDP: MX8MM 0x1fc9 0x0134
SDP: MX8MQ 0x1fc9 0x012b
SDPU: SPL 0x0525 0xb4a4 [0x0000..0x04ff]
SDPV: SPL1 0x0525 0xb4a4 [0x0500..0x9998]
SDPU: SPL 0x0525 0xb4a4 [0x9999..0x9999]
SDPU: SPL 0x3016 0x1001 [0x0000..0x04ff]
SDPV: SPL1 0x3016 0x1001 [0x0500..0x9998]
FBK: 0x066f 0x9afe
FBK: 0x066f 0x9bff
FB: 0x0525 0xa4a5
FB: 0x18d1 0x0d02
Wait for Known USB Device Appear...
New USB Device Attached at 1:21
1:21>Start Cmd:SDP: boot -f u-boot-imx8mq-var-dart-uuu.imx
6400%1:21>Okay (2.68s)
^C (I interrupted here after waiting for a while without any signs of progress)
Here is the device console output:
U-Boot SPL 2019.04-41456-g4de18fd2b7 (Jul 21 2020 - 07:55:47 -0500)
PMIC: PFUZE100 ID=0x10
Hi Tom
for building image one can look at sect.3 Building the Android platform for i.MX Android User’s Guide
Android OS for i.MX Applications Processors | NXP
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks for helping on this Igor. Let me explain more of the details. I am able to build the android image set successfully. I have even been able to load built images onto the variscite demo board, which has SD. My problem is loading our custom board which only has eMMC. I am running under Ubuntu, not windows. I have successfully used the uuu tool under Ubuntu to load the linux build onto eMMC (via USB). I see references to being able to either use 'uuu android.zip' to load eMMC via USB and 'uuu uuu-android-mx8mm-evk-emmc.lst'. I believe that if I can find a .lst file example, I can tailor it to our system. Or, if I knew what files to zip together, that may work too. I just don't see instructions for either of these in the documentation or other forum questions. Do I really have to run Windows to do this?