Difference between revisions of "UCM-iMX95: U-Boot: Recovery"

From Compulab Mediawiki
Jump to: navigation, search
(Created page with "= Introduction = This article describes flashing U-Boot firmware image with a Linux Host using Universal Update Utility (hereinafter '''UUU'''). {{Note|Follow the [https://gi...")
 
 
Line 8: Line 8:
 
* Download the Yocto Linux package from [https://www.compulab.com/products/computer-on-modules/ucm-imx95-nxp-i-mx-95-som-system-on-module/#devres Compulab website].
 
* Download the Yocto Linux package from [https://www.compulab.com/products/computer-on-modules/ucm-imx95-nxp-i-mx-95-som-system-on-module/#devres Compulab website].
 
* Extract the archive.
 
* Extract the archive.
 +
 +
= iMX95 SoC revisions =
 +
The latest UCM-iMX95 Yocto Linux release provides recovery bootloader images for both '''A0''' and '''B0''' SoC revisions. Select an image that matches the module's SoC revision, DRAM type, and DRAM capacity.
 +
 +
== Supported DRAM configurations ==
 +
{| class="wikitable"
 +
! SoC revision
 +
! DRAM type (BSP value)
 +
! Supported DRAM capacities
 +
|-
 +
| A0 and B0
 +
| LPDDR5 (<code>lpddr5</code>)
 +
| D4 (4 GB), D8 (8 GB), D16 (16 GB)
 +
|-
 +
| A0 and B0
 +
| LPDDR4X (<code>lpddr4x</code>)
 +
| D4 (4 GB), D8 (8 GB)
 +
|}
 +
 +
The BSP uses <code>lpddr4x</code> for the LPDDR4X option. The current BSP does not provide a D16 LPDDR4X bootloader configuration.
 +
 +
== Selecting the recovery image ==
 +
Confirm the module's SoC revision, DRAM type, and DRAM capacity before selecting a binary. In the extracted <code>ucm-imx95_yocto-linux_compulab-3.0</code> release folder, bootloader binaries use this directory structure:
 +
 +
<pre>
 +
bootloader/<SM_CONFIG>/<SOC_REV>/<DRAM_SIZE>/<DDR_TYPE>/<BOOT_TARGET>/flash.bin.tagged
 +
</pre>
 +
 +
{| class="wikitable"
 +
! Directory component
 +
! Available values and meaning
 +
|-
 +
| <code>SM_CONFIG</code>
 +
| <code>mx95cpl</code>: standard System Manager configuration; <code>mx95cplrpmsg</code>: RPMsg System Manager configuration. Select the configuration required by your application; use the matching RPMsg Linux device tree when using RPMsg.
 +
|-
 +
| <code>SOC_REV</code>
 +
| <code>A0</code> or <code>B0</code>; must match the module's SoC revision.
 +
|-
 +
| <code>DRAM_SIZE</code>
 +
| <code>D4</code> (4 GB), <code>D8</code> (8 GB), or <code>D16</code> (16 GB); must match the module's DRAM capacity.
 +
|-
 +
| <code>DDR_TYPE</code>
 +
| <code>lpddr5</code> or <code>lpddr4x</code>; must match the module's DRAM type. <code>D16</code> is available only with <code>lpddr5</code>.
 +
|-
 +
| <code>BOOT_TARGET</code>
 +
| <code>flash_all</code>: includes the configured Cortex-M7 firmware and starts M7 at boot. <code>flash_lpboot_sm_a55</code>: leaves M7 under U-Boot/Linux control.
 +
|}
 +
 +
Both <code>flash.bin</code> and <code>flash.bin.tagged</code> are provided in each boot-target directory. Use '''flash.bin.tagged''' for the UUU recovery command below.
 +
 +
=== Example paths ===
 +
The following paths are relative to the extracted release folder:
 +
 +
* Standard configuration, B0, 8 GB LPDDR5, M7 controlled by U-Boot/Linux:
 +
<pre>
 +
bootloader/mx95cpl/B0/D8/lpddr5/flash_lpboot_sm_a55/flash.bin.tagged
 +
</pre>
 +
* Standard configuration, A0, 4 GB LPDDR4X, M7 controlled by U-Boot/Linux:
 +
<pre>
 +
bootloader/mx95cpl/A0/D4/lpddr4x/flash_lpboot_sm_a55/flash.bin.tagged
 +
</pre>
 +
* RPMsg configuration, B0, 8 GB LPDDR5, M7 controlled by U-Boot/Linux:
 +
<pre>
 +
bootloader/mx95cplrpmsg/B0/D8/lpddr5/flash_lpboot_sm_a55/flash.bin.tagged
 +
</pre>
 +
 +
=== Select and verify the file ===
 +
On the Linux host, enter the extracted release folder and list the available recovery binaries:
 +
 +
<pre>
 +
cd /path/to/ucm-imx95_yocto-linux_compulab-3.0
 +
find bootloader -type f -name 'flash.bin.tagged' | sort
 +
</pre>
 +
 +
Set <code>BOOTLOADER</code> to the path matching your module and required boot configuration. For example, '''only for a B0 module with 8 GB LPDDR5 using the standard configuration and M7 controlled by U-Boot/Linux''':
 +
 +
<pre>
 +
BOOTLOADER=bootloader/mx95cpl/B0/D8/lpddr5/flash_lpboot_sm_a55/flash.bin.tagged
 +
ls -lh "$BOOTLOADER"
 +
</pre>
 +
 +
Continue with the flashing steps below in the same host shell, keeping the release folder as the current directory.
  
 
= Flashing U-Boot Firmware =
 
= Flashing U-Boot Firmware =
Line 26: Line 108:
 
</pre>
 
</pre>
 
* Flash U-Boot Firmware.  
 
* Flash U-Boot Firmware.  
−
  sudo uuu -v -b emmc /path/to/yocto-linux/bootloader/imx-boot-tagged
+
  sudo uuu -v -b emmc "$BOOTLOADER"
  
 
= After Installation =
 
= After Installation =

Latest revision as of 07:14, 19 November 2026

Introduction

This article describes flashing U-Boot firmware image with a Linux Host using Universal Update Utility (hereinafter UUU).


Admolition note.png Follow the Universal Update Utility instructions to install and setup UUU tool on a workstation.

Getting Recovery U-Boot Firmware Image

iMX95 SoC revisions

The latest UCM-iMX95 Yocto Linux release provides recovery bootloader images for both A0 and B0 SoC revisions. Select an image that matches the module's SoC revision, DRAM type, and DRAM capacity.

Supported DRAM configurations

SoC revision DRAM type (BSP value) Supported DRAM capacities
A0 and B0 LPDDR5 (lpddr5) D4 (4 GB), D8 (8 GB), D16 (16 GB)
A0 and B0 LPDDR4X (lpddr4x) D4 (4 GB), D8 (8 GB)

The BSP uses lpddr4x for the LPDDR4X option. The current BSP does not provide a D16 LPDDR4X bootloader configuration.

Selecting the recovery image

Confirm the module's SoC revision, DRAM type, and DRAM capacity before selecting a binary. In the extracted ucm-imx95_yocto-linux_compulab-3.0 release folder, bootloader binaries use this directory structure:

bootloader/<SM_CONFIG>/<SOC_REV>/<DRAM_SIZE>/<DDR_TYPE>/<BOOT_TARGET>/flash.bin.tagged
Directory component Available values and meaning
SM_CONFIG mx95cpl: standard System Manager configuration; mx95cplrpmsg: RPMsg System Manager configuration. Select the configuration required by your application; use the matching RPMsg Linux device tree when using RPMsg.
SOC_REV A0 or B0; must match the module's SoC revision.
DRAM_SIZE D4 (4 GB), D8 (8 GB), or D16 (16 GB); must match the module's DRAM capacity.
DDR_TYPE lpddr5 or lpddr4x; must match the module's DRAM type. D16 is available only with lpddr5.
BOOT_TARGET flash_all: includes the configured Cortex-M7 firmware and starts M7 at boot. flash_lpboot_sm_a55: leaves M7 under U-Boot/Linux control.

Both flash.bin and flash.bin.tagged are provided in each boot-target directory. Use flash.bin.tagged for the UUU recovery command below.

Example paths

The following paths are relative to the extracted release folder:

  • Standard configuration, B0, 8 GB LPDDR5, M7 controlled by U-Boot/Linux:
bootloader/mx95cpl/B0/D8/lpddr5/flash_lpboot_sm_a55/flash.bin.tagged
  • Standard configuration, A0, 4 GB LPDDR4X, M7 controlled by U-Boot/Linux:
bootloader/mx95cpl/A0/D4/lpddr4x/flash_lpboot_sm_a55/flash.bin.tagged
  • RPMsg configuration, B0, 8 GB LPDDR5, M7 controlled by U-Boot/Linux:
bootloader/mx95cplrpmsg/B0/D8/lpddr5/flash_lpboot_sm_a55/flash.bin.tagged

Select and verify the file

On the Linux host, enter the extracted release folder and list the available recovery binaries:

cd /path/to/ucm-imx95_yocto-linux_compulab-3.0
find bootloader -type f -name 'flash.bin.tagged' | sort

Set BOOTLOADER to the path matching your module and required boot configuration. For example, only for a B0 module with 8 GB LPDDR5 using the standard configuration and M7 controlled by U-Boot/Linux:

BOOTLOADER=bootloader/mx95cpl/B0/D8/lpddr5/flash_lpboot_sm_a55/flash.bin.tagged
ls -lh "$BOOTLOADER"

Continue with the flashing steps below in the same host shell, keeping the release folder as the current directory.

Flashing U-Boot Firmware

  • Power off
  • Populate E4 jumper
  • Connect the evaluation board microUSB P21 with the workstation USB port using a standard microUSB cable.
  • Power on the evaluation board
  • On host, run:
uuu -lsusb
Expected output:
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.21-3-gcbff795

Connected Known USB Devices
        Path     Chip    Pro     Vid     Pid     BcdVersion
        ==================================================
        1:131    MX95    SDPS:   0x1FC9 0x0146   0x0002
  • Flash U-Boot Firmware.
sudo uuu -v -b emmc "$BOOTLOADER"

After Installation

  • Power off
  • Disconnect the microUSB cable
  • Remove E4 jumper
  • Power on
  • In u-boot run:

env default -a saveenv