1*5bd9c17dSSaurabh GorechaQualcomm Technologies, Inc. 2*5bd9c17dSSaurabh Gorecha=========================== 3*5bd9c17dSSaurabh Gorecha 4*5bd9c17dSSaurabh GorechaTrusted Firmware-A (TF-A) implements the EL3 firmware layer for QTI SC7180. 5*5bd9c17dSSaurabh Gorecha 6*5bd9c17dSSaurabh Gorecha 7*5bd9c17dSSaurabh GorechaBoot Trace 8*5bd9c17dSSaurabh Gorecha------------- 9*5bd9c17dSSaurabh Gorecha 10*5bd9c17dSSaurabh GorechaBootrom --> BL1/BL2 --> BL31 --> BL33 --> Linux kernel 11*5bd9c17dSSaurabh Gorecha 12*5bd9c17dSSaurabh GorechaBL1/2 and BL33 can currently be supplied from Coreboot + Depthcharge 13*5bd9c17dSSaurabh Gorecha 14*5bd9c17dSSaurabh GorechaHow to build 15*5bd9c17dSSaurabh Gorecha------------ 16*5bd9c17dSSaurabh Gorecha 17*5bd9c17dSSaurabh GorechaCode Locations 18*5bd9c17dSSaurabh Gorecha~~~~~~~~~~~~~~ 19*5bd9c17dSSaurabh Gorecha 20*5bd9c17dSSaurabh Gorecha- Trusted Firmware-A: 21*5bd9c17dSSaurabh Gorecha `link <https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git>`__ 22*5bd9c17dSSaurabh Gorecha 23*5bd9c17dSSaurabh GorechaBuild Procedure 24*5bd9c17dSSaurabh Gorecha~~~~~~~~~~~~~~~ 25*5bd9c17dSSaurabh Gorecha 26*5bd9c17dSSaurabh GorechaQTI SoC expects TF-A's BL31 to get integrated with other boot software 27*5bd9c17dSSaurabh GorechaCoreboot, so only bl31.elf need to get build from the TF-A repository. 28*5bd9c17dSSaurabh Gorecha 29*5bd9c17dSSaurabh GorechaThe build command looks like 30*5bd9c17dSSaurabh Gorecha 31*5bd9c17dSSaurabh Gorecha make CROSS_COMPILE=aarch64-linux-gnu- PLAT=sc7180 COREBOOT=1 32*5bd9c17dSSaurabh Gorecha 33*5bd9c17dSSaurabh Gorechaupdate value of CROSS_COMPILE argument with your cross-compilation toolchain. 34*5bd9c17dSSaurabh Gorecha 35*5bd9c17dSSaurabh GorechaAdditional QTISECLIB_PATH=<path to qtiseclib> can be added in build command. 36*5bd9c17dSSaurabh Gorechaif QTISECLIB_PATH is not added in build command stub implementation of qtiseclib 37*5bd9c17dSSaurabh Gorechais picked. qtiseclib with stub implementation doesn't boot device. This was 38*5bd9c17dSSaurabh Gorechaadded to satisfy compilation. 39*5bd9c17dSSaurabh Gorecha 40*5bd9c17dSSaurabh GorechaQTISELIB for SC7180 is available at 41*5bd9c17dSSaurabh Gorecha`link <https://review.coreboot.org/cgit/qc_blobs.git/plain/sc7180/qtiseclib/libqtisec.a>`__ 42