Page 1 of 2
samyGo Firmware patch for a Newbie
Posted: Thu Dec 10, 2009 8:13 pm
by vhenninot
Hello,
I'm using your - absolutely - AMAZING and WONDERFUL "All extension" scripts since a few weeks now..
Past 2 days i red wiki and forum a lot to learn how patching my firmware to make NFS automount at TV boot
Yesterday i take a big breath and patch my firmware... TV boot again but... NOTHING change...

No NFS ...
I read again the wiki and understand thtat patching is
ONLY the first step !!
http://wiki.samygo.tv/index.php?title=H ... CIFS/SAMBA
I thought that patching the FW was enought to make nfs automount !
Because .1 is the same title as the whole wiki page !

Is it possible to include All extension scripts in a specific patch for newbies to make nfs work at startup ?
I - may be - will try to create my own samygo boot script bu i'm frightened to do somthing wrong
Vincent
Re: samyGo Firmware patch for Newbies - special edition !
Posted: Thu Dec 10, 2009 10:32 pm
by arris69
vhenninot wrote:Hello,
...
I thought that patching the FW was enought to make nfs automount !
Because .1 is the same title as the whole wiki page !

Is it possible to include All extension scripts in a specific patch for newbies to make nfs work at startup ?
I - may be - will try to create my own samygo boot script bu i'm frightened to do somthing wrong
Vincent
hi, the python firmware patcher change the firmware to execute
but this file not exists, so you have to enable telnet and create this file.
with the contens described in wiki.
if you created this file (/mtd_rwarea/SamyGO.sh) and filled with the commands you need a
second file
and this file mounts your nfs shares (if you fill it with the commands from wiki and make it executable)
so if you won't write so many scripts (and make them executable with chmod), you can call
the start script for "SamyGO Extensions" (rcSGO) from /mtd_rwarea/SamyGO.sh
in each case you have to create the file
and
than you can call rcSGO from within
if you prefer to use the rcSGO script you also have to install "SamyGO All Extensions" to flash or usb stick
or in one of the other 4 locations where the script search for extensions
- /dtv/usb/sda/SamyGO -> usb-pen
- /dtv/usb/sda1/SamyGO -> usb-pen
- /mtd_tlib/SamyGO
- /mtd_tlib/swf/SamyGO
- /mtd_tlib/GGame/SamyGO -> default flash install location
- /mtd_down/SamyGO
- /mtd_wiselink/SamyGO
hth
arris
Re: samyGo Firmware patch for a Newbie
Posted: Tue Mar 16, 2010 10:58 am
by vhenninot
Hello...
I finaly find some time to try patching my TV (LE46B650 with T-CHLDEUC).
I successfuly :
- patch the FW with the Samygo patcher script,
- connect to the TV with telnet
- Create samygo.sh and mount.sh files with the content below
When i reboot i can directly access the TV with telnet ... but nothin mount...
Could you help me with my scripts files ?
I remove "# Alternatives of Samsung WiFi Link Stick" section in SamyGO.sh : is it a problem ?
I try NFS1="Videos" # NFS Share 1 (Media) with NFSS1="partageCVH" # NFS Server Share 1 (Media) but i'm not sure it's good...
("partageCVH is my NFS share on my QNAP NAS...
Please HELP...
Vincent
samygo.sh
Code: Select all
#!/bin/sh
# Enable Telnetd
mount -t devpts devpts /dev/pts
telnetd
sleep 20
# Open back-door for fixing boot-loop situations
sleep 20 # Allow USB stick to settle
USB="/dtv/usb/sda1" # USB mount-point
if [ -f $USB/usb.sh ];then
$USB/usb.sh # USB-File detected.
else
if [ -f /mtd_rwarea/mtd_rwarea.sh ];then
/mtd_rwarea/mtd_rwarea.sh # Run normal startup script
fi
if [ -f /mtd_rwarea/mount.sh ];then
/mtd_rwarea/mount.sh # Run mount script
fi
fi
exit
mount.sh
Code: Select all
#!/bin/sh
# If /mtd_rwarea/.nfs Exists then Mount NFS Shares on Virtual USB
# touch /mtd_rwarea/.nfs if you wish to use NFS Shares and mount on a Virtaul USB
if [ -f /mtd_rwarea/.nfs ];then
echo "Mounting NFS Shares on Virtual USB"
# Set NFS Settings
VUSB="/dtv/usb/sda4" # Your Virtual USB mount-point
NFSS="192.168.0.7" # NFS Server
NFS1="Videos" # NFS Share 1 (Media)
NFS2="Music" # NFS Share 2 (Music)
NFS3="Pictures" # NFS Share 3 (Pics)
NFSS1="partageCVH" # NFS Server Share 1 (Media)
NFSS2="partageCVH/Musique" # NFS Server Share 2 (Music)
NFSS3="partageCVH/Photos" # NFS Server Share 3 (Pics)
# Only Process if NFS Shares are not mounted
if [ `mount | grep -c $VUSB` == 0 ]; then
# Create Directory Structure for Virtual USB
echo "Creating Virtual USB Directory Structure"
mkdir -p $VUSB
mkdir -p $VUSB/$NFS1
mkdir -p $VUSB/$NFS2
mkdir -p $VUSB/$NFS3
echo "Mounting NFS Shares"
mount -o nolock $NFSS:/$NFSS1 $VUSB/$NFS1 -t nfs
mount -o nolock $NFSS:/$NFSS2 $VUSB/$NFS2 -t nfs
mount -o nolock $NFSS:/$NFSS3 $VUSB/$NFS3 -t nfs
# Append Virtual USB to log file. This Allows you to view the device in media.p
echo "Appending Virtual USB to log"
echo "[sdd]
Vendor : Linux
Product : Virtual USB
Serial : Q80VQLFL
Devpath : 4
Lun : 0
MountDir : /dtv/usb/sda4
FileSystem : vfat
" >> /dtv/usb/log
else
echo "NFS Shares already Mounted"
fi
fi
if [ -f /mtd_rwarea/.nfs-usb ];then
echo "Mounting NFS Shares on USB"
# Allow USB-stick to settle
sleep 20
# Set NFS Settings
VUSB="/dtv/usb/sda1" # Your Virtual USB mount-point
NFSS="192.168.0.7" # NFS Server
NFS1="Videos" # NFS Share 1 (Media)
NFS2="Music" # NFS Share 2 (Music)
NFS3="Pictures" # NFS Share 3 (Pics)
NFSS1="partageCVH" # NFS Server Share 1 (Media)
NFSS2="partageCVH/Musique" # NFS Server Share 2 (Music)
NFSS3="partageCVH/Photos" # NFS Server Share 3 (Pics)
# Only Process if NFS Shares are not mounted
if [ `mount | grep -c $VUSB` == 0 ]; then
# Create Directory Structure for Virtual USB
echo "Creating Virtual USB Directory Structure"
mkdir -p $VUSB
mkdir -p $VUSB/$NFS1
mkdir -p $VUSB/$NFS2
mkdir -p $VUSB/$NFS3
echo "Mounting NFS Shares"
mount -o nolock $NFSS:/$NFSS1 $VUSB/$NFS1 -t nfs
mount -o nolock $NFSS:/$NFSS2 $VUSB/$NFS2 -t nfs
mount -o nolock $NFSS:/$NFSS3 $VUSB/$NFS3 -t nfs
elsethe two files
echo "NFS Shares already Mounted"
fi
fi
if [ -f /mtd_rwarea/.nfs_unmount ];then
echo "Unmounted NFS Shares"
umount $VUSB/$NFS1
umount $VUSB/$NFS2
umount $VUSB/$NFS3
rm -Rf /dtv/usb/sda4
rm -Rf /mtd_rwarea/.nfs_unmount
fi
Re: samyGo Firmware patch for Newbies - special edition !
Posted: Tue Mar 16, 2010 11:19 am
by vhenninot
Well... I'm lost but i just found with telnet ont the TV that my share is correctly mounted in /dtv/usb/sda1/Videos, but not in the Pictures and Photos directories.
So there is something wrong with my share syntax in mount.sh ...
BUT why is there noting in the mediaplayer ?
Why mounting on sda1 ? i have no USB stick connected ?
please help !!!
Vincent
Re: samyGo Firmware patch for a Newbie
Posted: Tue Mar 16, 2010 1:42 pm
by vhenninot
I just realise that
- i have to create 3 shares on my NAS, for each content : done OK
- i could delete section with USB because virtual USB was working with All extension pseudo Game...
Here is my new mount.sh :
Code: Select all
#!/bin/sh
# If /mtd_rwarea/.nfs Exists then Mount NFS Shares on Virtual USB
# touch /mtd_rwarea/.nfs if you wish to use NFS Shares and mount on a Virtaul USB
if [ -f /mtd_rwarea/.nfs ];then
echo "Mounting NFS Shares on Virtual USB"
# Set NFS Settings
VUSB="/dtv/usb/sda4" # Your Virtual USB mount-point
NFSS="192.168.0.7" # NFS Server
NFS1="Videos" # NFS Share 1 (Media)
NFS2="Music" # NFS Share 2 (Music)
NFS3="Pictures" # NFS Share 3 (Pics)
NFSS1="Videos" # NFS Server Share 1 (Media)
NFSS2="Musique" # NFS Server Share 2 (Music)
NFSS3="Photos" # NFS Server Share 3 (Pics)
# Only Process if NFS Shares are not mounted
if [ `mount | grep -c $VUSB` == 0 ]; then
# Create Directory Structure for Virtual USB
echo "Creating Virtual USB Directory Structure"
mkdir -p $VUSB
mkdir -p $VUSB/$NFS1
mkdir -p $VUSB/$NFS2
mkdir -p $VUSB/$NFS3
echo "Mounting NFS Shares"
mount -o nolock $NFSS:/$NFSS1 $VUSB/$NFS1 -t nfs
mount -o nolock $NFSS:/$NFSS2 $VUSB/$NFS2 -t nfs
mount -o nolock $NFSS:/$NFSS3 $VUSB/$NFS3 -t nfs
# Append Virtual USB to log file. This Allows you to view the device in media.p
echo "Appending Virtual USB to log"
echo "[sdd]
Vendor : Linux
Product : Virtual USB
Serial : Q80VQLFL
Devpath : 4
Lun : 0
MountDir : /dtv/usb/sda4
FileSystem : vfat
" >> /dtv/usb/log
else
echo "NFS Shares already Mounted"
fi
fi
if [ -f /mtd_rwarea/.nfs_unmount ];then
echo "Unmounted NFS Shares"
umount $VUSB/$NFS1
umount $VUSB/$NFS2
umount $VUSB/$NFS3
rm -Rf /dtv/usb/sda4
rm -Rf /mtd_rwarea/.nfs_unmount
fi
But now, nothin mount ... no vUSB and nothing in TV directories with Telnet...
Where is the problem ??
Re: samyGo Firmware patch for a Newbie
Posted: Tue Mar 16, 2010 2:44 pm
by vhenninot
I forgot to touch .nfs in /mtd_rwarea/ (i only touch /mtd_rwarea/.nfs-usb)
Now i have my 3 shares mounted...
Code: Select all
192.168.0.7:/Videos 1441015104 854274728 586740376 59% /dtv/usb/sda4/Videos
192.168.0.7:/Musique 1441015104 854274728 586740376 59% /dtv/usb/sda4/Music
192.168.0.7:/Photos 1441015104 854274728 586740376 59% /dtv/usb/sda4/Pictures
But still NNOTHING in TV media player !

Re: samyGo Firmware patch for a Newbie
Posted: Tue Mar 16, 2010 7:11 pm
by erdem_ua
Looks like you are don't load Virtual USB kernel modules...
Re: samyGo Firmware patch for a Newbie
Posted: Tue Mar 16, 2010 8:29 pm
by vhenninot
Thanks for your reply, but i can't see how to do that in the wiki...
But All exentsion scripts do that well...
I found that post :
http://forum.samygo.tv/viewtopic.php?f= ... usb+#p3415
But is it correct for all TV model ?
How can we load VUSB kernel modules ?
Vincent
Re: samyGo Firmware patch for a Newbie
Posted: Wed Mar 17, 2010 4:20 pm
by edelfalke
Write this lines in mount.sh before mount your NFS:
Code: Select all
# Install VUSB
insmod /mtd_rwarea/modules/dummy_hcd.ko
sleep 5
insmod /mtd_rwarea/modules/g_file_storage.ko file=/mtd_rwarea/vusb.image
sleep 5
Also you have to copy Files dummy_hcd.ko and g_file_storage.ko to /mtd_rwarea/modules/
and vusb.image to /mtd_rwarea/
Re: samyGo Firmware patch for a Newbie
Posted: Wed Mar 17, 2010 7:11 pm
by vhenninot
Thanks for your answer !
I copied the 3 files add the following lines to mount.sh :
Code: Select all
insmod /mtd_rwarea/dummy_hcd.ko
sleep 3
insmod /mtd_rwarea/g_file_storage.ko file=/mtd_rwarea/vusb.image
sleep 5
The result is 2 USB drives in mediaplayer ???
One " File-Stor Gadget" for the vusb.image,
The second one have my share correctly mounted !
Code: Select all
[sda]
Vendor : Linux
Product : File-Stor Gadget
Serial : 3238204E6F76
Devpath : 5
Lun : 0
MountDir : /dtv/usb/sda1
FileSystem : vfat
[sdd]
Vendor : Linux
Product : Virtual USB
Serial : Q80VQLFL
Devpath : 4
Lun : 0
MountDir : /dtv/usb/sda4
FileSystem : vfat
Vincent