Difference between revisions of "iMX8M Industrial Flashing Procedure"

From Voipac Wiki
Jump to navigation Jump to search
Line 62: Line 62:
 
[[File:iMX8M_Industrial_Development_Kit-Boot_mode.png|400px]]<br /><br />
 
[[File:iMX8M_Industrial_Development_Kit-Boot_mode.png|400px]]<br /><br />
  
*  Make sure that S2 BOOT and S3 BOOT DIP switches are in correct positions in order to boot from the preferred storage media (eMMC Flash memory or SD Card)
+
*  Make sure that S2 BOOT and S3 BOOT DIP switches are in correct positions in order to boot from the preferred storage media (eMMC Flash memory or SD Card):
=== eMMC Flash Memory (default) ===
+
==== eMMC Flash Memory (default) ====
 
[[File:iMX8M_Industrial_Development_Kit-eMMC_boot_DIP_switch_configuration.png|400px]]<br /><br />
 
[[File:iMX8M_Industrial_Development_Kit-eMMC_boot_DIP_switch_configuration.png|400px]]<br /><br />
=== SD Card ===
+
==== SD Card ====
 
[[File:iMX8M_Industrial_Development_Kit-SD_boot_DIP_switch_configuration.png|400px]]<br /><br />
 
[[File:iMX8M_Industrial_Development_Kit-SD_boot_DIP_switch_configuration.png|400px]]<br /><br />
 
* connect debug UART and power on board and messages should appear on serial console
 
* connect debug UART and power on board and messages should appear on serial console

Revision as of 16:41, 23 January 2023

This page describes how to flash binaries into iMX8M Industial Module's eMMC Flash memory or SD card.

Installing Universal Upload Utility (UUU)

Linux

git clone ssh://git@github.com/NXPmicro/mfgtools.git
cd mfgtools
mkdir .build && cd .build && cmake .. && make -j`nproc`

The binary called uuu, which is used for flashing, is located in .build/uuu directory.

Windows

Preparing the binaries

Flashing procedure

  • Set serial downloader mode by sliding DIP switch S1 BOOT positions to: 1-OFF, 2-ON

iMX8M Industrial Development Kit-Serial donwloader mode.png

  • Plug USB Micro-B cable to baseboard CONSOLE connector and PC
  • Plug USB-C cable to baseboard USB-C connector and PC
    Note: Powering of the development kit is not required during the flashing procedure.
  • Download and copy imx-boot and *.wic files into uuu\ directory
  • Choose one of the following commands to start the flashing process:

eMMC Flash Memory (default)

Linux

sudo ./uuu -b emmc_all imx-boot voipac-image-imx8mq-voipac.wic

Windows

uuu.exe -b emmc_all imx-boot voipac-image-imx8mq-voipac.wic

SD Card

Linux

sudo ./uuu -b sd_all imx-boot voipac-image-imx8mq-voipac.wic

Windows

C:\uuu>uuu.exe -b sd_all imx-boot voipac-image-imx8mq-voipac.wic

Running the newly flashed binaries

After completing the above steps, eMMC Flash memory or SD Card is flashed and the following steps are to be performed to boot the new image:

  • Unplug USB-C cable from PC
  • Set Boot mode by sliding DIP switch S1 BOOT positions to: 1-ON, 2-OFF

iMX8M Industrial Development Kit-Boot mode.png

  • Make sure that S2 BOOT and S3 BOOT DIP switches are in correct positions in order to boot from the preferred storage media (eMMC Flash memory or SD Card):

eMMC Flash Memory (default)

iMX8M Industrial Development Kit-eMMC boot DIP switch configuration.png

SD Card

iMX8M Industrial Development Kit-SD boot DIP switch configuration.png

  • connect debug UART and power on board and messages should appear on serial console