PVR over samba

Ideas and dreaming will go this forum

Deus3X
SamyGO Project Donor
Posts: 168
Joined: Wed Feb 19, 2014 10:29 am

PVR over samba

Post by Deus3X » Sat Jan 03, 2015 7:27 pm

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 :)

User avatar
Lorenz0
SamyGO Project Donor
Posts: 10
Joined: Wed Jun 04, 2014 10:39 am

Re: PVR over samba

Post by Lorenz0 » Wed Mar 18, 2015 3:18 pm

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? :?:
UE40F6470 rooted again after a factory reset

zoelechat
SamyGO Moderator
Posts: 7937
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: PVR over samba

Post by zoelechat » Wed Mar 18, 2015 3:29 pm

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 :) )
I do NOT receive any PM. Please use forum.

User avatar
Lorenz0
SamyGO Project Donor
Posts: 10
Joined: Wed Jun 04, 2014 10:39 am

Re: PVR over samba

Post by Lorenz0 » Wed Mar 18, 2015 3:38 pm

Ok, I'll give it a try!
UE40F6470 rooted again after a factory reset

robert90
SamyGO Project Donor
Posts: 94
Joined: Sun Jul 26, 2015 12:39 pm

Re: PVR over samba

Post by robert90 » Thu Aug 06, 2015 8:33 pm

For me there is no mkfs.ext4. What am I doing wrong?
UEF4570 FW: T-MST12DEUC-1119.0
UEES6300 FW: T-MST10PDEUC-1042.0

bobiturboto
SamyGO Project Donor
Posts: 382
Joined: Sun Mar 23, 2014 8:15 pm
Location: Ireland

Re: PVR over samba

Post by bobiturboto » Sun Aug 09, 2015 8:47 am

You need to execute this in your samba server. So you have to have linux there.

steef84
SamyGO Project Donor
Posts: 63
Joined: Mon Dec 12, 2011 3:53 am
Location: Holland

Re: PVR over samba

Post by steef84 » Thu Aug 13, 2015 4:16 pm

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
UE32F4510 T-MST12DEUC-1118.4 using donor root downgraded to 1112.2 ;) + oscam
UE40D5700 T-MST5DEUC-1025.0 using public root RIP
UE40H6240 T-MST14DEUC 2130 using donor root + oscam
UE55J6240 T-HKMFDEUC-1470.3 no root

zoelechat
SamyGO Moderator
Posts: 7937
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: PVR over samba

Post by zoelechat » Thu Aug 13, 2015 4:42 pm

You can only mount share itself, not subfolder of share: //192.168.2.66/video /UE32F4510
I do NOT receive any PM. Please use forum.

steef84
SamyGO Project Donor
Posts: 63
Joined: Mon Dec 12, 2011 3:53 am
Location: Holland

Re: PVR over samba

Post by steef84 » Thu Aug 13, 2015 5:23 pm

Didn't know that. However still the same same error as I mount the share without subfolder...
UE32F4510 T-MST12DEUC-1118.4 using donor root downgraded to 1112.2 ;) + oscam
UE40D5700 T-MST5DEUC-1025.0 using public root RIP
UE40H6240 T-MST14DEUC 2130 using donor root + oscam
UE55J6240 T-HKMFDEUC-1470.3 no root

robert90
SamyGO Project Donor
Posts: 94
Joined: Sun Jul 26, 2015 12:39 pm

Re: PVR over samba

Post by robert90 » Sun Sep 13, 2015 2:24 pm

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
UEF4570 FW: T-MST12DEUC-1119.0
UEES6300 FW: T-MST10PDEUC-1042.0

Post Reply

Return to “[F] Brainstorm”