FACTORY: temp: Startup TPM and ignore POSTINIT return value when
wipe TPM
Current work in progress ARM firmware temporarily turned on VBOOT
functionalities in H2O binary. This is not expected, side effect
includes crossystem might consider itself in H2C mode. But TPM
didn't startup in H2O mode.
Factory install flow use crossystem to decide to clear TPM or not.
Inorder to make factory install flow run in H2O and H2C firmware.
A duplicate TPM startup added and ignore its return value.
Change-Id: I1db1fa413d8c09867f940104f3b52e8f1ce52654
Reviewed-on: http://gerrit.chromium.org/gerrit/594
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Tested-by: Rong Chang <rongchang@chromium.org>
diff --git a/factory_install.sh b/factory_install.sh
index cb53170..b8d1c77 100644
--- a/factory_install.sh
+++ b/factory_install.sh
@@ -26,6 +26,8 @@
# Reset TPM
# tcsd needs to have not been run. It locks the TPM.
+ # Add tpm startup command. Second startup won't hurt.
+ tpmc startup || true
tpmc ppon
tpmc clear
tpmc enable