github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/src/tpm2/instr.txt (about)

     1  Enable secure extensions in bios
     2  
     3  apt-get install trousers
     4  apt-get install libtspi-dev
     5  apt-get install tpm-tools
     6  apt-get install tcm
     7  
     8  https://help.ubuntu.com/community/Grub2/Setup#Configuring_GRUB_2
     9  
    10  BIOS: Enable "Platform Trust Technology"
    11  Boot kernel
    12  dmesg | grep -i tpm  # Look for ACPI: TPM2 0x...
    13  lsmod | grep -i tpm  # Look for tpm_crb
    14  
    15  /home/jlm$ sudo ./tpm2-utils-master/tpm2-test vendor_string_1 | hd
    16  [sudo] password for jonmccune:
    17  00000000  80 01 00 00 00 1b 00 00  00 00 01 00 00 00 06 00  |................|
    18  00000010  00 00 01 00 00 01 06 49  6e 74 65                 |.......Inte|
    19  0000001b
    20  
    21  # ./tpm2-utils-master/tpm2-test /dev/tpm0 vendor_string_1 | hd
    22  00000000  80 01 00 00 00 1b 00 00  00 00 01 00 00 00 06 00  |................|
    23  00000010  00 00 01 00 00 01 06 49  6e 74 65                 |.......Inte|
    24  0000001b
    25  
    26  root@Fermat:/home/jlm/TPM2.0-TSS-master# make clean; make all
    27  
    28  root@Fermat:/home/jlm/TPM2.0-TSS-master# find . -executable -type f
    29  ./resourcemgr/debug/resourcemgr
    30  ./resourcemgr/release/resourcemgr
    31  ./test/tpmclient/debug/tpmclient
    32  ./test/tpmclient/release/tpmclient
    33  ./test/tpmclient/release/tpmclient
    34  get TPM2.0-TSS-master
    35  cd TPM2.0-TSS-master
    36  make clean; make all
    37  
    38  
    39  TERMINAL 1:
    40  root@Fermat:/home/jlm/TPM2.0-TSS-master# ./resourcemgr/debug/resourcemgr
    41  
    42  TERMINAL 2:
    43  jonmccune@Fermat:/home/jlm/TPM2.0-TSS-master$ ./test/tpmclient/debug/tpmclient
    44  
    45  insmod multiboot
    46  insmod multiboot2
    47  insmod relocator
    48  
    49  at grub> normal
    50  
    51  
    52  menuentry 'tboot + Linux vmlinuz-4.0.0-040000-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    53          recordfail
    54          set root="hd0,2"
    55          echo "tboot booting"
    56          multiboot2 /boot/tboot.gz /boot/tboot.gz logging=serial,vga,memory
    57          echo "linux booting"
    58          module /boot/vmlinuz-4.0.0-040000-generic /boot/vmlinuz-4.0.0-040000-generic tpm_tis.force=1 intel_iommu=on
    59          echo "initram"
    60          module /boot/initrd.img-4.0.0-040000-generic /boot/initrd.img-4.0.0-040000-generic
    61          echo "sinit"
    62          module /boot/5th_gen_i5_i7_SINIT_79.BIN /boot/5th_gen_i5_i7_SINIT_79.BIN
    63  }
    64  
    65