124dba2b3SPaul BeesleyRockchip SoCs 224dba2b3SPaul Beesley============= 355617251SHeiko Stuebner 455617251SHeiko StuebnerTrusted Firmware-A supports a number of Rockchip ARM SoCs from both 555617251SHeiko StuebnerAARCH32 and AARCH64 fields. 655617251SHeiko Stuebner 755617251SHeiko StuebnerThis includes right now: 8010d6ae3SXiaoDong Huang- px30: Quad-Core Cortex-A53 955617251SHeiko Stuebner- rk3288: Quad-Core Cortex-A17 (past A12) 1055617251SHeiko Stuebner- rk3328: Quad-Core Cortex-A53 1155617251SHeiko Stuebner- rk3368: Octa-Core Cortex-A53 1255617251SHeiko Stuebner- rk3399: Hexa-Core Cortex-A53/A72 1355617251SHeiko Stuebner 1455617251SHeiko Stuebner 1555617251SHeiko StuebnerBoot Sequence 1624dba2b3SPaul Beesley------------- 1755617251SHeiko Stuebner 1855617251SHeiko StuebnerFor AARCH32: 1955617251SHeiko Stuebner Bootrom --> BL1/BL2 --> BL32 --> BL33 --> Linux kernel 2055617251SHeiko Stuebner 2155617251SHeiko StuebnerFor AARCH64: 2255617251SHeiko Stuebner Bootrom --> BL1/BL2 --> BL31 --> BL33 --> Linux kernel 2355617251SHeiko Stuebner 2455617251SHeiko StuebnerBL1/2 and BL33 can currently be supplied from either: 2555617251SHeiko Stuebner- Coreboot + Depthcharge 2655617251SHeiko Stuebner- U-Boot - either separately as TPL+SPL or only SPL 2755617251SHeiko Stuebner 2855617251SHeiko Stuebner 2955617251SHeiko StuebnerHow to build 3024dba2b3SPaul Beesley------------ 3155617251SHeiko Stuebner 3255617251SHeiko StuebnerRockchip SoCs expect TF-A's BL31 (AARCH64) or BL32 (AARCH32) to get 3355617251SHeiko Stuebnerintegrated with other boot software like U-Boot or Coreboot, so only 3455617251SHeiko Stuebnerthese images need to get build from the TF-A repository. 3555617251SHeiko Stuebner 3655617251SHeiko StuebnerFor AARCH64 architectures the build command looks like 3755617251SHeiko Stuebner 38*6611e81eSMichael Trimarchi make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 bl31 3955617251SHeiko Stuebner 4055617251SHeiko Stuebnerwhile AARCH32 needs a slightly different command 4155617251SHeiko Stuebner 4255617251SHeiko Stuebner make ARCH=aarch32 CROSS_COMPILE=arm-linux-gnueabihf- PLAT=rk3288 AARCH32_SP=sp_min bl32 4355617251SHeiko Stuebner 4455617251SHeiko StuebnerBoth need replacing the PLAT argument with the platform from above you 4555617251SHeiko Stuebnerwant to build for and the CROSS_COMPILE argument with you cross- 4655617251SHeiko Stuebnercompilation toolchain. 4755617251SHeiko Stuebner 4855617251SHeiko Stuebner 4955617251SHeiko StuebnerHow to deploy 5024dba2b3SPaul Beesley------------- 5155617251SHeiko Stuebner 5255617251SHeiko StuebnerBoth upstream U-Boot and Coreboot projects contain instructions on where 5355617251SHeiko Stuebnerto put the built images during their respective build process. 5455617251SHeiko StuebnerSo after successfully building TF-A just follow their build instructions 5555617251SHeiko Stuebnerto continue. 56