【已解决】error installing SGX

xujian@xujian-MS-7B48:~$ sudo phala sgx-test
[sudo] password for xujian:
----------删除旧版本 dcap/isgx 驱动----------

-------- Uninstall Beginning --------
Module: sgx
Version: 1.41
Kernel: 5.4.0-86-generic (x86_64)

Status: Before uninstall, this module version was ACTIVE on this kernel.

intel_sgx.ko:

  • Uninstallation
    • Deleting from: /lib/modules/5.4.0-86-generic/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.

depmod…

DKMS: uninstall completed.


Deleting module version: 1.41
completely from the DKMS tree.

Done.
----------下载 DCAP 驱动----------
–2021-09-24 12:19:11-- https://download.01.org/intel-sgx/latest/dcap-latest/linux/distro/ubuntu18.04-server/sgx_linux_x64_driver_1.41.bin
Resolving download.01.org (download.01.org)… 223.119.143.219, 2600:140e:6:9b0::4b21, 2600:140e:6:9a9::4b21
Connecting to download.01.org (download.01.org)|223.119.143.219|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 41424 (40K) [application/octet-stream]
Saving to: ‘/tmp/sgx_linux_x64_driver_1.41.bin’

/tmp/sgx_linux_x64_ 100%[===================>] 40.45K --.-KB/s in 0.05s

2021-09-24 12:19:12 (851 KB/s) - ‘/tmp/sgx_linux_x64_driver_1.41.bin’ saved [41424/41424]

----------添加运行权限----------
----------安装DCAP驱动----------
Unpacking Intel SGX Driver … done.
Verifying the integrity of the install package … done.
Installing Intel SGX Driver …
/tmp/sgx-driver-NCUWEf ~
install -d /opt/intel/sgxdriver/package
install -d /opt/intel/sgxdriver/scripts
cp -r package/* /opt/intel/sgxdriver/package
install scripts/* /opt/intel/sgxdriver/scripts
~

Creating symlink /var/lib/dkms/sgx/1.41/source →
/usr/src/sgx-1.41

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping…

Building module:
cleaning build area…
‘make’ KDIR=/lib/modules/5.4.0-86-generic/build…
Signing module:

  • /var/lib/dkms/sgx/1.41/5.4.0-86-generic/x86_64/module/intel_sgx.ko
    Secure Boot not enabled on this system.
    cleaning build area…

DKMS: build completed.

intel_sgx:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/5.4.0-86-generic/updates/dkms/

depmod…

DKMS: install completed.

You may need to run “/sbin/modprobe intel_sgx (–allow-unsupported)” or reboot system manually!

uninstall.sh script generated in “/opt/intel/sgxdriver”.

----------删除临时文件----------
----------未找到驱动文件,请检查驱动安装日志!----------

您好,请您检查您的sgx是否已经software_enable

降到什么版本合适呢?我现在5.11.0-36-generic这个版本的也是同样问题

需要5.10以下

Linux 5.2.21-050221-generic x86_64

Wo an zhuang le zhe ge banben, ye buxing…

5.8.*版本就行了 我之前也是这个问题 这个必须是5.8的Linux内核才可以