Skip to content

Instantly share code, notes, and snippets.

@mvduin
Created September 25, 2017 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvduin/cb4b99e3dff3cfb3ed772eaa47134660 to your computer and use it in GitHub Desktop.
Save mvduin/cb4b99e3dff3cfb3ed772eaa47134660 to your computer and use it in GitHub Desktop.
sgx init
# /etc/systemd/system/sgx-init.service
[Unit]
Description=Initialize SGX
BindsTo=dev-dri-sgx.device
After=dev-dri-sgx.device
RefuseManualStop=true
DefaultDependencies=no
[Service]
ExecStart=/usr/sbin/pvrsrvctl --start --no-module
Type=oneshot
RemainAfterExit=yes
# /etc/udev/rules.d/sgx.rules
SUBSYSTEM=="drm", KERNEL=="render*", DRIVERS=="pvrsrvkm", ACTION=="add", \
SYMLINK+="dri/sgx", TAG+="systemd", ENV{SYSTEMD_ALIAS}+="/dev/dri/sgx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment