IOT-GATE-iMX7 and SBC-IOT-iMX7: U-Boot: Firmware Update

From Compulab Mediawiki
Revision as of 12:29, 26 October 2017 by Grinberg (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

The CL-SOM-iMX7 firmware consists of two components: Secondary Program Loader (SPL) and U-Boot, provided as a single U-Boot binary image cl-som-imx7-firmware. This article describes the firmware update process for CL-SOM-iMX7 system-on-module product.

Preliminary setup

  • Make sure to power off the IOT-GATE-iMX7/SBC-IOT-iMX7 device.
  • Connect the host PC to the IOT-GATE-iMX7/SBC-IOT-iMX7 device (connector RS232) via the serial cable supplied with the evaluation kit.
  • Start terminal emulation software on your PC with the following serial port settings:
Baud Rate Data Bits Stop Bits Parity Flow Control
115200 8 1 none none
  • Turn on the IOT-GATE-iMX7/SBC-IOT-iMX7 device. The U-Boot boot-loader will start and a command prompt will be displayed.
Admolition note.png If the boot settings of your IOT-GATE-iMX7/SBC-IOT-iMX7 device are different than the default, you may need to press and hold Ctrl-C while turning the IOT-GATE-iMX7/SBC-IOT-iMX7 device on, in order to get command prompt.

Updating from TFTP server

  • Setup a TFTP server
  • Put the firmware binary image cl-som-imx7-firmware from U-Boot package for CL-SOM-iMX7 in the root directory of the TFTP server
  • Setup U-Boot networking:
for dynamic IP configuration:
CL-SOM-iMX7 # dhcp
or for static IP configuration:
CL-SOM-iMX7 # setenv ipaddr <ip address>
  • Setup the TFTP server ip address:
CL-SOM-iMX7 # setenv serverip <server ip>
  • Download the firmware binary into the memory:
CL-SOM-iMX7 # tftpboot ${loadaddr} cl-som-imx7-firmware

Flashing images

  • Make U-Boot probe the on-board SPI flash:
CL-SOM-iMX7 # sf probe
  • Erase the on-board SPI flash:
CL-SOM-iMX7 # sf erase 0 ${ubootsize}
  • Write the firmware image into the on-board SPI flash:
CL-SOM-iMX7 # sf write ${loadaddr} 0 ${ubootsize}
  • Reset the CL-SOM-iMX7 evaluation platform.

Default environment

It is recommended to set default environment after updating the U-Boot version:

CL-SOM-iMX7 # env default -a
CL-SOM-iMX7 # saveenv

See also