The invention provides a method and equipment for realizing a
firmware trusted platform module on an RISC-V platform, the functions of the
trusted platform module are realized without extra hardware extension through cooperation of
software and
firmware in combination with a PMP mechanism, a PUF and a hardware
timer of the RISC-V platform, and the realization mode comprises an isolation execution process, a hardware execution process and a hardware execution process. An fTPM isolation memory area is configured in the starting stage through a PMP mechanism, and access to fTPM codes and data is limited; a
static data protection process: generating a device key by using a PUF (
Physical Unclonable Function), and carrying out
encryption and integrity protection on fTPM persistent data in combination with a Flash
locking mechanism; the trusted starting process comprises the steps of adopting a DME mechanism, ensuring and maintaining the integrity of a starting metric chain and supporting a PCR register function; the efficient communication process comprises the steps of dynamically adjusting the PMP permission of a
shared memory area through a dynamic permission exchange page mechanism, and realizing zero-copy communication between the fTPM and an
operating system or an application program; and the secure
clock process comprises the step of constructing an independent trusted
clock source based on a hardware
timer of the RISC-V platform.