Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| intel_sgx [2017/07/02 11:17] – RuslanBukin | intel_sgx [2019/02/18 00:37] (current) – update OSVERSIONs. MarkLinimon | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| Intel' | Intel' | ||
| - | This is Intel SGX support for %%FreeBSD%% | + | This is Intel SGX support for %%FreeBSD%%. |
| - | 1. Apply the kernel-support from https:// | + | The SGX kernel |
| + | |||
| + | 0. Ensure your hardware supports SGX. Enable SGX in BIOS if required. | ||
| + | |||
| + | 1. On %%FreeBSD%% 12-STABLE or 13.0-CURRENT load SGX module | ||
| < | < | ||
| Line 12: | Line 16: | ||
| < | < | ||
| - | % sudo pkg install protobuf gmake gcc48 | + | % sudo pkg install protobuf gmake gcc48 ocaml autoconf automake libtool |
| % git clone https:// | % git clone https:// | ||
| % cd freebsd-sgx | % cd freebsd-sgx | ||
| % sh download_prebuilt.sh | % sh download_prebuilt.sh | ||
| % gmake -j4 | % gmake -j4 | ||
| - | % sudo cp build/ | + | % sudo gmake install |
| - | % sudo cp build/ | + | |
| </ | </ | ||
| - | 4. Run SGX service daemon | + | 3. Run SGX service daemon |
| < | < | ||
| Line 27: | Line 30: | ||
| </ | </ | ||
| - | 5. Build and run sample application | + | Note: The only possible flag for aesm_service is --no-daemon |
| + | |||
| + | 4. Build and run sample application | ||
| < | < | ||
| Line 34: | Line 39: | ||
| % sudo ./app | % sudo ./app | ||
| </ | </ | ||
| + | |||
| + | 5. To run sample app without SGX SDK installed to /usr/lib | ||
| + | |||
| + | < | ||
| + | % setenv LD_LIBRARY_PATH ../ | ||
| + | % sudo --preserve-env=LD_LIBRARY_PATH ./app | ||
| + | </ | ||
| + | |||
| + | You should see successfull messages, otherwise please report to br@bsdpad.com | ||
| Papers | Papers | ||
| [[https:// | [[https:// | ||
| + | |||
| + | [[https:// | ||