Automounting CIFS on virtual USB problems

Here for general support for B series TVs, request and problem solve area.
Post Reply

antlane
Posts: 20
Joined: Wed Nov 11, 2009 11:41 am

Automounting CIFS on virtual USB problems

Post by antlane »

Hi,

Thanks for providing such a great hack for the TV. I was getting so frustrated with the Samsung streaming software but using the SamyGO extensions allowed me to use SAMBA to access my videos which has improved things hugely.

I'm now trying to get my shares mounted automatically to a virtual USB rather than having to go to my content folder each time I switch on the TV. I've followed the instructions from this page on the wiki and after huge amounts of trouble, worked out that the reason it wasn't exectuing was because I hadn't set the CR/LF format to unix.

Having set the format correctly, I was able to get the script to fire off from a telnet session. I can see the correct directory listing in /dtv/usb/sda4 however the mediaplayer isn't picking up the virtual USB for some reason.

Here's my script which I've amended slightly from the example:

Code: Select all

#!/bin/sh

#Load cifs.ko module
insmod /mtd_rwarea/cifs.ko

#Create directory structure on virtual usb memory:
mkdir -p /dtv/usb/sda4

mount -o user=username,password=password -t cifs //192.168.1.5/Videos /dtv/usb/sda4/

# append sda4 notification to log file:                                         

echo "[sdd]                                                                    
Vendor : Linux                                                                 
Product : Samba Server                                                           
Serial : Q80VQLFL                                                              
Devpath : 4                                                                    
Lun : 0                                                                        
MountDir : /dtv/usb/sda4                                                       
FileSystem : vfat                                                              
                                                                               
" >> /dtv/usb/log  
Is there something else I need to do to get this to work or does my script nead a tweak? When I do get it working, do I have to patch the firmware to get it to fire off automatically or is there another method I can use?

If someone can work out how to get DTS passthrough to work, it will make it perfect!

Thanks for your help,

Ant.
antlane
Posts: 20
Joined: Wed Nov 11, 2009 11:41 am

Re: Automounting CIFS on virtual USB problems

Post by antlane »

Can anyone help me with this?

I also tried patching my firmware and setting SamyGO.sh to load up the SamyGO extensions (mtd_tlib/GGame/SamyGO/rcSGO) but this isn't working for some reason. I've verified that running the SamyGO.sh script from a Telnet session does load up the extensions so I'm guessing either the extensions can't be loaded on startup (although I'm sure I read that it was possible), or my patched firmware isn't actually patched correctly.

Any help greatly appreciated!
edelfalke
Posts: 81
Joined: Sun Jan 10, 2010 12:29 pm

Re: Automounting CIFS on virtual USB problems

Post by edelfalke »

Your mountpoint is sda4, is there your USB Stick Mounted?

If not, you have to install Virtual USB following this Howto:

http://forum.samygo.tv/viewtopic.php?f=5&t=231
antlane
Posts: 20
Joined: Wed Nov 11, 2009 11:41 am

Re: Automounting CIFS on virtual USB problems

Post by antlane »

Thanks for your reply.

How strange. After posting my question, i looked through the SamyGO extension files again and realised I'd need to use dummy_hcd.ko and g_file_storage.ko. I followed the extension scripts but still didn't get anywhere. Not sure why as it looked pretty simple. Anyway, I just tried again and it worked first time.

I used a slightly different method to the one in your link which meant I didn't need to generate a vusb.image file. Here's the code:

Code: Select all

#!/bin/sh

#Load cifs.ko module
dd if=/dev/zero of=/dtv/vusb bs=512 count=4

insmod /mtd_rwarea/dummy_hcd.ko 
sleep 2 
insmod /mtd_rwarea/g_file_storage.ko
sleep 3

echo -e "[sdh]\nVendor : CifsMount\nProduct : Ant\n\Serial : Q80VQLFH\nDevpath : 8\nLun : 0\nMountDir : /dtv/usb/smb\nFileSystem : vfat\n" >> /dtv/usb/log

mkdir -p /dtv/usb/smb

insmod /mtd_rwarea/cifs.ko

mount -o user=username,password=password -t cifs //192.168.1.5/Videos /dtv/usb/smb/
It works a treat!

Now, any news on DTS passthrough?!

Post Reply

Return to “[B] Support”