| commit | 9f8ae929e5b4fd5a6c1693271f130e72fee81615 | [log] [tgz] |
|---|---|---|
| author | Jerome Forissier <jerome.forissier@linaro.org> | Fri Jan 29 17:36:26 2016 +0100 |
| committer | Jerome Forissier <jerome.forissier@linaro.org> | Wed Feb 10 10:06:47 2016 +0100 |
| tree | adfb2920261cb6051e2ac7a07e9700e7f9e3b3f3 | |
| parent | be3363851cd5d4ca68f9841d2f559df3741bc1e5 [diff] |
RPMB: fix read_cid() and data access with a real eMMC device Prior to this commit, the RPMB code was tested in emulation mode only (RPMB_EMU=1). This fixes a couple of issues found when testing with a real eMMC device on a HiKey board. The eMMC is a Hardkernel 8GB module plugged into the microSD port. Kernel is from Linaro's 96boards repository [1], slightly modified so that the RPMB can be used on the microSD connector (MMC_CAP_CMD23 is added to the capability flags of the second MMC controller). [1] https://github.com/96boards/linux branch hikey commit 54e6524885a9 ("Merge pull request #178 from xin3liang/hikey-3.18-720p-boot-issue"). Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
The optee-client git, containing the source code for the TEE client library in Linux. This component provides the TEE Client API as defined by the GlobalPlatform TEE standard. It is distributed under the BSD 2-clause open-source license. For a general overview of OP-TEE, please see the Notice.md file.
In this git there are two main target/binaries to build. There is libteec.so, which is the library that contains that API for communication with the Trusted OS. Then the other target is the binary tee-supplicant which is a daemon serving the Trusted OS in secure world with miscellaneous features, such as file system access.
The software is provided under the BSD 2-Clause license.
This software in this git doesn't directly have any dependencies to any particular hardware, since it's pure software library directly communicating with the Linux kernel. Currently the software has been tested using:
We will strive to use the latest available compiler from Linaro. Start by downloading and unpacking the compiler. Then export the PATH to the bin folder.
$ cd $HOME $ mkdir toolchains $ cd toolchains $ wget http://releases.linaro.org/14.05/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux.tar.xz $ tar xvf gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux.tar.xz $ export PATH=$HOME/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux/bin:$PATH
$ cd $HOME $ mkdir devel $ cd devel $ git clone https://github.com/OP-TEE/optee_client.git
$ cd $HOME/devel/optee_client $ make
To be able to see the full command when building you could build using following flag:
$ make BUILD_VERBOSE=1
In this project we are trying to adhere to the same coding convention as used in the Linux kernel (see CodingStyle). We achieve this by running checkpatch from Linux kernel. However there are a few exceptions that we had to make since the code also follows GlobalPlatform standards. The exceptions are as follows:
Since checkpatch is licensed under the terms of GNU GPL License Version 2, we cannot include this script directly into this project. Therefore we have written the Makefile so you need to explicitly point to the script by exporting an environment variable, namely CHECKPATCH. So, suppose that the source code for the Linux kernel is at $HOME/devel/linux, then you have to export like follows:
$ export CHECKPATCH=$HOME/devel/linux/scripts/checkpatch.pl
thereafter it should be possible to use one of the different checkpatch targets in the Makefile. There are targets for checking all files, checking against latest commit, against a certain base-commit etc. For the details, read the Makefile.