Difference between revisions of "IOT-GATE-iMX8 and SBC-IOT-iMX8: U-Boot: Update"
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 ({{filename|iot-gate-imx8_uboot-image_2. | + | * Copy the image ({{filename|iot-gate-imx8_uboot-image_2.4.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 27: | Line 27: | ||
<pre> | <pre> | ||
IOT-GATE-iMX8 => usb reset | IOT-GATE-iMX8 => usb reset | ||
− | IOT-GATE-iMX8 => load usb 0 ${loadaddr} iot-gate-imx8_uboot-image_2. | + | IOT-GATE-iMX8 => load usb 0 ${loadaddr} iot-gate-imx8_uboot-image_2.4.bin && mmc dev 1 1 && mmc write ${loadaddr} 0x42 0xB00 |
IOT-GATE-iMX8 => reset | IOT-GATE-iMX8 => reset | ||
</pre> | </pre> | ||
Line 33: | Line 33: | ||
<pre> | <pre> | ||
IOT-GATE-iMX8 => usb reset | IOT-GATE-iMX8 => usb reset | ||
− | IOT-GATE-iMX8 => load usb 0 ${loadaddr} iot-gate-imx8_uboot-image_2. | + | IOT-GATE-iMX8 => load usb 0 ${loadaddr} iot-gate-imx8_uboot-image_2.4.bin && mmc dev 2 1 && mmc write ${loadaddr} 0x42 0xB00 |
IOT-GATE-iMX8 => reset | IOT-GATE-iMX8 => reset | ||
</pre> | </pre> |
Revision as of 07:32, 19 August 2021
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.4.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.4.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.4.bin && mmc dev 2 1 && mmc write ${loadaddr} 0x42 0xB00 IOT-GATE-iMX8 => reset
U-Boot update failure can lead to a state of un-bootable device. In that case U-Boot recovery is needed. |