SamyGo Extension Pack modified for NFS recording

Here are software that related with Samsung C series TVs, applications, programs that will run in your TV or computer...:!:This forum is NOT FOR USER QUESTIONS or Problems.

xinvox

Re: SamyGo Extension Pack modified for NFS recording

Post by xinvox »

Hello, I have a problem, I can not operate the recording by nfs, this is what I say log:

19700101-000030 Start Record to Network Share script (80_80_record_to_nwshare.init)
19700101-000030 Check if server 192.168.1.10 is reachable and NFS service available... OK
19700101-000030 Search for mount point of pvrimage...
19700101-000056 No virtual device found ready for PVR or already mounted
19700101-000056 End Record to Network Share script (80_80_record_to_nwshare.init)


any help, thank you very much, Greetings
User avatar
beatfreak
SamyGO Project Donor
Posts: 591
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

Re: SamyGo Extension Pack modified for NFS recording

Post by beatfreak »

please post
+listing of filenames in (pendrive)/SamyGO/etc/init.d

+complete log

connect via ssh or telnet to tv and post output of

Code: Select all

cat /proc/mounts
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS //
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.
xinvox

Re: SamyGo Extension Pack modified for NFS recording

Post by xinvox »

beatfreak wrote:please post
+listing of filenames in (pendrive)/SamyGO/etc/init.d

+complete log

connect via ssh or telnet to tv and post output of

Code: Select all

cat /proc/mounts
Hello, here I put the data, the log not to look one more full, nfs folders work perfectly with 03_03_nfsmount.init file, which does not get it to work is the recording by nfs, thank you very much, anything that you may need ask me, greetings

init.d

Code: Select all

01_05_framebuffer.init
01_05_framebuffer.init~
01_05_hiddev.init
02_04_replace_wifi_mod.init.dis
02_04_vusb.init
02_10_wakelan.init.dis
03_01_fuse.init
03_03_djmount.init
03_03_nfsmount.init
03_03_nfsmount.init~
03_03_sshd.init
04_04_bluetooth.init
04_04_fusesmb.init.dis
04_04_samba.init.dis
06_05_apache.init
06_05_vsftp.init.dis
06_06_obexpush.init.dis
80_80_record_to_nwshare.init
80_80_record_to_nwshare.init~
90_90_injectso.init.dis
90_90_loadGameMains.init.dis
99_99_start_exeDSP.init.disabled_by_default_to_protect_the_innocent
02_04_vusb.init

Code: Select all

 
. /dtv/SGO.env

case $1 in 
	start)
	# on C series: can't open '/proc/scsi/scsi': No such file or directory?
#	if [ `cat /proc/scsi/scsi | grep -c "Type:"` -lt "1" ] ; then
		
		# create unsusable dummy device
		# dd if=/dev/zero of=/dtv/vusb bs=512 count=4

		# create usable vfat image
		# we don't need to mess around with log and usblog
		# also no limits to usb mounts
		# we need to find mount point, on most devices it's sda
		# but it will differ in some situations
		mkfs.vfat -C /dtv/vusb 500
		# mkfs.vfat -C /dtv/vusb $(($(df -k /dtv | grep dtv | sed -e 's,^\(.*\) \(.*\) \( .*% /dtv\),\2,') / 3 ))
		
		# TODO: for recording on c series xfs stuff.
		# /dev/stl0/21            392.3M    142.9M    249.4M  36% /mtd_rwcommon
		# needs to be adapted:
		# http://sourceforge.net/apps/phpbb/samygo/viewtopic.php?f=12&p=10567#p10567
		#
		# dd if=/dev/zero of=/mtd_rwcommon/vusb bs=1M count=16
		# /sbin/mkfs.xfs -f -d name=/mtd_rwcommon/vusb
		# ln -s /mtd_rwcommon/vusb /dtv/
		# OBSOLETE: gone to 80_80_record_to_nwshare.init 

		# create usable virtual device (don't store data on it what you need tomorrow too!!)
		# dd if=/dev/zero of=/dtv/vusb bs=1M count=2
		# mkfs.ext3 -q -F -m 0 -b 1024 /dtv/vusb

		# insmod $SYSROOT/lib/modules/treasure/dummy_hcd.ko
		insmod $MOD_DIR/kernel/drivers/usb/gadget/dummy_hcd.ko
		sleep 2
		# insmod $SYSROOT/lib/modules/treasure/g_file_storage.ko
	  	
	  	GFILESTORAGE='/dtv/vusb'
	  	PVRIMAGE="$SYSROOT/pvrimage"
	  	
	  	if [ -e $PVRIMAGE ]; then
	  	  GFILESIZE=`du $PVRIMAGE |cut -f1`
	  	  if [ $GFILESIZE -ge 1536000 ]; then  	
                     GFILESTORAGE="$GFILESTORAGE,$PVRIMAGE"
                     echo "Found pvrimage file $PVRIMAGE size=$GFILESIZE KByte, so enabling PVR Record over NFS"
                   else 
                     echo "Found pvrimage file $PVRIMAGE size=$GFILESIZE KByte, but size is less than required (1536000 KBYTE), so PVR Record over NFS will not be enabled"    
               	  fi
               	 else
               	  echo "pvrimage $PVRIMAGE NOT found, so PVR Record over NFS will not be enabled"
               	fi
               	
		insmod $MOD_DIR/kernel/drivers/usb/gadget/g_file_storage.ko file="$GFILESTORAGE"
		sleep 3
		
		# find vusb in /sys
		# and set a variable for mount point
		
		FOUND=false
		SAMYGODEVS=''
		for i in /sys/block/sd?/device/model ; do
	  		if [ `cat $i | grep -c "SamyGO Virt"` -gt "0" ]; then
	  		   CURDEV="`echo $i | sed 's/^\/.*\(sd.\)\/.*/\1/g'`"
	  		   SAMYGODEVS="$SAMYGODEVS /dev/$CURDEV"
	  		   if [ $FOUND = false ]; then
				echo "found gadget at: $i"
				dev=$CURDEV
				echo "scsidev: $dev"
				FOUND=true
			   fi
			else
				echo "real storage device at: $i"
			fi
		done
		SAMYGODEVS=`echo $SAMYGODEVS|sed 's/^[[:space:]]//'`

#	else
#		echo "Storage Device is present"
#	fi
	sed -i -e "s,MountPlaceholder,/dtv/usb/$dev," /dtv/SGO.env
	echo "SAMYGODEVS=\"$SAMYGODEVS\"" >> /dtv/SGO.env
	;;
	stop)
	# what's about umount?
	rmmod g_file_storage
	rmmod dummy_hcd
	;;
	status)
	cat /sys/block/sd?/device/model
	;;
	*)
	echo "Usage: $0 {start|stop|status}" 1>&2
	exit 0
	;;
esac
 
03_03nfsmount.init

Code: Select all

. /dtv/SGO.env

#
# NFS share in the form of:
#
# SHARE_n='<SERVER NAME or IP>:<SHARE>'
#
# For multiple share on the same server use multiple entry with the same server name.
#

SHARE_1='192.168.1.10:/volume1/Anime'
SHARE_2='192.168.1.10:/volume1/Cine'
SHARE_3='192.168.1.10:/volume1/Deportes'
SHARE_4='192.168.1.10:/volume1/Descargas'
SHARE_5='192.168.1.10:/volume1/Grabaciones'
SHARE_6='192.168.1.10:/volume1/Series'
SHARE_7='192.168.1.10:/volume1/video'
FR_NAME="NFS Server"
# M_OPTS="rw,soft,udp,async,nolock,rsize=32768,wsize=8192"
# M_OPTS="rw,soft,udp,nolock,rsize=32768,wsize=32768"
# M_OPTS="soft,tcp,nolock,rsize=32768,wsize=32768"
# M_OPTS="soft,tcp,nolock,rsize=8192,wsize=8192"
M_OPTS="soft,tcp,nolock"

DEST_DIR=$MOUNT_PATH/nfs

do_mount()
{
	#		$(echo -e "[sdg]\nVendor : NfsMount\nProduct : $FR_NAME\n\
	#Serial : Q80VQLFG\nDevpath : 7\nLun : 0\nMountDir : $DEST_DIR\nFileSystem : vfat\n" >> /dtv/usb/log)

	M_POINT="$DEST_DIR/$1/$(echo -n "$2" | sed -e "s/\//_/g")"
	mkdir -p "$M_POINT" 
	if [ `cat /proc/mounts | grep -c "$M_POINT"` -lt "1" ] ; then
		/bin/busybox mount -o "$M_OPTS" "$1:$2" "$M_POINT"
		if [ $? = 0 ]; then
			echo "Share $1:$2 successfully mounted on $M_POINT" 
		else
			echo "Error during mount of $1:$2 on $M_POINT"
		fi
	else
		echo "Share $1:$2 is already mounted!"
	fi
}

get_shares()
{
	ENDARRAY=false
	N=1
	while [ $ENDARRAY = false ]
	do
		eval SHARE=\${SHARE_${N}}
		if [ -z "$SHARE" ]; then
			ENDARRAY=true
		else
			SERVER=`echo "$SHARE"|cut -d ':' -f1`
			SHPATH=`echo "$SHARE"|cut -d ':' -f2`
			echo -n "Check if server $SERVER is reachable..."
			showmount --no-header -e $SERVER 1>/dev/null 2>&1
			if [ $? = 0 ]; then
				echo 'ok'
				do_mount "$SERVER" "$SHPATH"
			else
				echo 'NOT reachable skip!'
			fi
			let N=N+1
		fi
	done
}


case $1 in 
	start)
	# for systems with modular nfs kernel support
	insmod $MOD_DIR/kernel/net/sunrpc/sunrpc.ko
	insmod $MOD_DIR/kernel/fs/lockd/lockd.ko
	insmod $MOD_DIR/kernel/fs/nfs_common/nfs_acl.ko
	insmod $MOD_DIR/kernel/fs/nfs/nfs.ko
	get_shares
	;;
	stop)
	# may can fail if device access the mount from content library
	# for i in $(cat /proc/mounts | grep nfs | cut -d " " -f2) ; do
	for i in $(cat /proc/mounts | grep "$DEST_DIR" | sed 's/^\(.*\) \(.*\) nfs .*/\2/') ; do
		/bin/busybox umount $i
	done
	;;
	status)
	/bin/mount | grep "$DEST_DIR"
	;;
	*)
	echo "Usage: $0 {start|stop|status}" 1>&2
	exit 0
	;;
esac

{
	if [ -z "$SERVER" ] ; then
		# SERVERS=$(cat /proc/net/arp | grep -v "IP address" | cut -d " " -f1)
		SERVERS=$(cat /proc/net/arp | grep -v "IP address" | sed 's/^\(\w*.\w*.\w*.\w*\) *.*/\1/')
	else
		SERVERS=$SERVER
	fi
}

case $1 in 
	start)
	# for systems with modular nfs kernel support
	insmod $MOD_DIR/kernel/net/sunrpc/sunrpc.ko
	insmod $MOD_DIR/kernel/fs/lockd/lockd.ko
	insmod $MOD_DIR/kernel/fs/nfs_common/nfs_acl.ko
	insmod $MOD_DIR/kernel/fs/nfs/nfs.ko
	get_servers
	get_shares
	;;
	stop)
	# may can fail if device access the mount from content library
	# for i in $(cat /proc/mounts | grep nfs | cut -d " " -f2) ; do
	for i in $(cat /proc/mounts | grep "$DEST_DIR" | sed 's/^\(.*\) \(.*\) nfs .*/\2/') ; do
		/bin/busybox umount $i
	done
	;;
	status)
	/bin/mount | grep "$DEST_DIR"
	;;
	*)
	echo "Usage: $0 {start|stop|status}" 1>&2
	exit 0
	;;
esac
80_80_record_to_nwshare.init

Code: Select all

. /dtv/SGO.env

# Remote NFS fileserver for recording 
PVRSERVER='192.168.1.10'

# Remote NFS share for recording
PVRPATH='/volume1/Grabaciones'

# NFS mount options. If you experince problem like slow performance, try change this.
# M_OPTS="soft,udp,async,nolock,rsize=32768,wsize=8192"
# M_OPTS="rw,soft,udp,nolock,rsize=32768,wsize=32768"
# M_OPTS="soft,tcp,nolock,rsize=32768,wsize=32768"
# M_OPTS="soft,tcp,nolock,rsize=8192,wsize=8192"
M_OPTS="soft,tcp,nolock"

# Number of second to wait for pvrimage mount point to be ready. 
# If you experience problem like "No virtual device found ready for PVR or already mounted" message in samygo.log then try to increase this.
WAIT=25


WriteToLog ()
{
	case $2 in
	   1)
	      NOW=`date +%Y%m%d-%H%M%S`
	      echo "$3" "$NOW $1" >>$LOGFILE
	   ;;
	   2)
	      echo "$3" "$1" >>$LOGFILE
	   ;;
	esac
}

CheckNFSServer ()
{
	WriteToLog "Check if server $1 is reachable and NFS service available..." 1 '-n'
        showmount --no-header -e $1 1>/dev/null 2>&1
        if [ $? = 0 ]; then		
		WriteToLog 'OK' 2
		return 0
	   else
		echo "NFS server $1 not reachable or NFS service not available"
		WriteToLog 'not reachable or NFS service not available' 2
		return 1
	fi
}

SearchPVRImageMP ()
{
        FOUND=false
        WriteToLog 'Search for mount point of pvrimage...' 1
        sleep $WAIT
        for DEV in `echo $SAMYGODEVS`
           do
              MPOINT=`grep -e ^$DEV /proc/mounts | cut -d " " -f 2`
              if [ -e "$MPOINT/.PlaceHolderDO-NOT-REMOVE" ] && [ $FOUND = false ]; then
                 PVRMPOINT=$MPOINT
                 FOUND=true
                 WriteToLog "pvrimage mount point is $PVRMPOINT" 1
              fi
           done

}

MountNFSShare ()
{
	WriteToLog "Mount of $2:$3 on $4... " 1 '-n'
	/bin/busybox mount -o "$1" "$2:$3" "$4" 2>>$LOGFILE

	if [ $? = 0 ]; then
             WriteToLog 'OK' 2
             CONTENTSDIR="$4/CONTENTS"
             if ! [ -d "$CONTENTSDIR" ]; then
                echo -n "Creating directory $CONTENTSDIR for the first time..."
                WriteToLog "Creating directory $CONTENTSDIR for the first time..." 1 '-n'
                mkdir "$CONTENTSDIR"
                echo "OK"
                WriteToLog 'OK' 2
                echo -n "Creating .PVRPfmChkLog file..."
                WriteToLog 'Creating .PVRPfmChkLog file...' 1 '-n'
                echo '1' > "$CONTENTSDIR/.PVRPfmChkLog"
                echo "OK"
                WriteToLog 'OK' 2
             fi
             echo "PVR on server $2 is now ready in localpath $4"
             WriteToLog "PVR on server $2 is now ready in localpath $4" 1
            else
             echo "Error during mount of $2:$3 on $4 see $LOGFILE for details"
        fi
}

case $1 in 
	start)
	echo >$LOGFILE
	WriteToLog 'Start Record to Network Share script (80_80_record_to_nwshare.init)' 1
	CheckNFSServer "$PVRSERVER"
	if [ $? = 0 ]; then
	   SearchPVRImageMP
        
	   if [ $FOUND = true ]; then
	       MountNFSShare "$M_OPTS" "$PVRSERVER" "$PVRPATH" "$PVRMPOINT"	  
	    else
	       echo 'No virtual device found ready for PVR or already mounted'
	       WriteToLog 'No virtual device found ready for PVR or already mounted' 1
	   fi 
	fi
	WriteToLog 'End Record to Network Share script (80_80_record_to_nwshare.init)' 1	
	;;
	stop)
	;;
	status)
	;;
	*)
	echo "Usage: $0 {start|stop}" 1>&2
	exit 0
	;;
esac

Hello where I can find a more complete log, just know this

Code: Select all

19700101-000033 Start Record to Network Share script (80_80_record_to_nwshare.init)
19700101-000033 Check if server 192.168.1.10 is reachable and NFS service available... OK
 19700101-000033 Search for mount point of pvrimage...
 19700101-000059 No virtual device found ready for PVR or already mounted
 19700101-000059 End Record to Network Share script (80_80_record_to_nwshare.init)
 
cat /proc/mounts

Code: Select all

# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / squashfs ro 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev/sam tmpfs rw 0 0
none /dtv tmpfs rw 0 0
none /dsm tmpfs rw 0 0
none /core tmpfs rw 0 0
none /tmp tmpfs rw 0 0
/dev/stl0/14 /mtd_rwarea rfs rw,codepage=utf8,vfat,fcache(blks)=128 0 0
/dev/stl0/19 /mtd_rocommon squashfs ro 0 0
/dev/stl0/17 /mtd_exe rfs ro,codepage=cp949,vfat,fcache(blks)=128 0 0
/dev/stl0/18 /mtd_appdata squashfs ro 0 0
/dev/stl0/13 /mtd_contents rfs rw,codepage=utf8,vfat,fcache(blks)=128 0 0
/dev/stl0/20 /mtd_swu rfs rw,codepage=cp949,vfat,fcache(blks)=128 0 0
/dev/stl0/21 /mtd_rwcommon rfs rw,codepage=utf8,vfat,fcache(blks)=128 0 0
none /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/sda1 /dtv/usb/sda1 vfat rw,sync,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed 0 0
/dev/stl0/14 /etc/passwd rfs rw,codepage=utf8,vfat,fcache(blks)=128 0 0
/dev/stl0/14 /etc/profile rfs rw,codepage=utf8,vfat,fcache(blks)=128 0 0
/dev/sdb /dtv/usb/sdb vfat rw,sync,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed 0 0
vfat /dtv/usb/sdb/upnp fuse ro,nosuid,nodev,user_id=0,group_id=0 0 0
192.168.1.10:/volume1/Anime /dtv/usb/sdb/nfs/192.168.1.10/_volume1_Anime nfs rw,vers=3,rsize=131072,wsize=131072,soft,nointr,nolock,proto=tcp,timeo=70,retrans=3,sec=sys,addr=192.168.1.10 0 0
192.168.1.10:/volume1/Cine /dtv/usb/sdb/nfs/192.168.1.10/_volume1_Cine nfs rw,vers=3,rsize=131072,wsize=131072,soft,nointr,nolock,proto=tcp,timeo=70,retrans=3,sec=sys,addr=192.168.1.10 0 0
192.168.1.10:/volume1/Deportes /dtv/usb/sdb/nfs/192.168.1.10/_volume1_Deportes nfs rw,vers=3,rsize=131072,wsize=131072,soft,nointr,nolock,proto=tcp,timeo=70,retrans=3,sec=sys,addr=192.168.1.10 0 0
/dev/sdc /dtv/usb/sdc xfs rw,nouuid,noquota 0 0
192.168.1.10:/volume1/Descargas /dtv/usb/sdb/nfs/192.168.1.10/_volume1_Descargas nfs rw,vers=3,rsize=131072,wsize=131072,soft,nointr,nolock,proto=tcp,timeo=70,retrans=3,sec=sys,addr=192.168.1.10 0 0
192.168.1.10:/volume1/Grabaciones /dtv/usb/sdb/nfs/192.168.1.10/_volume1_Grabaciones nfs rw,vers=3,rsize=131072,wsize=131072,soft,nointr,nolock,proto=tcp,timeo=70,retrans=3,sec=sys,addr=192.168.1.10 0 0
192.168.1.10:/volume1/Series /dtv/usb/sdb/nfs/192.168.1.10/_volume1_Series nfs rw,vers=3,rsize=131072,wsize=131072,soft,nointr,nolock,proto=tcp,timeo=70,retrans=3,sec=sys,addr=192.168.1.10 0 0
192.168.1.10:/volume1/video /dtv/usb/sdb/nfs/192.168.1.10/_volume1_video nfs rw,vers=3,rsize=131072,wsize=131072,soft,nointr,nolock,proto=tcp,timeo=70,retrans=3,sec=sys,addr=192.168.1.10 0 0
/ # 
User avatar
beatfreak
SamyGO Project Donor
Posts: 591
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

Re: SamyGo Extension Pack modified for NFS recording

Post by beatfreak »

just what i thought, vusb script doesn't mount the 1,5GB pvrimage...

try to get updated extensions see here for howto
http://wiki.samygo.tv/index.php5/Hack_o ... _models%29
point 5 "Insert SamyGO Extensions"
keep a backup of yor current version ;)

i am using the remis71 versions of vusb, nfsmount, record_to_nwshare scripts theyre working just fine

don't forget to create the placeholder file in pvrimage see the instructions from remi71 at the start of this thread (point 6 and following)
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS //
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.
xinvox

Re: SamyGo Extension Pack modified for NFS recording

Post by xinvox »

beatfreak wrote:just what i thought, vusb script doesn't mount the 1,5GB pvrimage...

try to get updated extensions see here for howto
http://wiki.samygo.tv/index.php5/Hack_o ... _models%29
point 5 "Insert SamyGO Extensions"
keep a backup of yor current version ;)

i am using the remis71 versions of vusb, nfsmount, record_to_nwshare scripts theyre working just fine

don't forget to create the placeholder file in pvrimage see the instructions from remi71 at the start of this thread (point 6 and following)
Hello, I follow all the steps nothing and I get the same error, this device is not suitable for recording or timeshit. We recommend using a USB drive, not to do bad, I downloaded all the files and I modified according to the tutorial, I pvrimage file, I think. PlaceHolderDO_NOT_REMOVE but the recording does not work for nfs, nfs folders for me the load well and can play mkv from my NAS, any solution, Greetings
User avatar
beatfreak
SamyGO Project Donor
Posts: 591
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

Re: SamyGo Extension Pack modified for NFS recording

Post by beatfreak »

if it helps, this is my setup

Code: Select all

# ls -l /dtv/usb/sda1/SamyGO/etc/init.d/
-rwxr-xr-x    1 root     0             630 Nov  2  2012 01_01_catch_crap.init
-rwxr-xr-x    1 root     0            2608 Nov  2  2012 01_03_hotplug.init.dis
-rwxr-xr-x    1 root     0             194 Nov  2  2012 01_04_pvr_drm_disable.init
-rwxr-xr-x    1 root     0             803 Nov  2  2012 01_04_server_replacement.init
-rwxr-xr-x    1 root     0            1092 Nov  2  2012 01_05_framebuffer.init
-rwxr-xr-x    1 root     0            1258 Nov  2  2012 01_05_framebuffer.init.dis
-rwxr-xr-x    1 root     0            1123 Nov  2  2012 01_05_hiddev.init.dis
-rwxr-xr-x    1 root     0            4191 Nov  2  2012 02_04_replace_wifi_mod.init.dis
-rwxr-xr-x    1 root     0            2684 Nov  2  2012 02_04_vusb.init.org.dis
-rwxr-xr-x    1 root     0            2352 Nov  2  2012 02_04_vusb.remi71.init
-rwxr-xr-x    1 root     0            1121 Nov  2  2012 02_10_wakelan.init.dis
-rwxr-xr-x    1 root     0             593 Nov  2  2012 03_01_fuse.init
-rwxr-xr-x    1 root     0            1029 Nov  2  2012 03_03_djmount.init.dis
-rwxr-xr-x    1 root     0            2589 Nov  2  2012 03_03_nfsmount.init.org.dis
-rwxr-xr-x    1 root     0            3084 Nov  9  2012 03_03_nfsmount.remi71.init
-rwxr-xr-x    1 root     0            3086 Nov  9  2012 03_03_nfsmount.remi71.init~
-rwxr-xr-x    1 root     0             993 Nov  2  2012 03_03_sshd.init
-rwxr-xr-x    1 root     0            3229 Nov  2  2012 04_04_bluetooth.init.dis
-rwxr-xr-x    1 root     0            2015 Nov  2  2012 04_04_fusesmb.init.dis
-rwxr-xr-x    1 root     0            1512 Nov  2  2012 04_04_httpfs.init.dis
-rwxr-xr-x    1 root     0            2488 Nov  2  2012 04_04_samba.init.dis
-rwxr-xr-x    1 root     0            4500 Nov  2  2012 06_05_apache.init.dis
-rwxr-xr-x    1 root     0            2262 Nov  2  2012 06_05_bb_httpd.init.dis
-rwxr-xr-x    1 root     0             648 Nov  2  2012 06_05_samba-server.init.dis
-rwxr-xr-x    1 root     0             537 Nov  2  2012 06_05_vsftp.init
-rwxr-xr-x    1 root     0            1140 Nov  2  2012 06_06_obexpush.init.dis
-rwxr-xr-x    1 root     0             978 Nov  2  2012 30_09_xserver.init.dis
-rwxr-xr-x    1 root     0             599 Nov  2  2012 70_70_arfix-sh.init.dis
-rwxr-xr-x    1 root     0            4506 Nov  2  2012 80_80_record_to_nwshare.init.kayaweed
-rwxr-xr-x    1 root     0            2284 Nov  2  2012 80_80_record_to_nwshare.init.org.dis
-rwxr-xr-x    1 root     0            4250 Jan  1  1980 80_80_record_to_nwshare.remi71.init
-rwxr-xr-x    1 root     0            1136 Nov  2  2012 90_90_injectso.init.dis
-rwxr-xr-x    1 root     0            2073 Nov  2  2012 90_90_loadGameMains.init.dis
-rwxr-xr-x    1 root     0             690 Nov  2  2012 99_99_start_exeDSP.init.disabled_by_default_to_protect_the_innocent
#
# ls -l /dtv/usb/sda1/SamyGO/
drwxr-xr-x    2 root     0            4096 Nov  2  2012 bin
-rwxr-xr-x    1 root     0               0 Nov  2  2012 clmeta.dat
drwxr-xr-x    4 root     0            4096 Nov  2  2012 doc
drwxr-xr-x   11 root     0            4096 Jan  1  1980 etc
drwxr-xr-x    3 root     0            4096 Nov  2  2012 lib
drwxr-xr-x    5 root     0            4096 Nov  2  2012 mc
drwxr-xr-x    2 root     0            4096 Nov 25  2012 mnt
drwxr-xr-x    3 root     0            4096 Nov  2  2012 opt
drwxr-xr-x    6 root     0            4096 Nov  2  2012 phpsysinfo
-rwxr-xr-x    1 root     0       1572864000 Jan  1 00:00 pvrimage
-rwxr-xr-x    1 root     0            3779 Nov  2  2012 rcSGO
-rwxr-xr-x    1 root     0             517 Jan  1 00:00 samygo.log
drwxr-xr-x    2 root     0            4096 Nov  2  2012 sbin
drwxr-xr-x    2 root     0            4096 Nov  2  2012 usr

you could also try to enable the run.ok thing in run.sh file and check run.ok later for log outputs
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS //
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.
xinvox

Re: SamyGo Extension Pack modified for NFS recording

Post by xinvox »

beatfreak wrote:if it helps, this is my setup

Code: Select all

# ls -l /dtv/usb/sda1/SamyGO/etc/init.d/
-rwxr-xr-x    1 root     0             630 Nov  2  2012 01_01_catch_crap.init
-rwxr-xr-x    1 root     0            2608 Nov  2  2012 01_03_hotplug.init.dis
-rwxr-xr-x    1 root     0             194 Nov  2  2012 01_04_pvr_drm_disable.init
-rwxr-xr-x    1 root     0             803 Nov  2  2012 01_04_server_replacement.init
-rwxr-xr-x    1 root     0            1092 Nov  2  2012 01_05_framebuffer.init
-rwxr-xr-x    1 root     0            1258 Nov  2  2012 01_05_framebuffer.init.dis
-rwxr-xr-x    1 root     0            1123 Nov  2  2012 01_05_hiddev.init.dis
-rwxr-xr-x    1 root     0            4191 Nov  2  2012 02_04_replace_wifi_mod.init.dis
-rwxr-xr-x    1 root     0            2684 Nov  2  2012 02_04_vusb.init.org.dis
-rwxr-xr-x    1 root     0            2352 Nov  2  2012 02_04_vusb.remi71.init
-rwxr-xr-x    1 root     0            1121 Nov  2  2012 02_10_wakelan.init.dis
-rwxr-xr-x    1 root     0             593 Nov  2  2012 03_01_fuse.init
-rwxr-xr-x    1 root     0            1029 Nov  2  2012 03_03_djmount.init.dis
-rwxr-xr-x    1 root     0            2589 Nov  2  2012 03_03_nfsmount.init.org.dis
-rwxr-xr-x    1 root     0            3084 Nov  9  2012 03_03_nfsmount.remi71.init
-rwxr-xr-x    1 root     0            3086 Nov  9  2012 03_03_nfsmount.remi71.init~
-rwxr-xr-x    1 root     0             993 Nov  2  2012 03_03_sshd.init
-rwxr-xr-x    1 root     0            3229 Nov  2  2012 04_04_bluetooth.init.dis
-rwxr-xr-x    1 root     0            2015 Nov  2  2012 04_04_fusesmb.init.dis
-rwxr-xr-x    1 root     0            1512 Nov  2  2012 04_04_httpfs.init.dis
-rwxr-xr-x    1 root     0            2488 Nov  2  2012 04_04_samba.init.dis
-rwxr-xr-x    1 root     0            4500 Nov  2  2012 06_05_apache.init.dis
-rwxr-xr-x    1 root     0            2262 Nov  2  2012 06_05_bb_httpd.init.dis
-rwxr-xr-x    1 root     0             648 Nov  2  2012 06_05_samba-server.init.dis
-rwxr-xr-x    1 root     0             537 Nov  2  2012 06_05_vsftp.init
-rwxr-xr-x    1 root     0            1140 Nov  2  2012 06_06_obexpush.init.dis
-rwxr-xr-x    1 root     0             978 Nov  2  2012 30_09_xserver.init.dis
-rwxr-xr-x    1 root     0             599 Nov  2  2012 70_70_arfix-sh.init.dis
-rwxr-xr-x    1 root     0            4506 Nov  2  2012 80_80_record_to_nwshare.init.kayaweed
-rwxr-xr-x    1 root     0            2284 Nov  2  2012 80_80_record_to_nwshare.init.org.dis
-rwxr-xr-x    1 root     0            4250 Jan  1  1980 80_80_record_to_nwshare.remi71.init
-rwxr-xr-x    1 root     0            1136 Nov  2  2012 90_90_injectso.init.dis
-rwxr-xr-x    1 root     0            2073 Nov  2  2012 90_90_loadGameMains.init.dis
-rwxr-xr-x    1 root     0             690 Nov  2  2012 99_99_start_exeDSP.init.disabled_by_default_to_protect_the_innocent
#
# ls -l /dtv/usb/sda1/SamyGO/
drwxr-xr-x    2 root     0            4096 Nov  2  2012 bin
-rwxr-xr-x    1 root     0               0 Nov  2  2012 clmeta.dat
drwxr-xr-x    4 root     0            4096 Nov  2  2012 doc
drwxr-xr-x   11 root     0            4096 Jan  1  1980 etc
drwxr-xr-x    3 root     0            4096 Nov  2  2012 lib
drwxr-xr-x    5 root     0            4096 Nov  2  2012 mc
drwxr-xr-x    2 root     0            4096 Nov 25  2012 mnt
drwxr-xr-x    3 root     0            4096 Nov  2  2012 opt
drwxr-xr-x    6 root     0            4096 Nov  2  2012 phpsysinfo
-rwxr-xr-x    1 root     0       1572864000 Jan  1 00:00 pvrimage
-rwxr-xr-x    1 root     0            3779 Nov  2  2012 rcSGO
-rwxr-xr-x    1 root     0             517 Jan  1 00:00 samygo.log
drwxr-xr-x    2 root     0            4096 Nov  2  2012 sbin
drwxr-xr-x    2 root     0            4096 Nov  2  2012 usr

you could also try to enable the run.ok thing in run.sh file and check run.ok later for log outputs
Hello, thank you for helping me, I have pretty much the same as you, the only thing my pvrimage file is larger than yours, if not have something to do, do not know much about linux and dont know what else to try , Greetings

Code: Select all

# ls -l /dtv/usb/sda1/SamyGO/etc/init.d/
-rwxr-xr-x    1 root     0             630 Jul  3  2011 01_01_catch_crap.init
-rwxr-xr-x    1 root     0            2608 Apr  8  2011 01_03_hotplug.init.dis
-rwxr-xr-x    1 root     0             803 Aug 26  2011 01_04_server_replacement.init
-rwxr-xr-x    1 root     0            1092 Nov  5  2010 01_05_framebuffer.init
-rwxr-xr-x    1 root     0            1258 Apr  8  2011 01_05_framebuffer.init.dis
-rwxr-xr-x    1 root     0            1123 Mar 29  2011 01_05_hiddev.init
-rwxr-xr-x    1 root     0            4191 Jul 16  2011 02_04_replace_wifi_mod.init.dis
-rwxr-xr-x    1 root     0            2352 Mar 29  2011 02_04_vusb.init
-rwxr-xr-x    1 root     0            2684 Mar 29  2011 02_04_vusb.init.or
-rwxr-xr-x    1 root     0            1121 Nov 23  2010 02_10_wakelan.init.dis
-rwxr-xr-x    1 root     0             593 Mar 29  2011 03_01_fuse.init
-rwxr-xr-x    1 root     0            1029 Mar 29  2011 03_03_djmount.init
-rwxr-xr-x    1 root     0            3273 Nov 25  2012 03_03_nfsmount.init
-rwxr-xr-x    1 root     0            2589 Mar 29  2011 03_03_nfsmount.init.or
-rwxr-xr-x    1 root     0             993 Mar 29  2011 03_03_sshd.init
-rwxr-xr-x    1 root     0            3229 Dec 31  2010 04_04_bluetooth.init
-rwxr-xr-x    1 root     0            2015 Dec  6  2010 04_04_fusesmb.init.dis
-rwxr-xr-x    1 root     0            1512 Sep 25  2011 04_04_httpfs.init.dis
-rwxr-xr-x    1 root     0            2488 Mar 29  2011 04_04_samba.init.dis
-rwxr-xr-x    1 root     0            4500 Mar 29  2011 06_05_apache.init
-rwxr-xr-x    1 root     0            2262 Apr  8  2011 06_05_bb_httpd.init.dis
-rwxr-xr-x    1 root     0             648 Oct  5  2011 06_05_samba-server.init.dis
-rwxr-xr-x    1 root     0             537 Mar 29  2011 06_05_vsftp.init.dis
-rwxr-xr-x    1 root     0            1140 Mar 29  2011 06_06_obexpush.init.dis
-rwxr-xr-x    1 root     0             978 Jul  6  2011 30_09_xserver.init.dis
-rwxr-xr-x    1 root     0             599 Mar 29  2011 70_70_arfix-sh.init.dis
-rwxr-xr-x    1 root     0            4270 Nov 25  2012 80_80_record_to_nwshare.init
-rwxr-xr-x    1 root     0            4506 Mar 29  2011 80_80_record_to_nwshare.init.kayaweed
-rwxr-xr-x    1 root     0            2284 Jan  3  2011 80_80_record_to_nwshare.init.or
-rwxr-xr-x    1 root     0            1136 Mar 29  2011 90_90_injectso.init.dis
-rwxr-xr-x    1 root     0            2073 May 31  2011 90_90_loadGameMains.init.dis
-rwxr-xr-x    1 root     0             690 Mar 29  2011 99_99_start_exeDSP.init.disabled_by_default_to_protect_the_innocent
/ # ls -l /dtv/usb/sda1/SamyGO/
drwxr-xr-x    2 root     0            4096 Nov 29  2012 bin
-rwxr-xr-x    1 root     0               0 Oct  1  2011 clmeta.dat
drwxr-xr-x    4 root     0            4096 Nov 29  2012 doc
drwxr-xr-x   11 root     0            4096 Nov 29  2012 etc
drwxr-xr-x    3 root     0            4096 Nov 29  2012 lib
drwxr-xr-x    5 root     0            4096 Nov 29  2012 mc
drwxr-xr-x    3 root     0            4096 Nov 29  2012 opt
drwxr-xr-x    6 root     0            4096 Nov 29  2012 phpsysinfo
-rwxr-xr-x    1 root     0       1610612736 Jan  1 00:04 pvrimage
-rwxr-xr-x    1 root     0            3779 Mar 28  2011 rcSGO
-rwxr-xr-x    1 root     0             388 Jan  1 00:00 samygo.log
drwxr-xr-x    2 root     0            4096 Nov 29  2012 sbin
drwxr-xr-x    2 root     0            4096 Nov 29  2012 usr
/ # 
edit: the problem I have is that it does not mount the virtual drive, as could ride, Greetings

/dtv/usb/sda1/SamyGO # tail -f samygo.log

19700101-000030 Start Record to Network Share script (80_80_record_to_nwshare.init)
19700101-000030 Check if server 192.168.1.10 is reachable and NFS service available... OK
19700101-000030 Search for mount point of pvrimage...
19700101-000056 No virtual device found ready for PVR or already mounted
19700101-000056 End Record to Network Share script (80_80_record_to_nwshare.init)
User avatar
beatfreak
SamyGO Project Donor
Posts: 591
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

Re: SamyGo Extension Pack modified for NFS recording

Post by beatfreak »

on tv do following

Code: Select all

md /tmp/xfs

Code: Select all

/bin/busybox mount -t xfs -o rw,loop /dtv/usb/sda1/SamyGO/pvrimage /tmp/xfs

Code: Select all

ls -alR /tmp/xfs
and paste putput of last one
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS //
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.
xinvox

Re: SamyGo Extension Pack modified for NFS recording

Post by xinvox »

beatfreak wrote:on tv do following

Code: Select all

md /tmp/xfs

Code: Select all

/bin/busybox mount -t xfs -o rw,loop /dtv/usb/sda1/SamyGO/pvrimage /tmp/xfs

Code: Select all

ls -alR /tmp/xfs
and paste putput of last one
Hello, here I put the result Thanks

Code: Select all

# /bin/busybox mount -t xfs -o rw,loop /dtv/usb/sda1/SamyGO/pvrimage /tmp/xfs
/ # ls -alR /tmp/xfs
/tmp/xfs:
drwxr-xr-x    2 root     0               6 Nov 25  2012 .
drwxrwxrwt    3 root     0              60 Jan  1 00:09 ..
/ # 
User avatar
beatfreak
SamyGO Project Donor
Posts: 591
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

Re: SamyGo Extension Pack modified for NFS recording

Post by beatfreak »

there should be a .placeholder....... file in it
if you do the steps i posted before again, the command to create it would be

Code: Select all

touch /tmp/xfs/.PlaceHolderDO-NOT-REMOVE
then check if existing

Code: Select all

ls -alR /tmp/xfs
and unmount pvrimage

Code: Select all

umount /dtv/usb/sda1/SamyGO/pvrimage
then check again (placeholder file should be gone as mountpoint is empty without mounted image)


after a reboot you should see in output of cat /proc/mounts

Code: Select all

...lots of mounts...
/dev/sdc /dtv/usb/sdc xfs rw,nouuid,noquota 0 0
(recorder mount)
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS //
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.

Post Reply

Return to “[C] Software”