[U-Boot] [PATCH] tpm: Add TPM command library and utility commands

Wolfgang Denk wd at denx.de
Sat Feb 9 07:55:46 CET 2013


Dear Che-Liang Chiou,

In message <1360371227-13404-1-git-send-email-clchiou at chromium.org> you wrote:
> TPM command library implements a subset of TPM commands defined in TCG
> Main Specification 1.2 that are useful for implementing secure boot.
> More TPM commands could be added out of necessity.
> 
> You may exercise these commands through the 'tpm' command.  However,
> the 'tpm' command is too primitive for writing secure boot in command
> interpreter scripts; so the utility commands 'tpmutil' is provided to
> make this task easier.
> 
> For example, to define a counter in TPM non-volatile storage and
> initialize it to zero:
> 
> $ tpm init
> $ tpm startup TPM_ST_CLEAR
> $ tpmutil nv_define d 0x1001 0x1
> $ tpmutil nv_write d 0x1001 0

This is extremely ugly?  Why can we not implement both parts of the
functionality in a single command (tpm) ?

Please fix!

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Philosophy:  A route of many roads leading from nowhere to nothing.
- Ambrose Bierce


More information about the U-Boot mailing list