summaryrefslogtreecommitdiff
path: root/README.md (plain)
blob: 51b689e630bcb8312e586f040a2e402c1f686f0b
1## How to build Linux 32-bit CA
2$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
3
4
5## How to build Linux 64-bit CA
6$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
7
8
9## How to build Linux driver
10$ export KERNEL_SRC_DIR=/path/to/your/kernel/source/directory
11$ export KERNEL_OUT_DIR=/path/to/your/kernel/output/directory
12$ make driver
13
14## How to build Android CA/driver
15$ mm
16
17## How to sign TA
18$ ./ta_export/scripts/gen_cert_key.py
19 --root_rsa_key=ta_export/keys/root_rsa_prv_key.pem
20 --ta_rsa_key=ta_export/keys/ta_rsa_pub_key.pem
21 --uuid=8aaaf200-2450-11e4-abe2-0002a5d5c51b
22 --ta_rsa_key_sig=ta_rsa_key.sig
23 --root_aes_key=ta_export/keys/root_aes_key.bin
24 --ta_aes_key=ta_export/keys/ta_aes_key.bin
25 --ta_aes_iv=ta_export/keys/ta_aes_iv.bin
26 --ta_aes_key_iv_enc=ta_aes_key_enc.bin
27$ ./ta_export/scripts/sign_ta.py
28 --ta_rsa_key=ta_export/keys/ta_rsa_prv_key.pem
29 --ta_rsa_key_sig=ta_rsa_key.sig
30 --ta_aes_key=ta_export/keys/ta_aes_key.bin
31 --ta_aes_iv=ta_export/keys/ta_aes_iv.bin
32 --ta_aes_key_iv_enc=ta_aes_key_enc.bin
33 --in=8aaaf200-2450-11e4-abe2-0002a5d5c51b.ta
34 --out=8aaaf200-2450-11e4-abe2-0002a5d5c51b.ta
35