Hi Matthew - not sure where your forum post ended up, but anyway I got it via email.
>321liftoff
>Good that it looks like the hdhomerun is up and going, but double check that everything is linked together, the character devices are correctly pointed to the >kernel drivers and that the drivers are loaded:
these are my outputs
DiskStation> bash tvh_start
making node hdhomerun_control 57
making node hdhomerun_data 253
DiskStation> lsmod | grep dvb
dvb_hdhomerun 11056 4
dvb_hdhomerun_fe 5843 2
dvb_hdhomerun_core 1961 2 dvb_hdhomerun,dvb_hdhomerun_fe
dvb_core 78863 1 dvb_hdhomerun
DiskStation> grep DVB /proc/devices
212 DVB
DiskStation> grep hdhomerun_control /proc/misc
57 hdhomerun_control
DiskStation> grep hdhomerun_data /proc/devices
253 hdhomerun_data
DiskStation> ll /dev/hdhome*
crw-rw-rw- 1 root root 10, 57 Mar 14 06:35 /dev/hdhomerun_control
crw-rw-rw- 1 root root 253, 0 Mar 14 06:35 /dev/hdhomerun_data0
crw-rw-rw- 1 root root 253, 1 Mar 14 06:35 /dev/hdhomerun_data1
DiskStation> ll /dev/dvb/*
/dev/dvb/adapter0:
total 8
drwxr-xr-x 2 root root 4096 Mar 14 06:35 .
drwxr-xr-x 4 root root 4096 Mar 14 06:35 ..
crw-rw-rw- 1 root root 212, 4 Mar 14 06:35 demux0
crw-rw-rw- 1 root root 212, 5 Mar 14 06:35 dvr0
crw-rw-rw- 1 root root 212, 3 Mar 14 06:35 frontend0
/dev/dvb/adapter1:
total 8
drwxr-xr-x 2 root root 4096 Mar 14 06:35 .
drwxr-xr-x 4 root root 4096 Mar 14 06:35 ..
crw-rw-rw- 1 root root 212, 68 Mar 14 06:35 demux0
crw-rw-rw- 1 root root 212, 69 Mar 14 06:35 dvr0
crw-rw-rw- 1 root root 212, 67 Mar 14 06:35 frontend0
this is what my tvh_start script looks like
# Create device nodes for HDHomerun
mkdir -p /dev/dvb/adapter0
mknod /dev/dvb/adapter0/frontend0 c 212 3
mknod /dev/dvb/adapter0/demux0 c 212 4
mknod /dev/dvb/adapter0/dvr0 c 212 5
mkdir -p /dev/dvb/adapter1
mknod /dev/dvb/adapter1/frontend0 c 212 67
mknod /dev/dvb/adapter1/demux0 c 212 68
mknod /dev/dvb/adapter1/dvr0 c 212 69
# Set permissions
chmod 755 /dev/dvb/adapter*
chmod 666 /dev/dvb/adapter*/*
chown root:root /dev/dvb/adapter*/*
#
insmod /opt/dvb-core/dvb-core.ko
insmod /opt/dvb-core/dvb_hdhomerun_core.ko
insmod /opt/dvb-core/dvb_hdhomerun_fe.ko
insmod /opt/dvb-core/dvb_hdhomerun.ko
#
#lsmod to check if everything is running
#grep -i dvb /proc/devices
#
DYNAMIC_ID=$(grep hdhomerun_control /proc/misc | awk "{print \$1}")
if [ "$DYNAMIC_ID" != "" ]; then
echo "making node hdhomerun_control" $DYNAMIC_ID
mknod /dev/hdhomerun_control c 10 $DYNAMIC_ID
else
echo "Unable to detect hdhomerun_control inside /proc/misc."
fi
# Set permissions
chmod 666 /dev/hdhomerun_control
chown root:root /dev/hdhomerun_control
#
# Clear userhdhomerun log
rm -f "/opt/dvbhdhomerun/dvbhdhomerun.log"
#
# Run userhdhomerun with LD_PRELOAD
# (because libhdhomerun.so is inside QPKG folder)
/opt/dvbhdhomerun/userhdhomerun/build/userhdhomerun \
-f -u root -g root -l "/opt/dvbhdhomerun/dvbhdhomerun.log"
#
sleep 1
#
DYNAMIC_ID=$(grep hdhomerun_data /proc/devices | awk "{print \$1}")
if [ "$DYNAMIC_ID" != "" ]; then
echo "making node hdhomerun_data" $DYNAMIC_ID
mknod /dev/hdhomerun_data0 c $DYNAMIC_ID 0
mknod /dev/hdhomerun_data1 c $DYNAMIC_ID 1
else
echo "Unable to detect hdhomerun_data inside /proc/devices."
fi
#
# Set permissions
chmod 666 /dev/hdhomerun_data*
chown root:root /dev/hdhomerun_data*
Note the diskstation doesnt have udev or anything, so I have to insmod the modules etc