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

How can I fix the error in Intel SGX for Linux Ubuntu 14.04 LTS

ANter_F_
Beginner
650 Views

Hello there!

I'm executing the Intel SGX sample codes in the intel SGX SDK, but I cannot execute the App in the ubuntu 14.04 LTS

My execution environment is as follows:
PC: Lenovo ThinkPad T460
CPU: Intel Core-i7-6500U
OS: Ubuntu 14.04 LTS
Intel SGX Driver, PSW, SDK version: 1.5

The sample code is compiled by Makefile.
The compile option is "SGX_MODE=HW SGX_DEBUG=1"
When I execute the app. the following error appears at the terminal as follows.

<EnclaveConfiguration>
    <ProdID>0</ProdID>
    <ISVSVN>0</ISVSVN>
    <StackMaxSize>0x40000</StackMaxSize>
    <HeapMaxSize>0x100000</HeapMaxSize>
    <TCSNum>10</TCSNum>
    <TCSPolicy>1</TCSPolicy>
    <DisableDebug>0</DisableDebug>
    <MiscSelect>0</MiscSelect>
    <MiscMask>0xFFFFFFFF</MiscMask>
</EnclaveConfiguration>
Succeed.
xidian@xidian-ThinkPad-T460:~/Development/SampleCode/SampleEnclave$ ./app
Error: Unexpected error occurred.
Enter a character before exit ...
---

Please tell the exact way to execute the sample program using HW mode?

furthermore, I can execute the sample code when the simulation mode is used.

Best regards,

0 Kudos
2 Replies
Prabu_R_Intel
Employee
650 Views

Hello,
Please refer the below said link for running the sample program in HW mode for Linux environment
https://github.com/01org/linux-sgx/issues/47

Thanks,
R.Prabu

0 Kudos
ANter_F_
Beginner
650 Views

Thank you R.Prabu your help was very useful

best regards,

0 Kudos
Reply