Trusted Computing Group[1] is an alliance initiated to provide trusted computing by developing a chip following the specifications[2] , revised edition published in July 2007, thus providing cryptographic  keys[3]  used for security of Information.   
Openmoko[4] Inc. sponsored a project for the creation of mobiles phones with open architecture, both hardware and operating system; the project was name Openmoko[4]. In the mid 2008 Neo FreeRunner came out to the market, with the beauty of customization of its operating system and software stack. There are various other phones supporting Openmoko.

In this documentation we cover the proper deployment of a TPM emulator on the software stack of Openmoko device. This task is a deliverable in the project DBAMP funded by ICT R&D accomplished at SERG.

 

Contents

  1. TPM/MTM Emulators
  2. Obtaining Tool Chain
  3. Installation of TPM Emulator
  4. Installation of TPM Tools
  5. Installation of Trousers
  6. Trouble shooting
  7. References
     

1. TPM/MTM Emulator
Software based Emulator for TPM[5]/MTM is a flexible simulator of the hardware TPM/MTM providing a strong platform for testing and debugging tool for programmers. The emulator is portable to different operating systems like Linux, Mac, Windows etc, and provides compatibility to common Software’s.

2. Obtaining Tool Chain
You need a tool chain[6] to cross compile the libraries and to setup environment for cross compilation. The Tools-Chain’s Cross-compiler will compile the source code from native machine (x86 in our case) to a target platform (ARM).  To Download the tool chain Click here.

 Extract the contents of the archive to the root directory and the files will get to /usr/local/openmoko.
 

3.Installation of TPM Emulator
First we have to download the TPM emulator [7]from the site given below
http://tpm-emulator.berlios.de/download.html
To use the TPM emulator [7]you have to perorm the following step.The downloaded file is in tar.gz form.First unextract it through the command given below
 
#tar -xvzf tpm_emulator-X.Y.tar.gz
 
Then go to the tpm emulator directory through the command
 
# cd tpm_emulator-X.Y
 
In tpm emulator directory we have to make another directory named as build through the command
 
# mkdir build

Go in to build directory through the command given below
 
# cd build 
# . /usr/local/openmoko/arm/bin/setup-env
# . /usr/local/openmoko/arm/envirnoment-setup
 
 Now execute this command in terminal

# cmake ../
 
After cmake you have to install libgmp3-dev otherwise it will give you error.
 
#apt-get install libgmp3-dev
 
Then excute the following command
 
# make
# make install
 
To start using the tpm emulator in linux you have excute the following command
 
#depmod -a(To resolve the dependencies)
# modprobe tpmd_dev
# tpmd
 
4.Installation of TPM Tools 
First we have to download the TPM Tools [8]from the site given below
http://sourceforge.net/projects/trousers/files/tpm-tools/1.3.5/tpm-tools-1.3.5.tar.gz/downloadTo

use the TPM Tools you have to perorm the following step.The downloaded file is in tar.gz form.First unextract it through the command given below
 
#tar -xvzf tpm_tools.tar.gz
# . /usr/local/openmoko/arm/bin/setup-env
# . /usr/local/openmoko/arm/envirnoment-setup
# ./configure
#make
#make install
 
 
5.Installation of Trousers
 First we have to download the Trouser[9] from the site given below
http://sourceforge.net/projects/trousers/files/To use the Trousers you have to perorm the following step
 
The downloaded file is in tar.gz form.First unextract it through the command given below
 
#tar -xvzf trouser-X.Y.tar.gz
 
Then go to the trouser directory through the command
 
# cd trouser-X.Y
# . /usr/local/openmoko/arm/bin/setup-env
# . /usr/local/openmoko/arm/envirnoment-setup
# ./configure
#make
#make install
 

6.Trouble Shooting

7.References
 
[1]http://www.trustedcomputinggroup.org/
[2]http://www.trustedcomputinggroup.org/resources/tpm_main_specification
[3]http://en.wikipedia.org/wiki/Cryptography
[4]http://en.wikipedia.org/wiki/Openmoko
[5]http://en.wikipedia.org/wiki/Trusted_Platform_Module
[6]http://downloads.openmoko.org/developer/toolchains/openmoko-i686-20090323-armv4t-linux-gnueabi-toolchain-openmoko.tar.bz2
[7http://tpm_emulator.berlios.de/                                                                                                                                                                                                                                                                                                                   [8]http://sourceforge.net/projects/trousers/files/tpm-tools/1.3.5/tpm-tools-1.3.5.tar.gz/download
[9]http://sourceforge.net/projects/trousers/files/

Leave a Reply


(Required)

(Required)