Page 3 of 3
Re: No samba shares on virtual USB
Posted: Sun Jan 17, 2016 8:36 pm
by niceguy0815
I have now copy the files via FTP to the missing location.
I have used thet one out of the SamyGO-All-Extensions-E-Series ZIPPack
"SamyGO-All-Extensions-E-Series\SamyGO\lib\modules\81\2.6.35.13\kernel\drivers\usb\gadget"
Now I get:
Code: Select all
root@tv:/mnt # /mnt/etc/init.d/02_04_vusb.init start
mkfs.vfat 2.11 (12 Mar 2005)
insmod: can't insert '/mnt/lib/modules/2.6.35.13/kernel/drivers/usb/gadget/dummy_hcd.ko': invalid module format
insmod: can't read '/mnt/lib/modules/2.6.35.13/kernel/drivers/mstar/usb/gadget/dummy_hcd.ko': No such fil e or directory
insmod: can't insert '/mnt/lib/modules/2.6.35.13/kernel/drivers/usb/gadget/g_file_storage.ko': invalid mo dule format
insmod: can't read '/mnt/lib/modules/2.6.35.13/kernel/drivers/mstar/usb/gadget/g_file_storage.ko': No suc h file or directory
real storage device at: /sys/block/sda/device/model (sda)
So thes are the wrong files?
So No USB gadget on E-MST. means it is not possible to mount the share to VUSB on my modell?
Sorry for my bad english

Re: No samba shares on virtual USB
Posted: Sun Jan 17, 2016 8:39 pm
by juusso
you have copied modules from non-MST version. Won`t work. So you have to compile those modules by self. pls post output of
asap you try insmod wrong modules. thanks. And yes, pls inform yourself here :
viewtopic.php?f=52&t=8659&p=69875#p69875
Re: No samba shares on virtual USB
Posted: Sun Jan 17, 2016 8:44 pm
by zoelechat
We already have these modules compiled. They simply don't work, and anyway they're not needed.
Re: No samba shares on virtual USB
Posted: Sun Jan 17, 2016 9:00 pm
by niceguy0815
@zoelechat
So to say it clear no VUSB support on my model becaus no working moduls right?
And I can stop to play around with it and can spend my Time to better things

Re: No samba shares on virtual USB
Posted: Sun Jan 17, 2016 9:03 pm
by zoelechat
vusb IS supported (you already have it in sources, right?). Modules are just not needed, believe me I've got E-MST too.

Will you follow my above advice?? (too many files in share=endless loading!!)

Re: No samba shares on virtual USB
Posted: Sun Jan 17, 2016 9:10 pm
by juusso
leave small usb attached and mount your samba shares there (instead to vusb)
Re: No samba shares on virtual USB
Posted: Sun Jan 17, 2016 9:14 pm
by niceguy0815
zoelechat wrote:vusb IS supported (you already have it in sources, right?). Modules are just not needed, believe me I've got E-MST too.

Will you follow my above advice?? (too many files in share=endless loading!!)

Yes in Sources it show an VirtualUSB.
But how to tel the 04_04-samba.init Script onlly to looking in a folder on the share?
Code: Select all
#!/bin/sh
#
# ? Copyright 1996-2010, ZsoltTech.Com
# by Ser Lev Arris <arris@ZsoltTech.Com>
#
# donated for the SamyGo Project
# http://samygo.sourceforge.net/
#
# Version: SamyGO svn $Id: 04_04_samba.init 1069 2011-01-03 16:47:24Z arris69 $
#
. /dtv/SGO.env
# sleep 9
##### CHANGE MEEEEE !!!!! ######
USER="rXXX"
PASSWD="EXXXX"
PERM="rw" # can be ro or rw
##### CHANGE MEEEEE END ######
[ -e /mtd_rwarea/smb_userdata ] && source /mtd_rwarea/smb_userdata
[ -z $USER ] && exit 1
[ -z $PASSWD ] && exit 1
DEST_DIR=$MOUNT_PATH/smb
SERVER="192.168.0.10"
# SERVER="10.0.0.1" # if you want a fixed server
SHARES=""
FR_NAME="Samba Server"
# M_OPTS="rw,user=${USER},password=${PASSWD}"
M_OPTS="$PERM,user=${USER},password=${PASSWD},codepage=cp1250,iocharset=utf8"
SERVERS="Don't set me!!"
do_mount()
{
# $(echo -e "[sdh]\nVendor : CifsMount\nProduct : $FR_NAME\n\
#Serial : Q80VQLFH\nDevpath : 8\nLun : 0\nMountDir : $DEST_DIR\nFileSystem : vfat\n" >> /dtv/usb/log)
for i in $S_MOUNTS ; do
i="$(echo -n $i | sed -e 's/SGOspace/ /g')"
M_POINT="$DEST_DIR/$1/$(echo -n $i | sed -e "s/\\\$/_/g")"
mkdir -p "$M_POINT"
if [ `cat /proc/mounts | grep -c "$M_POINT"` -lt "1" ] ; then
/bin/busybox mount -o "${M_OPTS}" -t cifs "//$1/$i" "$M_POINT"
else
echo "$M_POINT is mounted!"
fi
done
}
get_shares()
{
echo "Search Shares"
for i in $SERVERS ; do
echo "on: $i"
S_MOUNTS=$(smbclient -s "$SYSROOT/etc/samba/smb.conf" -U ${USER}%${PASSWD} \
-g -L $i | grep "Disk|" | grep -v "\\$" | grep -v " Service" | sed -r 's/.*\|(.*)\|.*/\1/' | sed -r 's/ /SGOspace/g')
# -g -L $i | grep "Disk|" | grep -v "\\$" | grep -v " Service" | cut -d "|" -f2)
[ -n "$S_MOUNTS" ] && do_mount $i
done
}
get_servers()
{
if [ -z "$SERVER" ] ; then
# SERVERS=$(cat /proc/net/arp | grep -v "IP address" | cut -d " " -f1)
SERVERS=$(cat /proc/net/arp | grep -v "IP address" | sed 's/^\(\w*.\w*.\w*.\w*\) *.*/\1/')
else
SERVERS=$SERVER
fi
}
case $1 in
start)
insmod $MOD_DIR/kernel/fs/cifs/cifs.ko
mkdir -p "$DEST_DIR"
get_servers
get_shares
;;
stop)
# may can fail if device access the mount from content library
# for i in $(cat /proc/mounts | grep cifs | cut -d " " -f2) ; do
for i in $(cat /proc/mounts | grep cifs | grep "$DEST_DIR" | sed 's/^\(.*\) \(.*\) cifs .*/\2/') ; do
i="$(echo -n $i | sed -r 's/\\040/ /g')"
/bin/busybox umount "$i"
done
;;
status)
/bin/mount | grep "$DEST_DIR"
;;
*)
echo "Usage: $0 {start|stop}" 1>&2
exit 0
;;
esac