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

From Compulab Mediawiki
Jump to: navigation, search
imported>Uri.mashiach
imported>Uri.mashiach
Line 18: Line 18:
 
* 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 (iot-gate-imx8_uboot-image_2.1.bin) to the first partition of a USB flash drive.
+
* Copy the image ({{filename|iot-gate-imx8_uboot-image_2.1.bin}}) to the first partition of a USB flash drive.
 
The partition can be formatted either ext2/3/4 or FAT file system.
 
The partition can be formatted either ext2/3/4 or FAT file system.
 
* 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).
Line 36: Line 36:
 
IOT-GATE-iMX8 => reset
 
IOT-GATE-iMX8 => reset
 
</pre>
 
</pre>
 +
 +
{{Important|U-Boot update failure can lead to a state of un-bootable device.<br>
 +
In that case [[IOT-GATE-iMX8 and SBC-IOT-iMX8: U-Boot: Recovery|U-Boot recovery]] is needed.}}

Revision as of 14:38, 20 December 2020

Introduction

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

Check U-Boot version

  • U-Boot version and compilation date are displayed during boot:

U-Boot 2020.04-iot-gate-imx8-2.0 (Sep 03 2020 - 13:43:49 +0300)

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

IOT-GATE-iMX8 => version
U-Boot 2020.04-iot-gate-imx8-2.0 (Sep 03 2020 - 13:43:49 +0300)

aarch64-linux-gnu-gcc (Linaro GCC 7.5-2019.12) 7.5.0
GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706

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.
  • Copy the image (iot-gate-imx8_uboot-image_2.1.bin) to the first partition of a USB flash drive.

The partition can be formatted either ext2/3/4 or FAT file system.

  • Plug the USB flash drive into the front panel USB port (located near the power button).
  • Restart the IOT-GATE-iMX8.
  • Stop the boot process during the U-Boot auto-boot countdown.
  • Write the new image onto internal storage
If the original U-Boot version is 1.X, use the following commands:
IOT-GATE-iMX8 => usb reset
IOT-GATE-iMX8 => load usb 0 ${loadaddr} iot-gate-imx8_uboot-image_2.1.bin && mmc dev 1 1 && mmc write ${loadaddr} 0x42 0xB00
IOT-GATE-iMX8 => reset
If the original U-Boot version is 2.0 or above, use the following commands :
IOT-GATE-iMX8 => usb reset
IOT-GATE-iMX8 => load usb 0 ${loadaddr} iot-gate-imx8_uboot-image_2.1.bin && mmc dev 2 1 && mmc write ${loadaddr} 0x42 0xB00
IOT-GATE-iMX8 => reset


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

In that case U-Boot recovery is needed.