linux下测试tpm,linux tpm 測試完整記錄,親測有效。
沒有tpm芯片,采用模擬器的方式來測試。
實驗環境:內核版本 3.10.0-327
軟件包准備:
內網,沒有倉庫,自己網上下載:
1. cmake-3.9.6-Linux-x86_64.tar.gz
解壓后就已經有bin文件,可以直接使用bin下的cmake,
ls cmake-3.9.6-Linux-x86_64/
bin doc man share
2. 然后下載gmp,我使用的是gmp-6.1.2版本,
./configure && make && make install
在install的時候,它會提醒要求make check
+-------------------------------------------------------------+
| CAUTION: |
| |
| If you have not already run "make check", then we strongly |
| recommend you do so. |
| |
| GMP has been carefully tested by its authors, but compilers |
| are all too often released with serious bugs. GMP tends to |
| explore interesting corners in compilers and has hit bugs |
| on quite a few occasions. |
| |
+-------------------------------------------------------------+
我也按要求操作一把,沒看到什么區別,但是同事在復制我的過程的時候,還是有些區別,建議大家安裝步驟來。
3.安裝tpm_emulator
因為並沒有真實的芯片,所以還需要安裝模擬器,如果有真實的芯片支持,則可以跳過安裝模擬器這一步。
下載並解壓之后,老規矩,先看readme,readme中針對不同的操作系統給了不同的步驟。
The compilation and installation of the TPM emulator package is based on
the CMake build environment (version 2.6or better) and requires that the
GNU MP library (version 4.0or better) is properly installed on your
system. A working MinGW compiler suite is further required on Windows
(see http://www.mingw.org/). To compile and install the package execute:
# tar -xvzf tpm_emulator-X.Y.tar.gz
# cd tpm_emulator-X.Y
# mkdirbuild
# cd build
# cmake ../ ----------這一步,由於我們第一
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!