Skip to content

Latest commit

 

History

History
201 lines (142 loc) · 4.91 KB

am64x_evm.rst

File metadata and controls

201 lines (142 loc) · 4.91 KB

Nishanth Menon <nm@ti.com>

AM64 Platforms

Introduction:

The AM642 SoC belongs to the K3 Multicore SoC architecture platform, providing advanced system integration to enable applications such as Motor Drives, PLC, Remote IO and IoT Gateways.

Some highlights of this SoC are:

  • Dual Cortex-A53s in a single cluster, two clusters of dual Cortex-R5F MCUs, and a single Cortex-M4F.
  • Two Gigabit Industrial Communication Subsystems (ICSSG).
  • Integrated Ethernet switch supporting up to a total of two external ports.
  • PCIe-GEN2x1L, USB3/USB2, 2xCAN-FD, eMMC and SD, UFS, OSPI memory controller, QSPI, I2C, eCAP/eQEP, ePWM, ADC, among other peripherals.
  • Centralized System Controller for Security, Power, and Resource Management (DMSC).
More details can be found in the Technical Reference Manual:

https://www.ti.com/lit/pdf/spruim2

Platform information:

Boot Flow:

Below is the pictorial representation of boot flow:

Boot flow diagram

  • Here TIFS acts as master and provides all the critical services. R5/A53 requests TIFS to get these services done as shown in the above diagram.

Sources:

Build procedure:

  1. Setup the environment variables:

Set the variables corresponding to this platform:

bash $

export UBOOT_CFG_CORTEXR=am64x_evm_r5_defconfig export UBOOT_CFG_CORTEXA=am64x_evm_a53_defconfig export TFA_BOARD=lite # we dont use any extra TFA parameters unset TFA_EXTRA_ARGS export OPTEE_PLATFORM=k3-am64x # we dont use any extra TFA parameters unset OPTEE_EXTRA_ARGS

  1. Trusted Firmware-A:
  1. OP-TEE:
  1. U-Boot:
  • 3.1 R5:
  • 3.2 A53:

Target Images

In order to boot we need tiboot3.bin, tispl.bin and u-boot.img. Each SoC variant (GP, HS-FS, HS-SE) requires a different source for these files.

  • GP

    • tiboot3-am64x-gp-evm.bin from step 3.1
    • tispl.bin_unsigned, u-boot.img_unsigned from step 3.2
  • HS-FS

    • tiboot3-am64x-hs-fs-evm.bin from step 3.1
    • tispl.bin, u-boot.img from step 3.2
  • HS-SE

    • tiboot3-am64x-hs-evm.bin from step 3.1
    • tispl.bin, u-boot.img from step 3.2

Image formats:

  • tiboot3.bin

tiboot3.bin image format

  • tispl.bin

tispl.bin image format

Switch Setting for Boot Mode

Boot Mode pins provide means to select the boot mode and options before the device is powered up. After every POR, they are the main source to populate the Boot Parameter Tables.

The following table shows some common boot modes used on AM64 platform. More details can be found in the Technical Reference Manual: https://www.ti.com/lit/pdf/spruim2 under the Boot Mode Pins section.

Boot Modes for AM64x-EVM
Switch Label SW2: 12345678 SW3: 12345678
SD/MMC 11000010 01000000
xSPI/SFDP (OSPI) 11001110 01000000
UART 11011100 00000000
Boot Modes for AM64x-SK
Switch Label SW2: 12345678 SW3: 12345678
SD/MMC 00000010 01000011
xSPI/SFDP (OSPI) 00000010 01110011
UART 00000000 00111011