rockchip.rst 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Rockchip SoCs
  2. =============
  3. Trusted Firmware-A supports a number of Rockchip ARM SoCs from both
  4. AARCH32 and AARCH64 fields.
  5. This includes right now:
  6. - px30: Quad-Core Cortex-A53
  7. - rk3288: Quad-Core Cortex-A17 (past A12)
  8. - rk3328: Quad-Core Cortex-A53
  9. - rk3368: Octa-Core Cortex-A53
  10. - rk3399: Hexa-Core Cortex-A53/A72
  11. Boot Sequence
  12. -------------
  13. For AARCH32:
  14. Bootrom --> BL1/BL2 --> BL32 --> BL33 --> Linux kernel
  15. For AARCH64:
  16. Bootrom --> BL1/BL2 --> BL31 --> BL33 --> Linux kernel
  17. BL1/2 and BL33 can currently be supplied from either:
  18. - Coreboot + Depthcharge
  19. - U-Boot - either separately as TPL+SPL or only SPL
  20. How to build
  21. ------------
  22. Rockchip SoCs expect TF-A's BL31 (AARCH64) or BL32 (AARCH32) to get
  23. integrated with other boot software like U-Boot or Coreboot, so only
  24. these images need to get build from the TF-A repository.
  25. For AARCH64 architectures the build command looks like
  26. make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 bl32
  27. while AARCH32 needs a slightly different command
  28. make ARCH=aarch32 CROSS_COMPILE=arm-linux-gnueabihf- PLAT=rk3288 AARCH32_SP=sp_min bl32
  29. Both need replacing the PLAT argument with the platform from above you
  30. want to build for and the CROSS_COMPILE argument with you cross-
  31. compilation toolchain.
  32. How to deploy
  33. -------------
  34. Both upstream U-Boot and Coreboot projects contain instructions on where
  35. to put the built images during their respective build process.
  36. So after successfully building TF-A just follow their build instructions
  37. to continue.