optimize tpm2serial firmware