Menu

Failed to open specified TCTI device file /dev/tpmrm0: No such file or directory

2020-12-05
2020-12-07
  • viswanath ponnuru

    I am trying to install software TPM and error while running the sample tpm2_pcrread command.

    OS: Ubuntu 18.04.5 LTS Desktop, VirutalBox VM

    The installation details are:
    TPM2 TSS
    $ sudo apt -y update
    $ sudo apt -y install \
    autoconf-archive \
    libcmocka0 \
    libcmocka-dev \
    procps \
    iproute2 \
    build-essential \
    git \
    pkg-config \
    gcc \
    libtool \
    automake \
    libssl-dev \
    uthash-dev \
    autoconf \
    doxygen \
    libjson-c-dev \
    libini-config-dev \
    libcurl4-openssl-dev

    $ git clone git://github.com/tpm2-software/tpm2-tss.git
    $ ./bootstrap
    $ cd tpm2-tss
    $ ./bootstrap
    $ ./configure --prefix=/usr --with-udevrulesdir=/usr/lib/udev/rules.d
    $ make -j5
    $ sudo make install
    $ sudo udevadm control --reload-rules && sudo udevadm trigger
    $ sudo ldconfig

    check if the tss user exists:
    $ getent passwd | grep tss

    sudo apt-get install libglib2.0-dev
    TPM2 - ABRMD
    $ git clone git://github.com/tpm2-software/tpm2-abrmd.git
    $ cd tpm2-abrmd
    $ ./bootstrap
    $ ./configure --with-dbuspolicydir=/etc/dbus-1/system.d --with-udevrulesdir=/usr/lib/udev/rules.d --with-systemdsystemunitdir=/usr/lib/systemd/system --libdir=/usr/lib64 --prefix=/usr
    $ make -j5
    $ sudo make install
    $ sudo ldconfig

    $ sudo useradd --system --user-group tss

    sudo apt-get install uuid-dev
    TPM2 - tools
    $ git clone git://github.com/tpm2-software/tpm2-tools.git
    $ cd tpm2-tools
    $ ./bootstrap
    $ ./configure --prefix=/usr
    $ make -j5
    $ sudo make install

    TPM Simulator
    $ mkdir ibmtpm && cd ibmtpm
    $ wget https://downloads.sourceforge.net/project/ibmswtpm2/ibmtpm1637.tar.gz
    $ tar -zxvf ibmtpm1637.tar.gz
    $ cd src
    $ make -j5

    sudo systemctl reload dbus
    sudo -u tss tpm2-abrmd --tcti="mssim:host=localhost,port=2321"

    Error while running the sample command:
    $ tpm2_pcrread
    ERROR:tcti:src/tss2-tcti/tcti-device.c:441:Tss2_Tcti_Device_Init() Failed to open specified TCTI device file /dev/tpmrm0: No such file or directory
    WARNING:tcti:src/tss2-tcti/tctildr.c:79:tcti_from_init() TCTI init for function 0x7f39e12ad6c9 failed with a000a
    WARNING:tcti:src/tss2-tcti/tctildr.c:109:tcti_from_info() Could not initialize TCTI named: tcti-device
    ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: libtss2-tcti-device.so.0
    ERROR:tcti:src/tss2-tcti/tcti-device.c:441:Tss2_Tcti_Device_Init() Failed to open specified TCTI device file /dev/tpm0: No such file or directory
    WARNING:tcti:src/tss2-tcti/tctildr.c:79:tcti_from_init() TCTI init for function 0x7f39e12ad6c9 failed with a000a
    WARNING:tcti:src/tss2-tcti/tctildr.c:109:tcti_from_info() Could not initialize TCTI named: tcti-device
    ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: libtss2-tcti-device.so.0

    Appreciate any help in solving the issue.
    Thank you,
    Vish

     
    • Ken Goldman

      Ken Goldman - 2020-12-07

      This project is for the IBM implementation of the SW TPM. If you have questions on the Intel TSS, you'll have to post to their mailing list.
      You are welcome to try this TSS, a project that I also support:
      https://sourceforge.net/projects/ibmtpm20tss/

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.