Resolved the issue on Debian by creating */etc/init/sgx-startup.sh *file which 
contains the following:

=====================================================
#!/bin/sh -e
### BEGIN INIT INFO
# Provides:          sgx-startup.sh
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO

case "$1" in
start)
if [ -d /sys/devices/ocp.*/56000000.sgx ] ; then
echo "sgx: Starting PVR"

modprobe -q pvrsrvkm

# Delete the device for PVR services device and recreate with the
# correct major number.
#
pvr_maj=$(grep "pvrsrvkm$" /proc/devices | cut -b1,2,3)

if [ -e /dev/pvrsrvkm ] ; then
rm -f /dev/pvrsrvkm
fi

mknod /dev/pvrsrvkm c $pvr_maj 0
chmod 666 /dev/pvrsrvkm

if [ -f /usr/local/bin/pvrsrvctl ] ; then
/usr/local/bin/pvrsrvctl --start --no-module

modprobe -q omaplfb
fi
fi
;;
reload|force-reload|restart)
if [ -d /sys/devices/ocp.*/56000000.sgx ] ; then
echo "sgx: Restarting PVR"
fi
;;
stop)
exit 0
;;
*)
echo "Usage: /etc/init.d/sgx-startup.sh 
{start|stop|reload|restart|force-reload}"
exit 1
;;
esac

exit 0
=====================================================

Once the file was created the SGX daemon was started by running the 
following:

    *sudo sh /etc/init/sgx-startup.sh*


Run one of the SGX demos (eg Magic Lantern) and volla! :)

On Friday, 20 June 2014 12:32:28 UTC+12, Nick Apperley wrote:
>
> Just for reference with Debian on BBB where would the following be located:
>
>    - *rc.pvr* daemon
>    - Startup script for SGX driver (*sgx-startup-debian.sh*)
>
>
> Been trying to find the 2 mentioned files. Running *lsmod | grep omaplfb* 
> doesn't 
> return any results. Rather bizarre considering that the SGX install was 
> successful (no errors displayed), or so I thought.
>
> On Friday, 20 June 2014 11:44:35 UTC+12, Nick Apperley wrote:
>>
>> Encountered difficulties with building the SGX modules. File not found 
>> type errors with *sgx-startup-debian.sh* and *sgx-startup-ubuntu.conf* 
>> in *bb-kernel/3rdparty*. Did you know that the certificate for rcn-ee.net 
>> has expired?
>>
>>>
>>>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to