David,
This is a script I use on my development machine in order to start software TMP
and tcsd. Note, I execute it as root although it is not strictly required, so
feel free to modify it and use it for your own needs.
#!/bin/bash +x
PROG_NAME=$(basename $0)
SW_TPM_BASE_DIR=/home/dima
if [ $(id -u) -ne 0 ]; then
echo "'$PROG_NAME' must be run as 'root'."
exit 1
fi
echo "Killing tcsd and tpmd if they are running."
pkill tcsd
pkill tpmd
pkill tpm_server
sleep 1
echo "Starting IBM TPM simulator."
export TPM_VAR_DIR=/usr/local/var/lib/tpm
export TPM_PORT=55111
$SW_TPM_BASE_DIR/src/tpm4665/tpm/tpm_server >$TPM_VAR_DIR/debug.log 2>&1 &
sleep 1
export TPM_SERVER_PORT=$TPM_PORT
export TPM_SERVER_NAME=localhost
$SW_TPM_BASE_DIR/src/tpm4665/libtpm/utils/tpmbios
if [ $? -ne 0 ]; then
exit $?
fi
#$SW_TPM_BASE_DIR/src/tpm4665/libtpm/utils/createek
#$SW_TPM_BASE_DIR/src/tpm4665/libtpm/utils/nv_definespace -in ffffffff -sz 0
export TCSD_TCP_DEVICE_PORT=$TPM_PORT
/usr/local/sbin/tcsd -e -c /usr/local/etc/tcsd.conf
#--- THE END
----- Original Message -----
> From: "David Challener" <[email protected]>
> To: [email protected]
> Sent: Friday, November 21, 2014 11:57:37 AM
> Subject: [TrouSerS-users] linking vTPM and TSS
> There doesn't seem to be a good step by step guide to linking these.
> This is what works for me:
> How to link the vTPM with the TSS
> In the following, my user is called “tpmprogrammer”. If you username
> is different, you will need to change it. I have installed the tpm
> subgroup under the user directory, and all the things execute there.
> 1) Create a subdirectory under the user subdirectory called tpm_data
> 2) Make up a file to set the environment. Call it myenv.sh
> export TPM_SERVER_PORT=6543
> export TPM_SERVER_NAME=localhost
> export TPM_PORT=6543
> export TCSD_TCP_DEVICE_PORT=6543
> export TPM_PATH=/home/tpmprogrammer/tpm_data
> 3) become superuser
> sudo -s
> 4) set the environment
> . ./mydir.sh
> 5) start up the tpm_server
> tpm/tpm_server
> 6) minimize the terminal
> 7) Create a new terminal
> 8) become superuser
> sudo –s
> 9) set the environment
> . ./mydir.sh
> 10) run tpmbios (you need to find where it is.)
> 11) set the environment (probably not necessary)
> . ./mydir.sh
> 12) service tcsd stop
> 13) /usr/sbin/tcsd –e
> everything should be working now. Try it out with
> 14) tpm_version
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and
> Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration &
> more
> Get technology previously reserved for billion-dollar corporations,
> FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> TrouSerS-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/trousers-users
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users