Page 1 of 2

virtual usb/samba on F series

Posted: Sat Jul 13, 2013 8:01 pm
by bugficks
was playing w/ getting my mounts recognized w/o the need for virtual usb as there is none for F series yet. for samba i was using some .ko from denny.

"Virtual USB"

Code: Select all

mkdir /dtv/usb/sdj1
mount -o loop -t vfat /mtd_rwarea/vfat.img /dtv/usb/sdj1
append to /dtv/usb/usblog:

Code: Select all

[sdj]
Vendor : Virtual USB 
Product : Virtual USB   
Serial : 
Devpath : 
Lun : 
ScsiDevicePath : /dev/loop1
MountDir : /dtv/usb/sdj1
FileSystem : vfat
"Virtual Samba"

Code: Select all

mkdir /dtv/usb/sdz1
mount -t cifs -o ro,username=****,password=**** //192.168.1.25/t /dtv/usb/sdz1
append to /dtv/usb/usblog:

Code: Select all

[sdz]
Vendor : Virtual Samba 
Product : Virtual Samba   
Serial : 
Devpath : 
Lun : 
ScsiDevicePath : //192.168.1.25/t
MountDir : /dtv/usb/sdz1
FileSystem : vfat

Re: virtual usb/samba on F series

Posted: Mon Jul 15, 2013 7:57 am
by bugficks
ah well didn't work as expected.. it was showing thumbs of vids and pic just fine but failed to open them. got storage disconnected error message.
so i've compiled the required kmods.

Code: Select all

insmod dummy_hcd.ko
insmod g_file_storage.ko file="/mtd_rwarea/00_vfat.img" serial="DEADBEEF0815"

Re: virtual usb/samba on F series

Posted: Mon Jul 15, 2013 7:59 am
by juusso
i assume now it works? :)

Re: virtual usb/samba on F series

Posted: Mon Jul 15, 2013 8:12 am
by bugficks
yar, was testing some 1080p mkv sample from samba share which i've mounted into virtual usb.

Code: Select all

/dev/sdc on /dtv/usb/sdc type vfat (rw,dirsync,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,usefree,nfs,flush,errors=continue)
//192.168.1.25/t on /dtv/usb/sdc/m type cifs (ro,mand,relatime,sec=ntlm,unc=\192.168.1.25\t,username=****,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.1.25,file_mode=0755,dir_mode=0755,nounix,serverino,rsize=16384,wsize=131007,actimeo=1)

Code: Select all

cat /sys/block/sdc/device/model
File-Stor Gadget
cat /dtv/usb/usblog

Code: Select all

[sda]
Vendor : Generic
Product : STORAGE DEVICE
Serial : 000000264046
Devpath : 1-1.2.1
Lun : 0
ScsiDevicePath : /dev/sda1
MountDir : /dtv/usb/sda1
FileSystem : ext4

[sdb]
Vendor : Corsair
Product : Flash Voyager
Serial : A900000000026808
Devpath : 1-1.2.2
Lun : 0
ScsiDevicePath : /dev/sdb1
MountDir : /dtv/usb/sdb1
FileSystem : vfat

[sdc]
Vendor : Linux
Product : File-Stor Gadget
Serial : DEADBEEF0815
Devpath : 7-1
Lun : 0
ScsiDevicePath : /dev/sdc
MountDir : /dtv/usb/sdc
FileSystem : vfat
fwiw, device info was automatically added to /dtv/usb/usblog

Re: virtual usb/samba on F series

Posted: Thu Feb 20, 2014 10:28 am
by petr
bugficks wrote:yar, was testing some 1080p mkv sample from samba share which i've mounted into virtual usb.
fwiw, device info was automatically added to /dtv/usb/usblog
Can you please explain how /dtv/usb/usblog works on F series? I have NFS mount and I don't know how to tell TV to look on it. Writing data as you have above didn't do the trick for me.

Re: virtual usb/samba on F series

Posted: Thu Feb 20, 2014 11:08 am
by juusso
use SamyGO Extensions and enable NFS init script. No need to mess with usblog file at all.

Re: virtual usb/samba on F series

Posted: Fri Feb 21, 2014 9:11 am
by petr
I take it as it's not possible on F series and virtual usb need to be used.

BTW. Where I can download SamyGO Extensions for F series?

Re: virtual usb/samba on F series

Posted: Fri Feb 21, 2014 10:03 am
by juusso
it is good idea somtimes to look around...

viewtopic.php?p=50329#p50329

Re: virtual usb/samba on F series

Posted: Sat Feb 22, 2014 1:48 pm
by apoklyps3
for me samba mounting doesn't work.
it doesn't see any file at all from the mount.
does the file sistem of the network mounted drive have to be FAT? mine are all NTFS.

Re: virtual usb/samba on F series

Posted: Sun Oct 02, 2016 6:39 pm
by liverhook
I have virtual usb/samba on F series working in my home net. So in sources the virtual usb points to my network drive, where videos can be selected and played to / ober the tv. But: as a video is running a while, the sound gets asynchron, so I have to rewind a short while and then play, so that audio is again synchron.
Does for this behaviour exist a solution or a hint? Some buffer adjustments in some file perhaps or something similar?