To achieve more flexibility, two script files are provided to invoke UUU to automatically flash all Android images.
• uuu_imx_android_flash.sh for Linux OS
• uuu_imx_android_flash.bat for Windows OS
For this release, these two scripts are validated on UUU 1.2.91 version. Download corresponding version from github:
• For Linux OS, download the file named "uuu".
• For Windows OS, download the file named "uuu.exe".
Because the two script files will direclty invoke UUU, make sure that UUU is in a path contained by the system environment
variable of "PATH".
Perform the following steps to download the board images:
1. Download the UUU binary file from github as described before. Install UUU into a directory contained by the system
environment variable of "PATH".
2. Make the board enter serial download mode.
• For Rev. B boards, change the first two bits of board's sw1101 to 10 (from 1-2 bit) to enter serial download
mode.
• For Rev. C boards, change the first four bits of board's sw1101 to 1010 (from 1-4 bit) to enter serial download
mode.
3. Power on the board. Use the USB cable on the board OTG port to connect your PC with the board.
4. Decompress release_package/android_p9.0.0_2.0.0-ga_image_8mmevk.tar.gz, which contains the image files and
uuu_imx_android_flash tool.
5. Execute the uuu_imx_android_flash tool to flash images.
The uuu_imx_android_flash tool can be executed with options to get help information and specify the images to be
flashed. For i.MX 8M Mini board, related options are described as follows
Table 2. Options for uuu_imx_android_flash
tool
Option
Description
-h
Displays the help information of this tool.
-f
soc_name
Specifies the SoC information. For i.MX 8M Mini, it
should be "imx8mm". This option is mandatory.
-a
Only flashes slot a. If this option and "-b" option are
not used, slots a and b are both flashed.
-b
Only flashes slot b. If this option and "-a" option are
not used, slots a and b are both flashed.
-c card_size
Specifies which partition table image file to flash. For
i.MX 8M Mini, it can be followed with "7" or "28". If
this option is not used, default "partition-table.img" is
flashed.
-m
Flashes Cortex-M4 image. If this option is not used,
Cortex-M4 image is not flashed.
-d
dev
Specifies some images with "dev" in its name. For
i.MX 8M Mini, it can be "m4", "mipi-panel", "ddr4". If
this option is not used, default dtbo and vbmeta
images are flashed.
-e
Erases user data after images are flashed.
-D
directory
Specifies the directory in which there are the images
to be flashed. If this option is not used, images in the
current working directory are flashed.
Table continues on the next page...
Working with the i.MX 8M Mini EVK Board
Android™ Quick Start Guide, Rev. P9.0.0_2.0.0-ga, 04/2019
6
NXP Semiconductors