The instructions here will tell how to run OP-TEE on HiKey 6220.
First you must understand that HiKey project as such is led by the 96Boards project. So, if you aren't interested in running OP-TEE on the device, then you should stop reading here and instead have a look at the official HiKey documentation.
For OP-TEE using HiKey you will still find information in more than one place. There are a couple of reasons for that.
If you have questions regarding the configurations above, please reach out to the people on the right forum (96Boards, Google and Linaro-SWG).
This particular guide is maintained by the OP-TEE team and this is what we use when we are doing are stable releases. I.e, for OP-TEE this should be considered as a well maintained guide with a fully working setup.
There are four different versions of the HiKey board.
Name | Manufacturer | Memory | Flash | Comment |
---|---|---|---|---|
HiKey | CircuitCo | 1GB | 4GB | Green solder mask |
HiKey | LeMaker | 1GB | 8GB | Black solder mask |
HiKey | LeMaker | 2GB | 8GB | Black solder mask |
All of them works, but where differences apply we have default configurations that works for the LeMaker 8GB eMMC versions.
Everything is configured to use the 96Boards UART Adapter Board. The UART is by default configured to UART3. If you don't have any UART adapter board and instead would like to use UART0, then you need to change that before building. See CFG_NW_CONSOLE_UART
and CFG_NW_CONSOLE_UART
in hikey.mk.
Just follow the "Get and build the solution" in the README.md file. The make flash
step will tell you how you should set the jumpers on the board.
If you manage to corrupt the device, so that fastboot doesn't load automatically on boot, then you will need to run the recovery procedure. Basically what you will need to do is use another make target and change some jumpers. All that is described when you run the target:
$ make recovery