Recording on to a NFS share

Here for general support for D series TVs, request and problem solve area.

arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Recording on to a NFS share

Post by arris69 »

phk wrote:I tried to mount my NFS share with 80_80_record_to_nwshare.init.remi71

I modified PVRSERVER and PVRPATH and then executed this script manually via nc, but all I get is 'No virtual device found ready for PVR or already mounted'. After some research I found out that echo $SAMYGODEVS returns nothing as $SAMYGODEVS is undefined, so how to fix it and what we need to do?
Do we need to create a second virtual usb device or is the standard one enough? Where in Samsung's menus can we set the PATH where recordings should be saved to?
you have to use all remi71 scripts (remove extension .remi71 -> overwrite original scripts)

hth
arris
idbirch
SamyGO Project Donor
Posts: 72
Joined: Fri Nov 20, 2009 11:56 am

Re: Recording on to a NFS share

Post by idbirch »

I've been having another go at this because some useful tips have come up which I hadn't seen when I first tried. I'm now getting to exactly the same point as phk. There are 2 remi scripts that I can see - nfsmount and record_to_nwshare. remi's nfsmount script spits out the following:

Code: Select all

+ /bin/busybox mount -o soft,tcp,nolock 192.168.0.2:/f/SamyGOTV /dtv/usb/sda/nfs/192.168.0.2/_f_SamyGOTV
+ [ 0 = 0 ]
+ echo Share 192.168.0.2:/f/SamyGOTV successfully mounted on /dtv/usb/sda/nfs/192.168.0.2/_f_SamyGOTV
Share 192.168.0.2:/f/SamyGOTV successfully mounted on /dtv/usb/sda/nfs/192.168.0.2/_f_SamyGOTV
+ let N=N+1
+ [ false = false ]
+ eval SHARE=${SHARE_2}
+ SHARE=
+ [ -z  ]
+ ENDARRAY=true
+ [ true = false ]
So this is the bit which makes the 'nfs' folder appear on the VirtualUSB device and works OK. Then, when the 80_80_record_to_nwshare script runs, I get this:

Code: Select all

+ . /dtv/SGO.env
+ SYSROOT=/mtd_down/widgets/user/SamyGO/SamyGO
+ MOUNT_PATH=/dtv/usb/sda
+ export MOD_DIR=/mtd_down/widgets/user/SamyGO/SamyGO/lib/modules/2.6.30.9
+ export TMPDIR=/dtv
+ export HOME=/mtd_wiselink
+ export SMB_CONF_PATH=/mtd_down/widgets/user/SamyGO/SamyGO/etc/samba/smb.conf
+ LOGFILE=/mtd_down/widgets/user/SamyGO/SamyGO/samygo.log
+ LD_LIBRARY_PATH=/mtd_down/widgets/user/SamyGO/SamyGO/opt/privateer/lib:/mtd_down/widgets/user/SamyGO/SamyGO/opt/privateer/usr/lib:/mtd_down/widgets/user/SamyGO/SamyGO/lib:/mtd_down/widgets/user/SamyGO/SamyGO/usr/lib:/lib:/usr/lib:/mtd_swu/standalone:/mtd_cmmlib/Comp_LIB:/mtd_exe/lib:/mtd_cmmlib/YWidget_LIB:/mtd_contents:/mtd_cmmlib/InfoLink/lib/plugin/Static:/mtd_appdata/moip:/mtd_cmmlib/GAME_LIB:/mtd_appdata/gemstar:/mtd_cmmlib/DRM_LIB:/Java/lib:/mtd_cmmlib/InfoLink/lib:/dtv:/mtd_cmmlib/lib:/mtd_cmmlib/OIPF:/mtd_appext/Webkit:/mtd_appdata/Runtime/lib/CairoShadow:/mtd_appdata/Runtime/lib:/mtd_appdata/Runtime/XorgLibs:/mtd_appdata/yahoo:/mtd_appdata/yahoo/lib
+ PATH=/mtd_down/widgets/user/SamyGO/SamyGO/opt/privateer/sbin:/mtd_down/widgets/user/SamyGO/SamyGO/opt/privateer/bin:/mtd_down/widgets/user/SamyGO/SamyGO/opt/privateer/usr/bin:/mtd_down/widgets/user/SamyGO/SamyGO/opt/privateer/usr/sbin:/mtd_down/widgets/user/SamyGO/SamyGO/sbin:/mtd_down/widgets/user/SamyGO/SamyGO/bin:/mtd_down/widgets/user/SamyGO/SamyGO/usr/bin:/mtd_down/widgets/user/SamyGO/SamyGO/usr/sbin:/usr/sbin:/usr/bin:/bin:/sbin:/etc/Scripts:/mtd_appdata/Runtime/bin
+ export ENV=/dtv/.ashrc
+ export FRAMEBUFFER=/dev/sam/fb0
+ export DISTROOT=/mtd_down/widgets/user/SamyGO/SamyGO/opt/privateer
+ SAMYGODEVS=/dev/sda
+ PVRSERVER=192.168.0.2
+ PVRPATH=/f/SamyGOTV
+ M_OPTS=soft,tcp,nolock
+ WAIT=60
+ echo
+ WriteToLog Start Record to Network Share script (80_80_record_to_nwshare.init) 1
+ date +%Y%m%d-%H%M%S
+ NOW=19700101-003018
+ echo  19700101-003018 Start Record to Network Share script (80_80_record_to_nwshare.init)
+ CheckNFSServer 192.168.0.2
+ WriteToLog Check if server 192.168.0.2 is reachable and NFS service available... 1 -n
+ date +%Y%m%d-%H%M%S
+ NOW=19700101-003018
+ echo -n 19700101-003018 Check if server 192.168.0.2 is reachable and NFS service available...
+ showmount --no-header -e 192.168.0.2
+ [ 0 = 0 ]
+ WriteToLog OK 2
+ echo  OK
+ return 0
+ [ 0 = 0 ]
+ SearchPVRImageMP
+ FOUND=false
+ WriteToLog Search for mount point of pvrimage... 1
+ date +%Y%m%d-%H%M%S
+ NOW=19700101-003018
+ echo  19700101-003018 Search for mount point of pvrimage...
+ sleep 60
+ echo /dev/sda
+ grep -e ^/dev/sda /proc/mounts
+ cut -d   -f 2
+ MPOINT=/dtv/usb/sda
+ [ -e /dtv/usb/sda/.PlaceHolderDO-NOT-REMOVE ]
+ [ false = true ]
+ echo No virtual device found ready for PVR or already mounted
No virtual device found ready for PVR or already mounted
+ WriteToLog No virtual device found ready for PVR or already mounted 1
+ date +%Y%m%d-%H%M%S
+ NOW=19700101-003118
+ echo  19700101-003118 No virtual device found ready for PVR or already mounted
+ WriteToLog End Record to Network Share script (80_80_record_to_nwshare.init) 1
+ date +%Y%m%d-%H%M%S
+ NOW=19700101-003118
+ echo  19700101-003118 End Record to Network Share script (80_80_record_to_nwshare.init)
I don't really understand what the "Search for mount point of PVR image" bit actually means so I'm unsure what to do. I already tried increasing the sleep period from 25 seconds to 60 seconds as suggested in the script but as you can see, this didn't help.

I don't have any physical USB devices connected when running this, is that OK?
idbirch
SamyGO Project Donor
Posts: 72
Joined: Fri Nov 20, 2009 11:56 am

Re: Recording on to a NFS share

Post by idbirch »

edit: Got it working by updating SamyGo's game.so to the 21/12 version.

I changed this line in the recordtonetworkshare.init:

Code: Select all

if [ -e "$MPOINT/.PlaceHolderDO-NOT-REMOVE" ] && [ $FOUND = false ]; then
to this:

Code: Select all

if [ -e "$MPOINT/nfs/192.168.0.2/_f_SamyGOTV" ] && [ $FOUND = false ]; then	
and now it works.
trappa
Posts: 6
Joined: Sat Dec 17, 2011 1:38 am
Location: Austria / near Vienna

Re: Recording on to a NFS share

Post by trappa »

could anybody tell me the folder in or on which the SMB Folder should be mounted or linked to

with the new update it should be possible to record on NW share without any special script like the record to nwshare and the vusb script

i despair on that
DEUS
Official SamyGO Developer
Posts: 316
Joined: Mon Feb 06, 2012 12:05 pm
Location: Germany

Re: Recording on to a NFS share

Post by DEUS »

just working on something like this and seen ther is a problem with the following line "GFILESIZE=`du $PVRIMAGE |cut -f1`" i miss du, says applet not found

Post Reply

Return to “[D] Support”