Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

help: exec sampleenclave on Ubuntu 16.04 64bits error

f_f_
Beginner
358 Views

hi

I installed sgx driver, sdk, psw, in ubuntu 16.04 64bit, and  i complied SampleEnclave. SGX_MODE is HW, SGX_ARCH is x64 SGX_DEBUG is

When I run app, it return error message:

             Info: Please make sure SGX module is enabled in the BIOS, and install SGX driver afterwards.
              Error: Invalid SGX device.
              Enter a character before exit ...

I wonder how to solve the problem.

thanks!!!!

 

1. sgx driver
    dev@dev-H110TN-E:~/sgx/linux-sgx/SampleCode/SampleEnclave$ lsmod |grep sgx
    isgx                   36864  0
2.CPU msg
dev@dev-H110TN-E:~/sgx/linux-sgx/SampleCode/SampleEnclave$ cat /proc/cpuinfo 
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 94
model name : Intel(R) Pentium(R) CPU G4500 @ 3.50GHz
stepping : 3
microcode : 0xa6
cpu MHz : 799.941
cache size : 3072 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave rdrand lahf_lm abm 3dnowprefetch intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust erms invpcid rdseed smap clflushopt xsaveopt xsavec xgetbv1 dtherm arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs :
bogomips : 7008.15
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

 

0 Kudos
0 Replies
Reply