Difference between revisions of "IOT-GATE-iMX8 and SBC-IOT-iMX8: U-Boot: Update"

From Compulab Mediawiki
Jump to: navigation, search
imported>Uri.mashiach
 
Line 1: Line 1:
 
==Introduction==
 
==Introduction==
U-boot version 2.0 or above is required for running the latest Debian and Yocto images.
+
U-boot version 3.2 or above is required for running the latest Debian and Yocto images.
  
==Check U-Boot version==
+
==Checking current U-Boot version==
* U-Boot version and compilation date are displayed during boot:<br>
+
* U-Boot version is displayed during the boot sequence:<br>
<span style="background:lightgray">U-Boot 2020.04-iot-gate-imx8-<span style="background:yellow">2.0</span> (Sep 03 2020 - 13:43:49 +0300)</span>
+
<span style="background:lightgray">U-Boot 2021.04-iot-gate-imx8-<span style="background:yellow">3.2</span>  
* U-Boot version can be retrieved with the version command:
+
* U-Boot version can be retrieved with the "version" command:
 
<span style="background:lightgray">
 
<span style="background:lightgray">
 
IOT-GATE-iMX8 => version<br>
 
IOT-GATE-iMX8 => version<br>
U-Boot 2020.04-iot-gate-imx8-<span style="background:yellow">2.0</span> (Sep 03 2020 - 13:43:49 +0300)<br>
+
U-Boot 2021.04-iot-gate-imx8-<span style="background:yellow">3.2
  
<span style="background:lightgray">
+
<span style="background:lightgray"></span>
aarch64-linux-gnu-gcc (Linaro GCC 7.5-2019.12) 7.5.0<br>
 
GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706
 
</span>
 
  
 
==Updating U-Boot==
 
==Updating U-Boot==
 
* Download the latest U-Boot binary image from the u-boot section of the [https://www.compulab.com/products/iot-gateways/iot-gate-imx8-industrial-arm-iot-gateway/#devres IOT-GATE-iMX8 resources].
 
* Download the latest U-Boot binary image from the u-boot section of the [https://www.compulab.com/products/iot-gateways/iot-gate-imx8-industrial-arm-iot-gateway/#devres IOT-GATE-iMX8 resources].
 
* Extract the image archive file.
 
* Extract the image archive file.
* Copy the image ({{filename|iot-gate-imx8_uboot-image_3.0.bin}}) to the first partition of a USB flash drive.
+
* Deploy the image ({{filename|iot-gate-imx8_uboot-update.img}}) to a USB flash drive.
The partition can be formatted either ext2/3/4 or FAT file system.
+
<pre>dd if=iot-gate-imx8_uboot-update.img of=/dev/sdX</pre>
 
* Plug the USB flash drive into the '''front panel''' USB port (located near the power button).
 
* Plug the USB flash drive into the '''front panel''' USB port (located near the power button).
 
* Restart the IOT-GATE-iMX8.
 
* Restart the IOT-GATE-iMX8.
* Stop the boot process during the U-Boot auto-boot countdown.
+
* Wait for '''''SUCCESS''''' message
* Write the new image onto internal storage
+
* Extract the USB flash drive and restart the device
:If the '''original''' U-Boot version is '''1.X''', use the following commands:
 
<pre>
 
IOT-GATE-iMX8 => usb reset
 
IOT-GATE-iMX8 => load usb 0 ${loadaddr} iot-gate-imx8_uboot-image_3.0.bin && mmc dev 1 1 && mmc write ${loadaddr} 0x42 0xE00
 
IOT-GATE-iMX8 => reset
 
</pre>
 
:If the '''original''' U-Boot version is '''2.0''' or above, use the following commands :
 
<pre>
 
IOT-GATE-iMX8 => usb reset
 
IOT-GATE-iMX8 => load usb 0 ${loadaddr} iot-gate-imx8_uboot-image_3.0.bin && mmc dev 2 1 && mmc write ${loadaddr} 0x42 0xE00
 
IOT-GATE-iMX8 => reset
 
</pre>
 
  
{{Important|U-Boot update failure can lead to a state of un-bootable device.<br>
+
{{Important|U-Boot update failure can lead to a state of the un-bootable device.<br>
 
In that case [[IOT-GATE-iMX8 and SBC-IOT-iMX8: U-Boot: Recovery|U-Boot recovery]] is needed.}}
 
In that case [[IOT-GATE-iMX8 and SBC-IOT-iMX8: U-Boot: Recovery|U-Boot recovery]] is needed.}}

Latest revision as of 15:13, 6 June 2023

Introduction

U-boot version 3.2 or above is required for running the latest Debian and Yocto images.

Checking current U-Boot version

  • U-Boot version is displayed during the boot sequence:

U-Boot 2021.04-iot-gate-imx8-3.2

  • U-Boot version can be retrieved with the "version" command:

IOT-GATE-iMX8 => version
U-Boot 2021.04-iot-gate-imx8-3.2

Updating U-Boot

  • Download the latest U-Boot binary image from the u-boot section of the IOT-GATE-iMX8 resources.
  • Extract the image archive file.
  • Deploy the image (iot-gate-imx8_uboot-update.img) to a USB flash drive.
dd if=iot-gate-imx8_uboot-update.img of=/dev/sdX
  • Plug the USB flash drive into the front panel USB port (located near the power button).
  • Restart the IOT-GATE-iMX8.
  • Wait for SUCCESS message
  • Extract the USB flash drive and restart the device


Admolition important.png U-Boot update failure can lead to a state of the un-bootable device.

In that case U-Boot recovery is needed.