samyGo Firmware patch for a Newbie

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

vhenninot
Posts: 14
Joined: Tue Nov 17, 2009 2:26 pm

samyGo Firmware patch for a Newbie

Post by vhenninot »

Hello,

I'm using your - absolutely - AMAZING and WONDERFUL "All extension" scripts since a few weeks now..
:D

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...
:oops: 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
Last edited by vhenninot on Tue Mar 16, 2010 11:30 am, edited 1 time in total.
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: samyGo Firmware patch for Newbies - special edition !

Post 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

Code: Select all

/mtd_rwarea/SamyGO.sh
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

Code: Select all

/mtd_rwarea/mount.sh
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

Code: Select all

/mtd_rwarea/SamyGO.sh
and

Code: Select all

chmod 755 /mtd_rwarea/SamyGO.sh
than you can call rcSGO from within

Code: Select all

<where you have copied>/rcSGO &
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 :roll:
  • /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
vhenninot
Posts: 14
Joined: Tue Nov 17, 2009 2:26 pm

Re: samyGo Firmware patch for a Newbie

Post 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
Last edited by vhenninot on Tue Mar 16, 2010 11:31 am, edited 1 time in total.
vhenninot
Posts: 14
Joined: Tue Nov 17, 2009 2:26 pm

Re: samyGo Firmware patch for Newbies - special edition !

Post 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
vhenninot
Posts: 14
Joined: Tue Nov 17, 2009 2:26 pm

Re: samyGo Firmware patch for a Newbie

Post 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 ??
Last edited by vhenninot on Tue Mar 16, 2010 9:06 pm, edited 2 times in total.
vhenninot
Posts: 14
Joined: Tue Nov 17, 2009 2:26 pm

Re: samyGo Firmware patch for a Newbie

Post 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 !
:?:
User avatar
erdem_ua
SamyGO Admin
Posts: 3126
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: samyGo Firmware patch for a Newbie

Post by erdem_ua »

Looks like you are don't load Virtual USB kernel modules...
vhenninot
Posts: 14
Joined: Tue Nov 17, 2009 2:26 pm

Re: samyGo Firmware patch for a Newbie

Post 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
edelfalke
Posts: 81
Joined: Sun Jan 10, 2010 12:29 pm

Re: samyGo Firmware patch for a Newbie

Post 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/
vhenninot
Posts: 14
Joined: Tue Nov 17, 2009 2:26 pm

Re: samyGo Firmware patch for a Newbie

Post 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
Last edited by vhenninot on Wed Mar 17, 2010 7:40 pm, edited 1 time in total.

Post Reply

Return to “[B] Support”