Ronnie,
My understanding of the architecture as follows:
1. libtspi is implementation of TSS interface;
2. libtss communicates with tcsd via TCS interface and if tcsd is not running (some of) libtspi calls will return errors (not 100% sure about this).
3. tcsd comminicates with TPM driver (OS/kernel piece) via TDDL interface (/dev/tpm device on Linux)
4. TPM driver communicates with TPM using TDD interlace which is somewhat vendor specific.
So if you want to deal with TPM from boot loader you should be probably looking at TDD spec. All these interfaces are part of TSS specification and the officila documentation is on TCG web site. They constantly reorganizing the content, so my old bookmark did not work but I was using TSS_Version_1.2_Level_1_FINAL.pdf document as a reference.
Hope this helps.
----- Original Message -----
> From: "Ronnie L. Thomas" <***@atmel.com>
> To: "Ken Goldman" <***@us.ibm.com>, trousers-***@lists.sourceforge.net
> Sent: Monday, June 22, 2015 10:23:11 AM
> Subject: Re: [TrouSerS-users] Doing it without tcsd
>
> Is there documentation that describes in detail how all the layers
> interact (i.e. TCSD, the kernel TPM driver, etc.)? I was under the
> impression that TCSD had to be started in order to run Trousers.
>
> Ronnie Thomas
> Senior Software Development Engineer-TPM/Atmel Corporation
> 1150 E. Cheyenne Mountain Blvd, Colorado Springs, CO 80906
> Tel:(+1)(719)-540-1604/Fax:(+1)(719)-540-1759
> ***@atmel.com/ http://www.atmel.com/
>
> -----Original Message-----
> From: Ken Goldman [mailto:***@us.ibm.com]
> Sent: Monday, June 22, 2015 7:44 AM
> To: trousers-***@lists.sourceforge.net
> Subject: Re: [TrouSerS-users] Doing it without tcsd
>
> On 6/19/2015 5:52 PM, Raja Sivagaminathan wrote:
> >
> > I think tcsd and the socket communication are unwanted pieces from
> > a
> > application point of view. [snip] My purpose is to configure TPM at
> > the time of installing my application.
>
> If you can guarantee that there are no other users of the TPM at the
> time you are installing your application, you can talk directly to
> the TPM. If you cannot, you need a scheduler and resource manager.
>
> A trivial example: What happens if your install needs to load a key,
> but another application has used all the key slots?
>
>
>
>
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email &
> sms
> for fault. Monitor 25 devices for free with no restriction. Download
> now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> _______________________________________________
> TrouSerS-users mailing list
> TrouSerS-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/trousers-users
>
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email &
> sms
> for fault. Monitor 25 devices for free with no restriction. Download
> now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> _______________________________________________
> TrouSerS-users mailing list
> TrouSerS-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/trousers-users
>