Notes on UEFI for TC2 Core Tile on Versatile Express


1. Preparing Versatile Express for TC2 and UEFI

1.1 Install the latest Versatile Express firmware from SDD contained in file USBMSD_V2P_CA15_A7_v2.zip

1.2 Edit the file <VE SD Card Root>/SITE1/HBI0249A/Images.txt as follows:
----------------------------------------------------------------------
TITLE: Versatile Express Images Configuration File

[IMAGES]
TOTALIMAGES: 2                   ;Number of Images (Max : 32)

NOR0UPDATE: AUTO
NOR0ADDRESS: BOOT
NOR0FILE: \SOFTWARE\SEC_UEFI.fd
NOR0LOAD: 00000000
NOR0ENTRY: 00000000

NOR1UPDATE: AUTO
NOR1ADDRESS: 0x01000000
NOR1FILE: \SOFTWARE\UEFI.fd
NOR1LOAD: 00000000
NOR1ENTRY: 00000000
----------------------------------------------------------------------

2. Building UEFI and installing on VE-TC2

2.1 Get FatPkg
svn co https://edk2-fatdriver2.svn.sourceforge.net/svnroot/edk2-fatdriver2/trunk/FatPkg FatPkg --username guest -r 67

2.2 Build the module "ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA15-A7.dsc" using either "-t ARMLINUXGCC" or "-t RVCTLINUX" toolchain.
This generates the binaries "Build/ArmVExpress-CTA15-A7/.../FV/UEFI.bin" and "Build/ArmVExpress-CTA15-A7/.../FV/SEC_UEFI.bin"

Example:
-------------------------
cd <edk2 root folder>
. ./edksetup.sh `pwd`/BaseTools/
make -C `pwd`/BaseTools/
build -a ARM -t RVCTLINUX -b DEBUG -p ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA15-A7.dsc
-------------------------

2.3 Copy these "SEC_UEFI.bin" and "UEFI.bin" into "<VE SD Card Root>/SOFTWARE/"

2.4 Reboot the Versatile Express.

