终于对比出来为什么安装不成功了

安装时候正常的情况:
Unpacking Intel SGX Driver … done.
Verifying the integrity of the install package … done.
Installing Intel SGX Driver …
/tmp/sgx-driver-1UVnku /home/phala
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
/home/phala

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.8.0-43-generic/build…
Signing module:

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

DKMS: build completed.

intel_sgx.ko:
Running module version sanity check.

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

安装时候不正常的情况

/tmp/sgx_linux_x64_driver_1.41.bin 100%[==========================================================================>] 40.66K 201KB/s in 0.2s

2021-08-17 16:30:14 (201 KB/s) - ‘/tmp/sgx_linux_x64_driver_1.41.bin’ saved [41637/41637]

----------Give dcap driver executable permission----------
----------Installing dcap driver----------
Unpacking Intel SGX Driver … done.
Verifying the integrity of the install package … done.
Installing Intel SGX Driver …
/tmp/sgx-driver-doHPn2 /home/phala/solo-mining-scripts-para
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
/home/phala/solo-mining-scripts-para

Kernel preparation unnecessary for this kernel. Skipping…

Building module:
cleaning build area…
‘make’ KDIR=/lib/modules/5.11.0-27-generic/build…(bad exit status: 2)
ERROR (dkms apport): binary package for sgx: 1.41 not found
Error! Bad return status for module build on kernel: 5.11.0-27-generic (x86_64)
Consult /var/lib/dkms/sgx/1.41/build/make.log for more information.

Failed to build driver. Please check if the matching kernel headers are installed.
----------Clean resource----------
----------Test confidenceLevel, waiting for Intel to issue IAS remote certification report!----------
(standard_in) 2: syntax error
/opt/phala/scripts/config.sh: line 82: [: -eq: unary operator expected
----------Intel IAS certification has not passed, please check your motherboard or network!----------

1 Like

重点是内核不一样,Intel SGX驱动对Kernel 5.11.0 可能不适配。

我把5.11内核卸载了,问题解决,装上了。
sudo apt-get remove linux-image-5.11.0-27-generic

1 Like

Good~

感谢您的帮助!

:grinning::grinning::grinning::grinning::grinning::grinning:

非常感谢这位大神,已经按您的方案尝试了,但是仍然安装失败,这次的原因是,没网了。。。

uname -a 看看你目前的版本