From: pau <pau@linux.vnet.ibm.com>
To: Peter Huewe <PeterHuewe@gmx.de>
Cc: Mimi Zohar <zohar@linux.vnet.ibm.com>,
Nayna Jain <nayna@linux.vnet.ibm.com>,
linux-integrity@vger.kernel.org
Subject: Re: Aw: Re: Re: tpm_tis_spi gets initialized long after IMA
Date: Fri, 29 Sep 2017 15:49:44 -0400 [thread overview]
Message-ID: <44c1e36d3113badfe4b76fcdafbb6df7@linux.vnet.ibm.com> (raw)
In-Reply-To: <trinity-14f61785-1f5f-4f45-9b7e-5cd197936a6d-1506710663754@3c-app-gmx-bs57>
On 2017-09-29 14:44, Peter Huewe wrote:
> Hi Mimi, Hi Nayna,
>
>
>> The patch replaces the call to builtin_platform_driver(), with a call
>> to core_initcall().
>
>> https://github.com/raspberrypi/linux/blob/rpi-4.8.y/drivers/clk/bcm/cl
>> k-bcm2835.c
>
>> static int __init __bcm2835_clk_driver_init(void)
>> {
>> return platform_driver_register(&bcm2835_clk_driver);
>> }
>> core_initcall(__bcm2835_clk_driver_init);
>
> Ah it is already in the rpi sources - however I *am* using these, but
> it does not work?
> Any ideas or pointers highly appreciated.
>
Peter,
I made TPM work on my RPI 3 Model B running a version of rpi-4.8.y.
From the dmesg you provided in the previous email, there could be
several possible reasons why the kernel is not detecting the
TPM-SPI chip :
1. The SPI bus is not enabled on the Pi. You can use the
raspi-config
command with sudo.
sudo raspi-config
then select Advanced Options,
then select SPI.
https://www.raspberrypi.org/documentation/configuration/raspi-config.md
2. A node for the TPM chip is not properly added to the device tree.
3. A node is added to the device tree source, but it is not compiled
into
binary from.
4. The node is compiled, but you did not tell the kernel to use it
during boot.
The binary overlay files (.dtbo) are placed under
/boot/overlays.
To activate the TPM overlay, place the line
dtoverlay=tpm_tis_spi
in /boot/config.txt.
But first make sure there is this file
/boot/overlays/tpm_tis_spi.dtbo
Regarding device tree (points 2. and 3.), it is more involved and I
did not have
time now to give a detailed answer. But as a starter, besides the
dmesg msgs in
your previous email, did dmesg give any other message on TPM ?
Also, it is possible that TPM initialization was delayed but
eventually completed
at a later time during boot (although not in time for IMA). After
the completion
of the boot process, is there a /dev/tpm0 char special file (or
/dev/tpm*) ?
Pau-Chen
next prev parent reply other threads:[~2017-09-29 19:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-28 21:18 tpm_tis_spi gets initialized long after IMA Peter Huewe
2017-09-28 21:36 ` Aw: " Peter Huewe
2017-09-29 1:09 ` Mimi Zohar
2017-09-29 8:21 ` Aw: " Peter Huewe
2017-09-29 11:40 ` Mimi Zohar
2017-09-29 18:44 ` Aw: " Peter Huewe
2017-09-29 19:49 ` pau [this message]
2017-09-29 20:14 ` Aw: " Peter Huewe
2017-12-15 13:26 ` Mimi Zohar
2017-12-21 13:59 ` Mimi Zohar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44c1e36d3113badfe4b76fcdafbb6df7@linux.vnet.ibm.com \
--to=pau@linux.vnet.ibm.com \
--cc=PeterHuewe@gmx.de \
--cc=linux-integrity@vger.kernel.org \
--cc=nayna@linux.vnet.ibm.com \
--cc=zohar@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.