Skip to content

Commit 0c9fa8e

Browse files
dgarskedanielinux
authored andcommitted
Various minor: Xilinx instructions. Expect RX_TSIP_SRC=1 to enable. TPM support in update_ram.c.
1 parent 8fff9cf commit 0c9fa8e

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

IDE/XilinxSDK/README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ A build settings template for Zynq UltraScale+ can be found here `./config/examp
2828
```sh
2929
$ cp ./config/examples/zynqmp.config .config
3030
$ make keytools
31+
$ make wolfboot.elf
3132
```
3233

3334
These template settings are also in this `.cproject` as preprocessor macros. These settings are loaded into the `target.h.in` template by the wolfBoot `make`. If not using the built-in make then the following defines will need to be manually created in `target.h`:
@@ -201,33 +202,34 @@ Successfully ran Hello World application
201202

202203
### Adding RSA Authentication
203204

204-
1. Generate keys:
205+
1. Update boot.bif (see boot_auth.bif)
206+
207+
```
208+
[auth_params] ppk_select=0; spk_id=0x00000000
209+
[pskfile] pskf.pem
210+
[sskfile] sskf.pem
211+
authentication=rsa
212+
```
213+
214+
2. Generate keys:
205215
* `bootgen.exe -generate_keys auth pem -arch zynqmp -image boot_auth.bif`
206-
2. Create hash for primary key:
216+
3. Create hash for primary key:
207217
* `bootgen.exe -image boot_auth.bif -arch zynqmp -w -o i BOOT.BIN -efuseppkbits ppkf_hash.txt`
208-
3. Import example project for programming eFuses:
218+
4. Import example project for programming eFuses:
209219
* New BSP project (program efuses , ZCU102_hw_platform, standalone, CPU: PSU_cortexa53_0)
210220
* Goto Xilinx Board Support Packet Settings.
211221
* Scroll down to Supported Libraries and Check the xiskey library
212222
* In the system.mss pane, scroll down to Libraries and click Import Examples.
213223
* Check the xilskey_esfuseps_zynqmp_example
214-
4. Edit `xilskey_efuseps_zynqmp_input.h`
224+
5. Edit `xilskey_efuseps_zynqmp_input.h`
215225
* 433 `#define XSK_EFUSEPS_WRITE_PPK0_HASH TRUE`
216226
* 453 `#define XSK_EFUSEPS_PPK0_IS_SHA3 TRUE`
217227
* 454 `#define XSK_EFUSEPS_PPK0_HASH "0000000000000000000000000000000000000000000000000000000000000000" /* from ppkf_hash.txt */`
218-
5. Update boot.bif (see boot_auth.bif)
219-
220-
```
221-
[auth_params] ppk_select=0; spk_id=0x00000000
222-
[pskfile] pskf.pem
223-
[sskfile] sskf.pem
224-
authentication=rsa
225-
```
226228
227229
6. Build “boot.bin” image:
228230
* `bootgen -image boot_auth.bif -arch zynqmp -o i BOOT.BIN -w`
229231
230-
Note: During testing add `[fsbl_config] bh_auth_enable` to allow skipping of the eFuse check of the PPK hash. In production the RSA_EN eFuses must be blown to force checking of the PPK hash.
232+
Note: During testing add `[fsbl_config] bh_auth_enable` to allow skipping of the eFuse check of the PPK hash. In production the `RSA_EN` eFuses must be blown to force checking of the PPK hash.
231233
232234
Note: To generate a report of a boot.bin use the `bootgen_utility` or after 2022.1 use `bootgen -read`:
233235
`bootgen -arch zynqmp -read BOOT.BIN`

arch.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ ifeq ($(ARCH),RENESAS_RX)
461461
./lib/wolfssl/wolfcrypt/src/port/Renesas/renesas_tsip_util.o
462462

463463
# RX TSIP uses pre-compiled .a library by default
464-
ifeq ($(RX_TSIP_SRC),)
464+
ifneq ($(RX_TSIP_SRC),1)
465465
ifeq ($(TARGET),rx65n)
466466
ifeq ($(BIG_ENDIAN),1)
467467
LIBS+=$(RX_DRIVER_PATH)/r_tsip_rx/lib/gcc/libr_tsip_rx65n_big.a

src/update_ram.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#include "printf.h"
3030
#include "wolfboot/wolfboot.h"
3131
#include <string.h>
32+
#ifdef WOLFBOOT_TPM
33+
#include "tpm.h"
34+
#endif
3235
#ifdef WOLFBOOT_ELF
3336
#include "elf.h"
3437
#endif

0 commit comments

Comments
 (0)