CL-SOM-AM57x: U-Boot: Firmware Update

From Compulab Mediawiki
Jump to: navigation, search

Introduction

The CL-SOM-AM57x firmware consists of two components: Secondary Program Loader (SPL) and U-Boot, provided as binary images: MLO and u-boot.img. This article describes the firmware update process for CL-SOM-AM57x system-on-module product.

Preliminary setup

  • Make sure to power off the CL-SOM-AM57x evaluation platform.
  • Connect the host PC to the SB-SOM base-board (connector P8) via the serial cable supplied with the evaluation kit.
  • On your computer, start a terminal emulation program (such as HyperTerminal) with the following serial port settings:
Baud Rate Data Bits Stop Bits Parity Flow Control
115200 8 1 none none
  • Turn on the CL-SOM-AM57x evaluation system. The U-Boot boot-loader will start and you will get a command prompt in the terminal window.
Admolition note.png If the boot settings of your CL-SOM-AM57x are different than default, you may need to press and hold ^C while turning the CL-SOM-AM57x on, in order to get command prompt.

Updating Firmware on the internal SPI flash

CL-SOM-AM57x firmware can be updated from an SD card, USB storage, or using network TFTP download. All methods are performed from the U-Boot command line and include following common steps:

  1. Loading binary images from the selected media to the CL-SOM-AM57x SDRAM
  2. Flashing images to the on-board SPI flash

Updating from TFTP server

  • Setup a TFTP server
  • Put the firmware binary image cl-som-am57x-firmware in the root directory of the TFTP server
  • Setup U-Boot networking:
for dynamic IP configuration:
# dhcp
or for static IP configuration:
# setenv ipaddr <ip address>
  • Setup the TFTP server ip address:
# setenv serverip <server ip>
  • Load the SPL and U-Boot binaries into the memory:
# tftp 82000000 cl-som-am57x-firmware

Updating from SD Card / USB storage / mSATA drive

Copy the firmware binary image cl-som-am57x-firmware from U-Boot package for CL-SOM-AM57x to the root directory of the respective media.

Updating from SD card

  • Insert the SD card into the P9 socket on SB-SOM.
  • Start the U-Boot MMC subsystem:
# mmc dev 0
# mmc rescan
  • Check that the storage device is ready:
# ls mmc 0
  • Load the firmware binaries into the memory:
# load mmc 0 82000000 cl-som-am57x-firmware

Updating from USB storage

  • Plug the USB storage device into the USB host connector (P3) on SB-SOM.
  • Start the U-Boot USB subsystem:
# usb reset
  • Check that the storage device is ready:
# ls usb 0
  • Load the firmware binaries into the memory:
# load usb 0 82000000 cl-som-am57x-firmware

Flashing images

  • Probe the SPI flash:
# sf probe
  • Write the firmware image into the on-board SPI flash:
sf update 82000000 0 C0000
  • Reset the CL-SOM-AM57x evaluation platform.

See also