PVR over samba
Posted: Sat Jan 03, 2015 7:27 pm
All the credits for that useful mod are for sectroyer, i was only the tester 
The goal of that modification is to be able to record the tv program without using a real usb.
Remove any usb from the TV
1) We need to create an image that f.e. rec.img that should be located inside of samba shared folders.
Open Terminal and execute this command
with this command we will create a 100gb image file, you can change the size changing the value of count.
2) When complete we have to format our image file in ext4 (required for F series)
on terminal send this command
3) Now we have to rename the 02_06_crypto_load.init file (it is in /mnt/etc/init.d) to 02_03_crypto_load.init
4) At this point we have to edit 02_04_vusb.init file:
locate in that file
and before that line you have to paste
now locate
and disable it writing # before the line
Before the line we have disabled paste
5) Reboot your TV
6) Wait untile Virt. USB 1 and Virt. USB 2 will be present on your TV, be sure that you are able to enter on the shared directory
7) Hit the rec button on your remote.
The TV will ask you perform a performance test, do it.
The test will fail.
8) Wait 1 minute and then you have to copy from a real usb used for PVR with your TV the invisible file .PVRPfmChkLog.
Replace the .PVRPfmChkLog that you have on /dtv/usb/sda/CONTENTS in your TV
9) Hit rec button!
The magic is done
One more time tnx to sectroyer and zoelechat that have assisted me
Hope that this mod will be useful also for you

The goal of that modification is to be able to record the tv program without using a real usb.
Remove any usb from the TV
1) We need to create an image that f.e. rec.img that should be located inside of samba shared folders.
Open Terminal and execute this command
Code: Select all
dd if=/dev/zero of=/samba_shared_path/rec.img bs=1M count=102400
2) When complete we have to format our image file in ext4 (required for F series)
on terminal send this command
Code: Select all
mkfs.ext4 /samba_shared_path/rec.img
4) At this point we have to edit 02_04_vusb.init file:
locate in that file
Code: Select all
insmod $MOD_DIR/kernel/drivers/usb/gadget/dummy_hcd.ko >> $LOGFILE 2>&1
Code: Select all
mkdir /dtv/samba
insmod $MOD_DIR/kernel/fs/cifs/cifs.ko
$SYSROOT/bin/busybox mount -o "rw,user=YOUR_USER,password=YOUR_PASS,iocharset=utf8" -t cifs "//SAMBA_SERVER_IP/samba_shared_path" "/dtv/samba"
Code: Select all
insmod $MOD_DIR/kernel/drivers/usb/gadget/g_file_storage.ko file=/dtv/vusb >> $LOGFILE 2>&1
Code: Select all
# insmod $MOD_DIR/kernel/drivers/usb/gadget/g_file_storage.ko file=/dtv/vusb >> $LOGFILE 2>&1
Code: Select all
insmod $MOD_DIR/kernel/drivers/usb/gadget/g_file_storage.ko file=/dtv/samba/rec.img,/dtv/vusb >> $LOGFILE 2>&1
6) Wait untile Virt. USB 1 and Virt. USB 2 will be present on your TV, be sure that you are able to enter on the shared directory
7) Hit the rec button on your remote.
The TV will ask you perform a performance test, do it.
The test will fail.
8) Wait 1 minute and then you have to copy from a real usb used for PVR with your TV the invisible file .PVRPfmChkLog.
Replace the .PVRPfmChkLog that you have on /dtv/usb/sda/CONTENTS in your TV
9) Hit rec button!
The magic is done

One more time tnx to sectroyer and zoelechat that have assisted me

Hope that this mod will be useful also for you
