From 67f624eb0600d42359cbf79611336e8f8f68a07f Mon Sep 17 00:00:00 2001 From: Steve Arnold Date: Sun, 12 Apr 2015 23:27:24 -0700 Subject: added udev rule and init script for SGX pvr modules and runtime --- configs/bbb/50-pvrsrvkm.rules | 1 + configs/bbb/pvrinit | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 configs/bbb/50-pvrsrvkm.rules create mode 100755 configs/bbb/pvrinit (limited to 'configs/bbb') diff --git a/configs/bbb/50-pvrsrvkm.rules b/configs/bbb/50-pvrsrvkm.rules new file mode 100644 index 0000000..abb7d72 --- /dev/null +++ b/configs/bbb/50-pvrsrvkm.rules @@ -0,0 +1 @@ +KERNEL=="pvrsrvkm", MODE="0666" diff --git a/configs/bbb/pvrinit b/configs/bbb/pvrinit new file mode 100755 index 0000000..2a1beab --- /dev/null +++ b/configs/bbb/pvrinit @@ -0,0 +1,23 @@ +#!/sbin/runscript +# add to default runlevel to load SGX drivers + + +depend() { + need localmount + after bootmisc modules +} + +start() { + ebegin "Starting PVR" + + eval modprobe -q pvrsrvkm + + if [ -f /usr/local/bin/pvrsrvctl ] ; then + /usr/local/bin/pvrsrvctl --start --no-module + + eval modprobe -q omaplfb + fi + eend $? +} + + -- cgit v1.2.3-65-gdbad