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

From Compulab Mediawiki
Jump to: navigation, search
imported>Uri.mashiach
 
imported>Uri.mashiach
(Flashing The Device U-Boot)
Line 25: Line 25:
 
* Write the U-Boot image to the internal storage:
 
* Write the U-Boot image to the internal storage:
 
<pre>
 
<pre>
u-boot=> mmc partconf 1 0 1 0
+
IOT-GATE-iMX8 => mmc partconf 2 0 1 0
u-boot=> load mmc 0 ${loadaddr} iot-gate-imx8-firmware_2.1.bin
+
IOT-GATE-iMX8 => load mmc 1 ${loadaddr} iot-gate-imx8-firmware
u-boot=> mmc dev 1 1; mmc write ${loadaddr} 0x42 0xB00
+
IOT-GATE-iMX8 => mmc dev 2 1; mmc write ${loadaddr} 0x42 0xB00
 
</pre>
 
</pre>
 
* Power off the IOT-GATE-iMX8/SBC-IOT-iMX8 unit.
 
* Power off the IOT-GATE-iMX8/SBC-IOT-iMX8 unit.
 
* Remove jumper E1.
 
* Remove jumper E1.
 
* Power on the IOT-GATE-iMX8/SBC-IOT-iMX8 unit.
 
* Power on the IOT-GATE-iMX8/SBC-IOT-iMX8 unit.

Revision as of 09:39, 3 November 2021

Introduction

The following scenarios can lead to a bricked device:

  • U-Boot update failure.
  • U-Boot update with corrupted image.

In that case U-Boot recovery is needed.

Creating The Recovery SD Card

unzip iot-gate-imx8_firmware-recovery-image.zip
  • Use a Linux workstation and an SD card reader to write the U-Boot recovery image on an SD card.
Replace /dev/sdX with the actual SD card device:
sudo dd if=iot-gate-imx8_firmware-recovery_2020-12-15.img of=/dev/sdX bs=1M status=progress

Flashing The Device U-Boot

  • Install the recovery SD card in the IOTG-ACC-M2SD module.
The IOTG-ACC-M2SD module is included in the evaluation kit.
  • Power off the IOT-GATE-iMX8/SBC-IOT-iMX8 unit.
  • If a secondary storage module is installed, remove the module from socket P14.
  • Install the IOTG-ACC-M2SD module in socket P14.
  • Install jumper E1.
  • Power on the IOT-GATE-iMX8/SBC-IOT-iMX8 unit.
  • Write the U-Boot image to the internal storage:
IOT-GATE-iMX8 => mmc partconf 2 0 1 0
IOT-GATE-iMX8 => load mmc 1 ${loadaddr} iot-gate-imx8-firmware
IOT-GATE-iMX8 => mmc dev 2 1; mmc write ${loadaddr} 0x42 0xB00
  • Power off the IOT-GATE-iMX8/SBC-IOT-iMX8 unit.
  • Remove jumper E1.
  • Power on the IOT-GATE-iMX8/SBC-IOT-iMX8 unit.