hex-five / multizone-sdk

MultiZone® Security TEE is the quick and safe way to add security and separation to any RISC-V processors. The RISC-V standard ISA doesn't define TrustZone-like primitives to provide hardware separation. To shield critical functionality from untrusted third-party components, MultiZone provides hardware-enforced, software-defined separation of multi
https://hex-five.com/multizone-security-tee-riscv/
Other
79 stars 24 forks source link

Loading the Multizone Reference Application on HiFive1 Rev B #59

Closed utku1998 closed 10 months ago

utku1998 commented 11 months ago

Hello, I am trying to load the reference application on HiFive1 Rev B on Ubuntu 22.04.3 LTS. I did all of the steps written in the manual, section installation, and could successfully build the reference application, and got the following output:

=================================================================== HEX-Five MultiZone Security
Patents US 11,151,262 and PCT/US2019/03877
Copyright 2020 Hex Five Security, Inc. - All Rights Reserved

This version of MultiZone Security is meant for evaluation purposes only. As such, use of this software is governed by the Evaluation
License. There may be other functional limitations as described in the evaluation SDK documentation. The commercial version of the
software does not have these restrictions.

Kernel : section 0 address 0x40400000 size 0x00001a1c 7 KB Boot : section 0 address 0x40402000 size 0x00000018 1 KB Zone 1 : section 0 address 0x40408000 size 0x00003be4 15 KB Zone 2 : section 0 address 0x40406000 size 0x00000926 3 KB Zone 3 : section 0 address 0x40404000 size 0x00000b88 3 KB Zone 4 : section 0 address 0x40403000 size 0x0000047c 2 KB Warning: zone 3 region 3 overlaps zone 2 region 4.

However, once I tried to load the application on board (by running make load), I got the following error message:

Open On-Chip Debugger 0.11.0+dev-01860-g9aa8bab63-dirty (2021-08-08-01:14) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "jtag". To override use 'transport select '. Error: no device found Error: unable to open ftdi device with vid 15ba, pid 002a, description 'Olimex OpenOCD JTAG ARM-USB-TINY-H', serial '' at bus location ''

The target architecture is set to "riscv:rv32". localhost:3333: Connection timed out. "monitor" command not supported by this target. "monitor" command not supported by this target. You can't do that when your target is `exec' "monitor" command not supported by this target. "monitor" command not supported by this target.

I would be really happy if you could help me with the issue.

Best regards

utku1998 commented 11 months ago

Issue solved. As it is written in the git repo, the SiFive HiFive1 board doesn't support OpenOCD and requires the Segger propietary package JLink_Linux_V694_x86_64.deb. Then board FE310 needs to be selected!