Difference between revisions of "iMX8M Industrial Flashing Procedure"

From Voipac Wiki
Jump to navigation Jump to search
Line 27: Line 27:
 
[[File:iMX8M_Industrial_Development_Kit-Serial_donwloader_mode.png|400px]]<br /><br />
 
[[File:iMX8M_Industrial_Development_Kit-Serial_donwloader_mode.png|400px]]<br /><br />
  
* Plug serial CONSOLE USB Micro B and flashing USB C cables into  the board and the PC
+
* Plug USB Micro B cable to CONSOLE connector and USB-C cable to USB-C connector
 
* prepare imx-boot and *.wic files
 
* prepare imx-boot and *.wic files
 
* run following commands for flashing media
 
* run following commands for flashing media

Revision as of 15:39, 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 CONSOLE connector and USB-C cable to USB-C connector
  • prepare imx-boot and *.wic files
  • run following commands for flashing media

eMMC

Linux

sudo ./uuu -b emmc_all <path to imx-boot file> <path to wic file>

Windows

C:\uuu>uuu.exe -b emmc_all <path to imx-boot file> <path to wic file>

SD

Linux

sudo ./uuu -b sd_all <path to imx-boot file> <path to wic file>

Windows

C:\uuu>uuu.exe -b sd_all <path to imx-boot file> <path to wic file>

After those steps eMMC or SD card is flashed and perform following steps to boot new image:

  1. unplug USB-C cable from PC
  2. change switch position S1 BOOT to: 1-on, 2-off (boot mode)
  3. be sure that S2 BOOT and S3 BOOT switches are in proper position to boot from desired peripherals (eMMC or SD)
  4. connect debug UART and power on board and messages should appear on serial console

iMX8M Industrial Development Kit-Boot mode.png