Coder Social home page Coder Social logo

Comments (5)

ScottR-Intel avatar ScottR-Intel commented on August 29, 2024

Hi.

Since you already see the /dev/sgx* devices, the module is already loaded and running. You can also confirm with dmesg:

 sudo dmesg | grep -i sgx

You should see the SGX EPC range printed out.

Regards.

Scott

from linux-sgx-driver.

graziadonghia avatar graziadonghia commented on August 29, 2024

Yes, I see it. Thank you very much.

from linux-sgx-driver.

graziadonghia avatar graziadonghia commented on August 29, 2024

I have another problem. I installed both SGX SDK and SGX PSW but when I try to run the Sample Code I get this error:

[get_driver_type edmm_utility.cpp:116] Failed to open Intel SGX device.
[get_driver_type /home/grace/thesis/linux-sgx/psw/urts/linux/edmm_utility.cpp:116] Failed to open Intel SGX device.
failed to load enclave.

I don't get it, why is the driver not found? should I run sudo /sbin/depmod and sudo /sbin/modprobe sgx ? In that case this is the output:

modprobe: FATAL: Module sgx not found in directory /lib/modules/5.17.5-76051705-generic

Of course SGX is enabled in BIOS, and I have the SGX nodes already built-in:

╰─➤  ls -la /dev/sgx*
crw-rw---- 1 root sgx     10, 125 Sep 19 16:25 /dev/sgx_enclave
crw-rw---- 1 root sgx_prv 10, 126 Sep 19 16:25 /dev/sgx_provision
crw------- 1 root root    10, 124 Sep 19 16:25 /dev/sgx_vepc

/dev/sgx:
total 0
drwxr-xr-x  2 root root   80 Sep 19 11:02 .
drwxr-xr-x 21 root root 4940 Sep 19 11:03 ..
lrwxrwxrwx  1 root root   14 Sep 19 16:25 enclave -> ../sgx_enclave
lrwxrwxrwx  1 root root   16 Sep 19 16:25 provision -> ../sgx_provision

from linux-sgx-driver.

xiangquanliu avatar xiangquanliu commented on August 29, 2024

What's the current user? Is it root? If it is not root user, please check if the current user belongs to sgx group. Try to add the current user to sgx group and re-login. Then i think it will work.

from linux-sgx-driver.

graziadonghia avatar graziadonghia commented on August 29, 2024

Yes, thank you so much. I don't know why I didn't think about privileges in the first place

from linux-sgx-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.