Difference between revisions of "iMX8M Industrial Flashing Procedure"

From Voipac Wiki
Jump to navigation Jump to search
Line 19: Line 19:
 
# Save it to C:\uuu
 
# Save it to C:\uuu
  
=== Flashing procedure ===
+
== Flashing procedure ==
 
For flashing eMMC or SD card we need to perform several steps:
 
For flashing eMMC or SD card we need to perform several steps:
  
Line 26: Line 26:
 
# prepare imx-boot and *.wic files
 
# prepare imx-boot and *.wic files
 
# run following commands for flashing media
 
# run following commands for flashing media
'''eMMC'''
+
=== eMMC ===
  
linux:
+
==== Linux ====
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo ./uuu -b emmc_all <path to imx-boot file> <path to wic file>
 
sudo ./uuu -b emmc_all <path to imx-boot file> <path to wic file>
 
</syntaxhighlight>
 
</syntaxhighlight>
windows:
+
==== Windows ====
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
C:\uuu>uuu.exe -b emmc_all <path to imx-boot file> <path to wic file>
 
C:\uuu>uuu.exe -b emmc_all <path to imx-boot file> <path to wic file>
 
</syntaxhighlight>
 
</syntaxhighlight>
  
'''SD'''
+
=== SD ===
  
linux:
+
==== Linux ====
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo ./uuu -b sd_all <path to imx-boot file> <path to wic file>
 
sudo ./uuu -b sd_all <path to imx-boot file> <path to wic file>
 
</syntaxhighlight>
 
</syntaxhighlight>
  
windows:
+
==== Windows ====
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
C:\uuu>uuu.exe -b sd_all <path to imx-boot file> <path to wic file>
 
C:\uuu>uuu.exe -b sd_all <path to imx-boot file> <path to wic file>

Revision as of 15:43, 23 January 2023

Page describe how to flash iMX8M eMMC and SD card

Installing uuu (Universal Upload Utility) =

Linux

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

In .build/uuu directory there is binary called uuu which is used for flashing

Windows

  1. Go to https://github.com/NXPmicro/mfgtools/releases
  2. Have look for last release. Example: Releases/uuu_1.4.182 https://github.com/NXPmicro/mfgtools/releases/tag/uuu_1.4.182
  3. Download uuu.exe
  4. Save it to C:\uuu

Flashing procedure

For flashing eMMC or SD card we need to perform several steps:

  1. change switch position S1 BOOT to: 1-off, 2-on (serial downloader mode)
  2. plug USB-C cable to PC and to board USB C connector
  3. prepare imx-boot and *.wic files
  4. 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

400px