Skip to content

Conversation

@Ham22
Copy link
Member

@Ham22 Ham22 commented Dec 8, 2016

Added mfio support to be able to reset the TPM via gpio. Additionally found that board_late_init wasn't being called so enabled it and moved watchdog support out into it's standard location.

Tested by making sure that both a modified tpm reset board and a current version board are able to boot with a working tpm and still work after being reset (using reset button, using software command and cycling power).

This connects CreatorDev/openwrt#32

Ham22 added 3 commits December 5, 2016 13:27
Signed-off-by: Ian Pozella <Ian.Pozella@imgtec.com>
Signed-off-by: Ian Pozella <Ian.Pozella@imgtec.com>
We define some empty implementations of the board_*_init functions
but don't actually have them enabled. This is confusing as if used
they won't actually do anything. Therefore have enabled any that we
actually use and removed empty definitions of disabled ones.

Signed-off-by: Ian Pozella <Ian.Pozella@imgtec.com>
void mfio_setup_led(void);
#endif

#if defined(CONFIG_TPM)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not CONFIG_TARGET_PISTACHIO_MARDUK?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

The current version of the board has the tpm reset line connected to
a gpio. This causes security issues meaning we need a new HW spin but
to make do with what we have at least reset the tpm on boot.

Therfore have added mfio_setup_tpm function and call it as part of
tpm initialisation.

This is certainly not the best place to put this but considering the
current arch of 'pistachio_bub is king' there isn't much else we can do
without refactoring everything.

Signed-off-by: Ian Pozella <Ian.Pozella@imgtec.com>
Copy link
Contributor

@abhijit-mahajani-imgtec abhijit-mahajani-imgtec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified with old bootloader not giving error on powered up
tpm init && tpm startup TPM_ST_CLEAR
but now its giving error since already initialized.

pistachio # tpm init && tpm startup TPM_ST_CLEAR
Error: -16

@Ham22 Ham22 merged commit cc290ef into CreatorDev:2015.10 Dec 9, 2016
@Ham22 Ham22 deleted the bug-32 branch December 9, 2016 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants