| commit | 5364e6155dbe1511c2b506c7320533170c56ab0f | [log] [tgz] |
|---|---|---|
| author | Julien Masson <jmasson@baylibre.com> | Wed Jul 06 11:40:50 2022 +0200 |
| committer | Jérôme Forissier <jerome@forissier.org> | Fri Sep 09 15:12:00 2022 +0200 |
| tree | a1e7e9173ae220f8d0ff7ce3223b738a978f8445 | |
| parent | a46239c82f941f60e91b31ff4e0c94569ac41e1b [diff] |
tee-supplicant: read rpmb dev info from sysfs For now tee-supplicant retrieve RPMB informations by opening mmc dev node and read data at the corresponding offset. That is a problem on Android device with selinux enabled because the access to this node is restricted to kernel/init. All the necessary informations can instead be read from sysfs: - RPMB partition size: /sys/class/mmc_host/mmc%u/mmc%u:0001/raw_rpmb_size_mult - Reliable write sector count: /sys/class/mmc_host/mmc%u/mmc%u:0001/rel_sectors Tests done on the following board: (Android build) https://ologicinc.com/portfolio/mediatek-pumpkin-i350/ Signed-off-by: Julien Masson <jmasson@baylibre.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (hikey-hikey)
This git contains source code for the non-secure side implementation of the OP-TEE project making up the client library and tee-supplicant.
All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_client.
// OP-TEE core maintainers