Virtual USB how-to

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

edelfalke
Posts: 81
Joined: Sun Jan 10, 2010 12:29 pm

Re: Virtual USB how-to

Post by edelfalke »

You are right.
My Script looks like this:

Code: Select all

#!/bin/sh

SMB="/dtv/usb/smb"
Module="/mtd_rwarea/modules"
IP="//WINDOWS_PC_IP_ADRESS"
User="YOUR WINDOWS USERNAME"
Password="YOUR WINDOWS PASSOWRD"

#Install Kernel Modules for smb
dd if=/dev/zero of=/dtv/vusb bs=512 count=4
insmod /mtd_rwarea/modules/dummy_hcd.ko
sleep 3
insmod /mtd_rwarea/modules/g_file_storage.ko
sleep 3

echo -e "[sdh]
Vendor : CifsMount
Product : Virtual USB
Serial : Q80VQLFH
Devpath : 8
Lun : 0
MountDir : /dtv/usb/smb
FileSystem : vfat
" >> /dtv/usb/log

insmod /mtd_rwarea/modules/cifs.ko
sleep 3

#Create Folder for VUSB-Mountpoints
mkdir -p $SMB

#========================================================
# Mounting the shares
#========================================================
if [ `mount | grep -c $SMB/Multimedia` == 0 ]; then
	mkdir -p $SMB/Multimedia
	mount -o user=$User,password=$Password -t cifs $IP/Sharename
fi
.
.
.
.
The name of the VUSB is in this line: Product : Virtual USB

I think in the given script is the name of the vusb in the vusb.image file and you cannot change it.

Post Reply

Return to “[B] Support”