Page 1 of 2

PVR over samba

Posted: Sat Jan 03, 2015 7:27 pm
by Deus3X
All the credits for that useful mod are for sectroyer, i was only the tester :P
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
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

Code: Select all

mkfs.ext4 /samba_shared_path/rec.img
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

Code: Select all

insmod $MOD_DIR/kernel/drivers/usb/gadget/dummy_hcd.ko >> $LOGFILE 2>&1
and before that line you have to paste

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"
now locate

Code: Select all

insmod $MOD_DIR/kernel/drivers/usb/gadget/g_file_storage.ko file=/dtv/vusb >> $LOGFILE 2>&1
and disable it writing # before the line

Code: Select all

# insmod $MOD_DIR/kernel/drivers/usb/gadget/g_file_storage.ko file=/dtv/vusb >> $LOGFILE 2>&1
Before the line we have disabled paste

Code: Select all

insmod $MOD_DIR/kernel/drivers/usb/gadget/g_file_storage.ko file=/dtv/samba/rec.img,/dtv/vusb >> $LOGFILE 2>&1
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 :P
One more time tnx to sectroyer and zoelechat that have assisted me :P

Hope that this mod will be useful also for you :)

Re: PVR over samba

Posted: Wed Mar 18, 2015 3:18 pm
by Lorenz0
Wow, sounds great! :D

But will this work for scheduled recordings? What happens if virtual USB is not ready by the time a scheduled recording is to begin? :?:

Re: PVR over samba

Posted: Wed Mar 18, 2015 3:29 pm
by zoelechat
Lorenz0 wrote:But will this work for scheduled recordings? What happens if virtual USB is not ready by the time a scheduled recording is to begin? :?:
IIRC TV powers on silently 3 or 4 minutes before schedule time, it should be enough for vUSB to be *always* ready (theoretically :) )

Re: PVR over samba

Posted: Wed Mar 18, 2015 3:38 pm
by Lorenz0
Ok, I'll give it a try!

Re: PVR over samba

Posted: Thu Aug 06, 2015 8:33 pm
by robert90
For me there is no mkfs.ext4. What am I doing wrong?

Re: PVR over samba

Posted: Sun Aug 09, 2015 8:47 am
by bobiturboto
You need to execute this in your samba server. So you have to have linux there.

Re: PVR over samba

Posted: Thu Aug 13, 2015 4:16 pm
by steef84
Trying this on my UE32F4510. Edited things according your tutorial. Created the ext4 image file without trouble. However the samba mount doesn't work. Also manually mounting the share doesnt work.

Code: Select all

VDLinux#>   $SYSROOT/bin/busybox mount -o "rw,user=admin,password=XXX,iocharset=utf8" -t  cifs "//192.168.2.66/video/UE32F4510" "/dtv/samba"
mount: mounting //192.168.2.66/video/UE32F4510 on /dtv/samba failed: No such device or address
Folder /dtv/samba exists. Share is accessible too. I also mounted samba share //192.168.2.66/video by file using smb_userdata in /mtd_rwarea which is working properly. Any hints or pointers in the right direction?

Here http://pastebin.com/hPMzPC1M is my complete 02_04_vusb.init

Re: PVR over samba

Posted: Thu Aug 13, 2015 4:42 pm
by zoelechat
You can only mount share itself, not subfolder of share: //192.168.2.66/video /UE32F4510

Re: PVR over samba

Posted: Thu Aug 13, 2015 5:23 pm
by steef84
Didn't know that. However still the same same error as I mount the share without subfolder...

Re: PVR over samba

Posted: Sun Sep 13, 2015 2:24 pm
by robert90
I would like to use on UE46ES6300.

But on there the 02_02_vusb.init ist not the same.
I try It on this TV, but it don't work.
Any Idea?

greeting
Robert