正在设置 g++ (4:7.4.0-1ubuntu2.3) …
update-alternatives: 使用 /usr/bin/g++ 来在自动模式中提供 /usr/bin/c++ (c++)
正在设置 build-essential (12.4ubuntu1) …
正在处理用于 man-db (2.8.3-2ubuntu0.1) 的触发器 …
正在处理用于 libc-bin (2.27-3ubuntu1) 的触发器 …
----------下载 DCAP 驱动----------
–2021-09-19 13:06:01-- https://download.01.org/intel-sgx/latest/dcap-latest/linux/distro/ubuntu18.04-server/sgx_linux_x64_driver_1.41.bin
正在解析主机 download.01.org (download.01.org)… 104.88.212.163, 2600:1417:a000:3ab::4b21, 2600:1417:a000:39e::4b21
正在连接 download.01.org (download.01.org)|104.88.212.163|:443… 已连接。
已发出 HTTP 请求,正在等待回应… 200 OK
长度: 41424 (40K) [application/octet-stream]
正在保存至: “/tmp/sgx_linux_x64_driver_1.41.bin”
/tmp/sgx_linux_x64_ 100%[===================>] 40.45K --.-KB/s 用时 0.08s
2021-09-19 13:06:01 (506 KB/s) - 已保存 “/tmp/sgx_linux_x64_driver_1.41.bin” [41424/41424])
----------添加运行权限----------
----------安装DCAP驱动----------
Unpacking Intel SGX Driver … done.
Verifying the integrity of the install package … done.
Installing Intel SGX Driver …
/tmp/sgx-driver-YkBuix ~/solo-mining-scripts-main
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
~/solo-mining-scripts-main
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…
Signing module:
Generating a new Secure Boot signing key:
Can’t load /var/lib/shim-signed/mok/.rnd into RNG
140510947103168:error:2406F079:random number generator:RAND_load_file:Cannot open file:…/crypto/rand/randfile.c:88:Filename=/var/lib/shim-signed/mok/.rnd
Generating a RSA private key
…+++++
…+++++
writing new private key to ‘/var/lib/shim-signed/mok/MOK.priv’
- /var/lib/dkms/sgx/1.41/5.4.0-84-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-84-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”.
----------删除临时文件----------
----------未找到驱动文件,请检查驱动安装日志!----------