This is the user-space portion for loading an FPGA bitstream on an Xilinx Zynq UltraScale+ MPSOC in combination with OP-TEE.
The trusted OS part is implemented as static TA within OP-TEE (not upstream as of now).
Building the use-space application requires the TEE client library and the TA devkit from an OP-TEE build.
HOST_CROSS_COMPILE
: Toolchain for the architecture the application will run onTEEC_EXPORT
: TEE client library exportsTA_DEV_KIT_DIR
: Directory of the TA devkit
make
./bsload [<bitstream_file>]
Options
bitstream_file
: Bitstream to load (bs.bit)
The TA expects a bitstream in bin format. A .bit file can be converted to a .bin using the bootgen utility following this AR.
- The TA assumes that all necessary pre-processing of the bitstream is done in user-space. Currently that requires user-space to convert the endianess of the .bit file. This step is currently not implemented in the user-space application. Hence, the bitstream passed to this application needs to be prepared accordingly beforehand.
- Add bitstream processing to application (see Known Issues)
- build and application boilerplate has been copied from https://github.com/jenswi-linaro/lcu14_optee_hello_world