From 3380477f51fa54bca5e892cc51ae37705e3d3180 Mon Sep 17 00:00:00 2001 From: fys05 <58808893+fys05@users.noreply.github.com> Date: Mon, 4 Mar 2024 11:07:36 +0800 Subject: [PATCH 1/2] Update README.md (#2) add install sgx driver --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 237a340..c028084 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,14 @@ Inspect your system's SGX support with: ./sgx-detect ``` +Install sgx driver: +``` +apt update +apt install build-essential automake autoconf libtool wget python libssl-dev dkms +wget https://download.01.org/intel-sgx/latest/linux-latest/distro/ubuntu18.04-server/sgx_linux_x64_driver_1.41.bin +bash sgx_linux_x64_driver_1.41.bin +``` + Sample Output: ```text From d8b931cadca1b30e097a83e104f2d3574f05f7ea Mon Sep 17 00:00:00 2001 From: fys05 <58808893+fys05@users.noreply.github.com> Date: Mon, 4 Mar 2024 11:10:08 +0800 Subject: [PATCH 2/2] Update docker-compose.yml (#4) --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 45aa373..9573cc2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,6 +13,6 @@ services: - ./configs:/configs - ./data:/root/occlum_instance/data devices: - - /dev/sgx/enclave - - /dev/sgx/provision + - /dev/sgx/enclave:/dev/sgx/enclave + - /dev/sgx/provision:/dev/sgx/provision command: bash -c 'cp /configs/keyring.toml /root/occlum_instance; source /root/.bashrc; cd /root/occlum_instance; occlum print mrsigner; occlum print mrenclave; occlum run /bin/bnk-watcher /host/keyring.toml'