Nishanth Menon <nm@ti.com>
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:
Platform information:
- AM64-EVM: https://www.ti.com/tool/TMDS64EVM
- AM64-SK: https://www.ti.com/tool/SK-AM64B
Below is the pictorial representation of boot flow:
- 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.
- 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
- Trusted Firmware-A:
- OP-TEE:
- U-Boot:
- 3.1 R5:
- 3.2 A53:
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
- tiboot3.bin
- tispl.bin
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-EVMSwitch Label | SW2: 12345678 | SW3: 12345678 |
---|---|---|
SD/MMC | 11000010 | 01000000 |
xSPI/SFDP (OSPI) | 11001110 | 01000000 |
UART | 11011100 | 00000000 |
Switch Label | SW2: 12345678 | SW3: 12345678 |
---|---|---|
SD/MMC | 00000010 | 01000011 |
xSPI/SFDP (OSPI) | 00000010 | 01110011 |
UART | 00000000 | 00111011 |