-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SGX invalid #451
Comments
SDK and drivers have been reinstalled many times. |
Maybe some details. dmesg | grep sgx |
Thank you for your reply: Things just happen, even if the environment works, after rebooting, it goes back to be invalid. |
Not sure whether it is really because of the kernel or not, I revert one machine to 4.15.0-29-generic, everything works fine now. But all my other machines that remain in 4.15.0.65-generic still could not communicate to SGX. |
@Liaojinghui from above message, looks you have loaded 2 SGX driver and it will cause the issue. Would you please clean them up and only install one driver? |
Sorry for the delay, I just noticed your reply. Could you please tell me how to clean up the sgx driver? ? Will these commands work?: |
Yes, please try the uninstallation procedure to remove the driver. |
Thank you for your answer. I tried, actually, I tried to execute these commands many times, and reinstall the sdk, psw and driver many times, it won't work. Is there any way to cleanly remove everything related to the SGX out of the system and re-start all over? |
I am not sure why it doesn't work. Is it possible to have a clean OS to retry? |
Thank you for your patience and kind help, finally, it works. I don't know where that intel_sgx.ko comes from, but only by deleting it could make my SGX work again. Even removing isgx could not help. Stucked here for so long and finally I am free from this. Thank you! |
My SGX becomes invalid after update my image from 4.15.0-64-generic to 4.15.0-65-generic
SGX is enabled in BIOS.
other information:
`
$ uname -a
Linux compass 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
$ modinfo intel_sgx
filename: /lib/modules/4.15.0-65-generic/updates/dkms/intel_sgx.ko
license: Dual BSD/GPL
author: Jarkko Sakkinen jarkko.sakkinen@linux.intel.com
description: Intel SGX Driver
srcversion: 0253BC73E4B1968CF600DAD
alias: acpi*:INT0E0C:*
depends:
retpoline: Y
name: intel_sgx
vermagic: 4.15.0-65-generic SMP mod_unload
signat: PKCS#7
signer:
sig_key:
sig_hashalgo: md4
`
ERROR while run sampleenclave:
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 ...
The text was updated successfully, but these errors were encountered: