Open infrachris opened 3 years ago
I believe this can be resolved if sgx-test allows for specifying dcap or isgx similar to sudo phala install: install install your phala node
@yayoi-k please let me know if this solves the issue: https://github.com/Phala-Network/solo-mining-scripts/tree/main#failed-to-install-the-dcap-driver
'sudo phala sgx-test' used to work, however now it appears to uninstall then re-install the driver and then results in an error. I've found other users with the same issue.
Output below:
~# sudo phala sgx-test ----------Remove dcap/isgx driver----------
-------- Uninstall Beginning -------- Module: sgx Version: 1.41 Kernel: 5.4.0-84-generic (x86_64)
Status: Before uninstall, this module version was ACTIVE on this kernel.
intel_sgx.ko:
depmod...
DKMS: uninstall completed.
Deleting module version: 1.41 completely from the DKMS tree.
Done. ----------Download dcap driver---------- --2021-09-18 19:50:29-- https://download.01.org/intel-sgx/latest/dcap-latest/linux/distro/ubuntu20.04-server/sgx_linux_x64_driver_1.41.bin Resolving download.01.org (download.01.org)... 23.72.203.92, 2a02:26f0:9100:bb5::4b21, 2a02:26f0:9100:b9e::4b21 Connecting to download.01.org (download.01.org)|23.72.203.92|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 41637 (41K) [application/octet-stream] Saving to: ‘/tmp/sgx_linux_x64_driver_1.41.bin’
/tmp/sgx_linux_x64_driver_1.41.bin 100%[=================================================================>] 40.66K --.-KB/s in 0.005s
2021-09-18 19:50:29 (7.85 MB/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-AYPK2a ~ 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-84-generic/build... cleaning build area...
DKMS: build completed.
intel_sgx.ko: Running module version sanity check.
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".
----------Delete temporary files---------- ----------The driver file was not found, please check the driver installation logs!----------