![NXP Semiconductors ASUG User Manual Download Page 12](http://html1.mh-extra.com/html/nxp-semiconductors/asug/asug_user-manual_1721768012.webp)
Table 10. fastboot_imx_flashall script
Name
Host system to execute the script
fastboot_imx_flashall.sh
Linux OS
fastboot_imx_flashall.bat
Windows OS
With the help of fastboot_imx_flashall scripts, you do not need to use fastboot to flash Android images one-by-one manually.
These scripts will automatically flash all images with only one command.
fastboot can be built with Android build system. Based on Section 3, which introduces how to build android images, perform the
following steps to build fastboot:
$ cd ${MY_ANDROID}
$ make -j4 fastboot
After the build process finishes building fastboot, the directory to find the fastboot is as follows:
• Linux version binary file: ${MY_ANDROID}/host/linux-x86/bin/
• Windows version binary file: ${MY_ANDROID}/host/windows-x86/bin/
The way to use these scripts is follows:
• Linux shell script usage: sudo fastboot_imx_flashall.sh <option>
• Windows batch script usage: fastboot_imx_flashall.bat <option>
Options:
-h Displays this help message
-f soc_name Flashes the Android image file with soc_name
-a Only flashes the image to slot_a
-b Only flashes the image to slot_b
-c card_size Optional setting: 7 / 14 / 28
If it is not set, use partition-table.img (default).
If it is set to 7, use partition-table-7GB.img for 8 GB SD card.
If it is set to 14, use partition-table-14GB.img for 16 GB SD card.
If it is set to 28, use partition-table-28GB.img for 32 GB SD card.
Make sure that the corresponding file exists on your platform.
-m Flashes the MCU image.
-u uboot_feature Flashes U-Boot or SPL&bootloader images with "uboot_feature" in their names.
For Standard Android:
If not set, default U-Boot image is flashed.
For Android Automative:
If not set, default SPL&bootloader images is flashed.
-d dtb_feature Flashes dtbo, vbmeta and recovery image file with "dtb_feature" in their names.
If not set, default dtbo, vbmeta and recovery image are flashed.
-e Erases user data after all image files are flashed.
-l Locks the device after all image files are flashed.
-D directory Directory of images.
If this script is execute in the directory of the images, it does not need to
use this option.
-s ser_num Serial number of the board.
If only one board connected to computer, it does not need to use this option.
• -f option is mandatory. SoC name can be imx8mn, imx8qxp.
• Boot the device to U-Boot fastboot mode, and then execute these scripts. The device should be unlocked first.
• -tos mode only works for eMMC boot mode.
NOTE
NXP Semiconductors
Programming Images
Android
™
User's Guide, Rev. P9.0.0_2.3.2, 6 March 2020
User's Guide
12 / 31