<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=IOT-GATE-IMX8PV2%3A_U-Boot%3A_Recovery</id>
	<title>IOT-GATE-IMX8PV2: U-Boot: Recovery - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=IOT-GATE-IMX8PV2%3A_U-Boot%3A_Recovery"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.compulab.com/w/index.php?title=IOT-GATE-IMX8PV2:_U-Boot:_Recovery&amp;action=history"/>
	<updated>2026-11-13T00:50:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://mediawiki.compulab.com/w/index.php?title=IOT-GATE-IMX8PV2:_U-Boot:_Recovery&amp;diff=5912&amp;oldid=prev</id>
		<title>Igor: Created page with &quot;= Introduction = This article describes flashing U-Boot firmware image with a Linux Host using Universal Update Utility (hereinafter '''UUU''').  {{Note|Follow the [https://gi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.compulab.com/w/index.php?title=IOT-GATE-IMX8PV2:_U-Boot:_Recovery&amp;diff=5912&amp;oldid=prev"/>
		<updated>2026-11-12T17:55:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Introduction = This article describes flashing U-Boot firmware image with a Linux Host using Universal Update Utility (hereinafter &amp;#039;&amp;#039;&amp;#039;UUU&amp;#039;&amp;#039;&amp;#039;).  {{Note|Follow the [https://gi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Introduction =&lt;br /&gt;
This article describes flashing U-Boot firmware image with a Linux Host using Universal Update Utility (hereinafter '''UUU''').&lt;br /&gt;
&lt;br /&gt;
{{Note|Follow the [https://github.com/NXPmicro/mfgtools/blob/master/README.md Universal Update Utility instructions] to install and setup the UUU tool on a host Linux station.}}&lt;br /&gt;
&lt;br /&gt;
= Getting Recovery U-Boot Firmware Image =&lt;br /&gt;
* Download the '''IOT-GATE-IMX8PV2 firmware recovery image''' from the [https://www.compulab.com/products/iot-gateways/iot-gate-imx8pv2-industrial-iot-edge-gateway/#devres U-boot section of IOT-GATE-IMX8PV2 Resources] to the host Linux station.&lt;br /&gt;
* Extract the archive on the host Linux station:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
unzip iot-gate-imx8pv2_firmware-recovery-image_YYYY-MM-DD.zip -d /path/to/iot-gate-imx8pv2-firmware&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Determining RAM size =&lt;br /&gt;
Determine the correct DRAM size of the IOT-GATE-IMX8PV2 according to the label located on the bottom side of the device. DRAM size is encoded in the unit's '''D''' [https://www.compulab.com/products/iot-gateways/iot-gate-imx8pv2-industrial-iot-gateway/#specs option].&amp;lt;br&amp;gt;&lt;br /&gt;
Use the table below to determine '''DRAM_CONF''' value:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; style=&amp;quot;border-collapse:collapse; text-align:center;&amp;quot;&lt;br /&gt;
! Product '''D''' Option&lt;br /&gt;
! DRAM Size (MB)&lt;br /&gt;
! DRAM_CONF&lt;br /&gt;
|-&lt;br /&gt;
| D1&lt;br /&gt;
| 1024&lt;br /&gt;
| d1d8&lt;br /&gt;
|-&lt;br /&gt;
| D2&lt;br /&gt;
| 2048&lt;br /&gt;
| d2d4&lt;br /&gt;
|-&lt;br /&gt;
| D4&lt;br /&gt;
| 4096&lt;br /&gt;
| d2d4&lt;br /&gt;
|-&lt;br /&gt;
| D8&lt;br /&gt;
| 8192&lt;br /&gt;
| d1d8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DRAM configuration is handled by the bootloader (SPL/U-Boot), and the relevant information is passed to the Linux kernel via the Device Tree.&amp;lt;br&amp;gt;&lt;br /&gt;
In particular, the detected DRAM size, expressed in megabytes (MB), can be read from the file ''/proc/device-tree/som.info/dram.size''.&amp;lt;br&amp;gt;&lt;br /&gt;
The following commands can be used to determine the DRAM size on a running IOT-GATE-IMX8PV2 gateway:&lt;br /&gt;
&lt;br /&gt;
* DRAM size in megabytes (MB):&lt;br /&gt;
&amp;lt;pre&amp;gt;compulab@iot-gate-imx8pv2:~$ echo $(&amp;lt;/proc/device-tree/som.info/dram.size)&amp;lt;/pre&amp;gt;&lt;br /&gt;
* DRAM size in gigabytes (GB):&lt;br /&gt;
&amp;lt;pre&amp;gt;compulab@iot-gate-imx8pv2:~$ echo $(( $(&amp;lt;/proc/device-tree/som.info/dram.size) / 1024 ))&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Flashing U-Boot Firmware =&lt;br /&gt;
* Power off the IOT-GATE-IMX8PV2 device.&lt;br /&gt;
* Remove the [[IOT-GATE-IMX8PV2:_Getting_Started#Service_bay_layout|Service bay door]] to access the USB programming port.&lt;br /&gt;
* Connect the IOT-GATE-IMX8PV2 micro-USB connector with the workstation USB port using a standard micro-USB cable.&lt;br /&gt;
* Power on the IOT-GATE-IMX8PV2 device via the main DC input.&lt;br /&gt;
* Issue the following commands on the host Linux station:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uuu -lsusb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
: Expected output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.243-15-g0220e96&lt;br /&gt;
&lt;br /&gt;
Connected Known USB Devices&lt;br /&gt;
        Path     Chip    Pro     Vid     Pid     BcdVersion      Serial_no&lt;br /&gt;
        ====================================================================&lt;br /&gt;
        1:132    MX865   SDPS:   0x1FC9 0x0146   0x0002  0D138800718FDB45&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Flash U-Boot Firmware. Replace &amp;lt;DRAM_CONF&amp;gt; with the actual value:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo uuu -d -v -b emmc /path/to/iot-gate-imx8pv2-firmware/flash.bin.&amp;lt;DRAM_CONF&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Make sure the deployment is completed with no error&lt;br /&gt;
&lt;br /&gt;
= After Installation =&lt;br /&gt;
* Turn off the device&lt;br /&gt;
* Disconnect the micro-USB cable from the device's programming port&lt;br /&gt;
* Turn on the device&lt;br /&gt;
* Press a key to prevent a possible autoboot and get into the U-Boot command prompt&lt;br /&gt;
* Restore default boot environment, save it and reset device:&lt;br /&gt;
:&amp;lt;pre&amp;gt;env default -a ; saveenv ; reset&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:U-Boot]]&lt;br /&gt;
[[Category:IOT-GATE-IMX8PV2]]&lt;/div&gt;</summary>
		<author><name>Igor</name></author>
		
	</entry>
</feed>