summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/tpm_test/tpmtest.py4
-rw-r--r--test/tpm_test/upgrade_test.py4
2 files changed, 2 insertions, 6 deletions
diff --git a/test/tpm_test/tpmtest.py b/test/tpm_test/tpmtest.py
index a774e4913e..2f915a09d9 100755
--- a/test/tpm_test/tpmtest.py
+++ b/test/tpm_test/tpmtest.py
@@ -55,10 +55,6 @@ class TPM(object):
self._handle = ftdi_spi_tpm
if not self._handle.FtdiSpiInit(freq, debug_mode):
raise subcmd.TpmTestError('Failed to connect')
- response = self.command(''.join('%c' % int('0x%s' % x, 16)
- for x in self.STARTUP_CMD.split()))
- if ' '.join('%2.2x' % ord(x) for x in response) not in self.STARTUP_RSP:
- raise subcmd.TpmTestError('init failed')
def validate(self, data_blob, response_mode=False):
"""Check if a data blob complies with TPM command/response header format."""
diff --git a/test/tpm_test/upgrade_test.py b/test/tpm_test/upgrade_test.py
index 2d2c0b7169..69e8630358 100644
--- a/test/tpm_test/upgrade_test.py
+++ b/test/tpm_test/upgrade_test.py
@@ -37,9 +37,9 @@ def upgrade(tpm):
raise subcmd.TpmTestError('Initialization error %d' %
ord(base_str[0]))
base = struct.unpack_from('>4I', base_str)[3]
- if base == 0x84000:
+ if base == 0x44000:
fname = 'build/cr50/RW/ec.RW_B.flat'
- elif base == 0x44000:
+ elif base == 0x4000:
fname = 'build/cr50/RW/ec.RW.flat'
else:
raise subcmd.TpmTestError('Unknown base address 0x%x' % base)