Xilinx / embeddedsw

Xilinx Embedded Software (embeddedsw) Development
Other
929 stars 1.06k forks source link

TPM 2.0 Support Integration in xilinx fsbl #207

Open TaysAbhi opened 2 years ago

TaysAbhi commented 2 years ago

I'm using xlnx_rel_v2021.2 version of zynqmp fsbl to do measured boot using TPM. I have enabled the TPM support available in the zynqmp fsbl. But I'm facing some issues with the spi communication APIs. The SpiInstance structure which is static is getting cleared once the TpmRxBuffer array is declared inside the Xfsbl_TpmTransfer fuction. Due to this the program get stuck at Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY); inside XSpiPs_PolledTransfer(). I'm using zcu67dr RFSoC and the fsbl is running in OCM. I'm suspecting the limitted size of OCM is causing the issue. Can someone share some details about the memory constraints to be taken care for fsbl. where can I test the Optional TPM 2.0 support included in xilinx fsbl xlnx_rel_v2021.2.

vishnumohan1991 commented 1 year ago

anybody faced this issue, i am also getting something similar issue?