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

Support for Sifive u540 #46

Closed pankajjoshi347 closed 4 years ago

pankajjoshi347 commented 4 years ago

hi, i am very new to linux security.I am using sifive's u540 hifive unleashed and want to test working of multizone on the same.But i am unable to do so ,steps i am following is 1)i have downloaded the pre-built toolchain from http://hex-five.com/download

2)tar -xvf riscv-gnu-toolchain-20181226.tar.xz tar -xvf riscv-openocd-20181226.tar.xz git clone https://github.com/hex-five/multizone-sdk sudo apt-get install libusb-0.1-4 sudo apt-get install screen

3)sudo vi /etc/udev/rules.d/99-openocd.rules

These are for the HiFive1 Board

SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", MODE="664", GROUP="plugdev" SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="664", GROUP="plugdev"

These are for the Olimex Debugger for use with E310 Arty Dev Kit

SUBSYSTEM=="usb", ATTR{idVendor}=="15ba", ATTR{idProduct}=="002a", MODE="664", GROUP="plugdev" SUBSYSTEM=="tty", ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="002a", MODE="664", GROUP="plugdev"

4) export RISCV=/home/embd/riscv-gnu-toolchain-20181226 export OPENOCD=/home/embd/riscv-openocd-20181226 export PATH="$PATH:/home/embd/riscv-gnu-toolchain-20181226/bin"

5) cd multizone-sdk/ make clean make BOARD=u540 ake BOARD=U540 Makefile:34: *** recipe commences before first target. Stop.

How use this for U540 can you help ??

cgarlati commented 4 years ago

This SDK is not for Linux. For Linux you need https://github.com/hex-five/multizone-linux More info here https://hex-five.com/multizone-enclave-linux/