CM-T54: U-Boot: Firmware Update

From Compulab Mediawiki
Revision as of 10:59, 18 December 2014 by Lifshitz (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

The CM-T54 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 CM-T54 system-on-module product.

Preliminary setup

  • Make sure to power off the CM-T54 evaluation platform.
  • Connect the host PC to the SB-T54 base-board (connector P11) via the serial cable supplied with the evaluation kit.
  • Start terminal emulation software on your PC. Set baud rate to 115200 bps, 8 bit per frame, 1 stop bit, no parity, no flow control.
  • Turn on the CM-T54 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 CM-T54 are different than default, you may need to press and hold ^C while turning the CM-T54 on, in order to get command prompt.

Updating Firmware on the internal eMMC storage

CM-T54 firmware can be updated from an SD card, USB storage, mSATA drive 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 CM-T54 DRAM
  2. Flashing images to the on-board eMMC storage

Updating from TFTP server

  • Setup a TFTP server
  • Put the firmware binary images MLO and u-boot.img 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 MLO
# tftp 88080000 u-boot.img

Updating from SD Card / USB storage / mSATA drive

Copy the firmware binary images MLO and u-boot.img from U-Boot package for CM-T54 to the root directory of the respective media.

Updating from SD card

  • Insert the SD card into the P9 socket on SB-T54.
  • 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 MLO
# load mmc 0 88080000 u-boot.img

Updating from USB storage

  • Plug the USB storage device into the USB host connector (P15 or P26) on SB-T54.
  • Start the U-Boot USB subsystem:
# usb start
  • Check that the storage device is ready:
# ls usb 0
  • Load the firmware binaries into the memory:
# load usb 0 82000000 MLO
# load usb 0 88080000 u-boot.img

Updating from mSATA drive

  • Plug the mSATA drive into mSATA connector (P8) on SB-T54.
  • In case the SATA subsystem is not initialized correctly on system startup, run the following command:
# scsi rescan
  • Check that the storage device is ready:
# ls scsi 0
  • Load the firmware binaries into the memory:
# load scsi 0 82000000 MLO
# load scsi 0 88080000 u-boot.img

Flashing images

  • Start the U-Boot MMC subsystem:
# mmc dev 1
# mmc rescan
  • Write the firmware image into the on-board eMMC storage:
mmc write 82000000 100 100
mmc write 88080000 200 300
  • Reset the CM-T54 evaluation platform.

See also