Access NFS share UE40B7000 + Autostart Apps

General Forum for talking area for B series TVs.

User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Access NFS share UE40B7000 + Autostart Apps

Post by juusso »

Easiest way is:
  1. edit 90_90_injectso.init and write proper path to your games you need to start
  2. add samygo extensions to autostart (needed to have /mtd_rwarea/SamyGO.sh)
1. Edit injectso like this:
original piece of code (you have to change one row libraries=)

Code: Select all

### begin configure me
# see description at: http://sourceforge.net/apps/phpbb/samygo/viewtopic.php?f=6&t=862&start=0
# libraries: absolute path of libraries to be loaded
#	     like "/full/path/to/load_custom_module1.so /full/path/to/load_custom_module2.so"
#            there can be several, separated spaces!!
#            this script requires paths-names WITHOUT spaces
libraries="NOTHING" # add your libraries here

### end configure me
this is my working example:

Code: Select all

libraries="/mtd_tlib/GGame/channelinfo/loader.so /mtd_tlib/GGame/ftp/telnet.so /mtd_tlib/GGame/BBB/loader.so /mtd_tlib/GGame/Remote/loader.so /mtd_tlib/GGame/SamyApp/loader.so" # add your libraries here 
2. If you use patched firmware whith advanced start option (you`ve chosen a ), then your SamyGO.sh could look like:

Code: Select all

#!/bin/sh
#====================================================================
# Enable Telnetd
#====================================================================
if [ `cat /proc/mounts | grep -c "/dev/pts"` -lt "1" ] ; then
        echo "telnetd Enabled"
             mount -t devpts devpts /dev/pts
             telnetd
     else
        echo "/dev/pts is mounted"
fi

sleep 10

if [ -f /mtd_tlib/GGame/SamyGO/rcSGO ]; then
echo "extensions found" > /mtd_swu/SGO_status
/mtd_tlib/GGame/SamyGO/rcSGO /mtd_tlib/GGame/SamyGO > /mtd_swu/rcSGO_out 2>&1 &
else
echo "SamyGO rcSGO not found!" > /mtd_swu/SGO_failed
fi
Use notepad++ to edit scripts, don`t use winword or notepad included to windows, use ANSI encoding to save your scripts.
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
ukbilleh
Posts: 25
Joined: Sat May 11, 2013 9:28 am

Re: Access NFS share UE40B7000 + Autostart Apps

Post by ukbilleh »

Thanks for the reply juuso but I'm having trouble understanding exactly what I need to do.

When I originally patched my firmware I patched it with the telnet function. I re a new firmware to this morning using the advanced mode. Do I now just write this to the tv or do I have to modify anything else on it?

I am also wondering where the samygo.sh file comes from. Do I have to create this file in notepad++ and fill it with the exact code you gave me? Do I then put samygo.sh in the root of my USB outside the samygo extensions folder?

One last thing I'm a bit confused about mounting the libraries. Could you show me the code to load samygo extensions and the SamyGO DCA module?

I take it would look something like this:

Code: Select all

libraries="/mtd_tlib/GGame/SamyApp/loader.so /mtd_tlib/CChildren/????" # add your libraries here
thankyou juuso :)
ukbilleh
Posts: 25
Joined: Sat May 11, 2013 9:28 am

Re: Access NFS share UE40B7000 + Autostart Apps

Post by ukbilleh »

ok here is what I'm about to do (I hope I get this right) :)

I created a new patched firmware and selected the 'a' option. I've put this on a usb and will write it to the tv

I added "/mtd_tlib/GGame/SamyApp/loader.so" (because I'm not sure what I need to add in to autostart the DCA app) to my 90_90_injectso.init file and changed the file name from 90_90_injectso.init.dis to 90_90_injectso.init

I opened notepad++ changed the encoding to ANSI and copied the script below in then saved it as a .sh file naming it SamyGO.sh and I saved this to the root of my USB.

Code: Select all

#====================================================================
# Enable Telnetd
#====================================================================
if [ `cat /proc/mounts | grep -c "/dev/pts"` -lt "1" ] ; then
        echo "telnetd Enabled"
             mount -t devpts devpts /dev/pts
             telnetd
     else
        echo "/dev/pts is mounted"
fi

sleep 10

if [ -f /mtd_tlib/GGame/SamyGO/rcSGO ]; then
echo "extensions found" > /mtd_swu/SGO_status
/mtd_tlib/GGame/SamyGO/rcSGO /mtd_tlib/GGame/SamyGO > /mtd_swu/rcSGO_out 2>&1 &
else
echo "SamyGO rcSGO not found!" > /mtd_swu/SGO_failed
fi
Am I about to break my tv? I hope not :)

I'll give this a go :) any input from you juuso would be great as I think you may have to hold my hand through this lol
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Access NFS share UE40B7000 + Autostart Apps

Post by juusso »

everything right. Dont forget to give 755 right for your SamyGO.sh (use ftp, change attributes), else it won`t start.

Ah, where is your at the top of file!?

Code: Select all

#!/bin/sh
proper file should look like

Code: Select all

    
#!/bin/sh

    #====================================================================
    # Enable Telnetd
    #====================================================================
    if [ `cat /proc/mounts | grep -c "/dev/pts"` -lt "1" ] ; then
            echo "telnetd Enabled"
                 mount -t devpts devpts /dev/pts
                 telnetd
         else
            echo "/dev/pts is mounted"
    fi

    sleep 10

    if [ -f /mtd_tlib/GGame/SamyGO/rcSGO ]; then
    echo "extensions found" > /mtd_swu/SGO_status
    /mtd_tlib/GGame/SamyGO/rcSGO /mtd_tlib/GGame/SamyGO > /mtd_swu/rcSGO_out 2>&1 &
    else
    echo "SamyGO rcSGO not found!" > /mtd_swu/SGO_failed
    fi
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
ukbilleh
Posts: 25
Joined: Sat May 11, 2013 9:28 am

Re: Access NFS share UE40B7000 + Autostart Apps

Post by ukbilleh »

Sorry this is the exact copy from my samygo.sh file I think I missed it when copying to quotes here.

Code: Select all

#!/bin/sh
#====================================================================
# Enable Telnetd
#====================================================================
if [ `cat /proc/mounts | grep -c "/dev/pts"` -lt "1" ] ; then
        echo "telnetd Enabled"
             mount -t devpts devpts /dev/pts
             telnetd
     else
        echo "/dev/pts is mounted"
fi

sleep 10

if [ -f /mtd_tlib/GGame/SamyGO/rcSGO ]; then
echo "extensions found" > /mtd_swu/SGO_status
/mtd_tlib/GGame/SamyGO/rcSGO /mtd_tlib/GGame/SamyGO > /mtd_swu/rcSGO_out 2>&1 &
else
echo "SamyGO rcSGO not found!" > /mtd_swu/SGO_failed
fi
Ok I have flashed tv ok but when it starts it doesn't autoload samygo.sh or dca module :( I think it is possibly because of missing permissions.

I will see if there is an ftp app on samygo website and maybe ftp in via filezilla ?? and change attributes through this?

Once this is working ok and samy go extensions is loading correctly on startup will my NFS share mount automatically? Normally when I start samygo extensions the samygo virtual usb mounts and I can access the nfs share on my nas. Will it work this way when autoloading?

Also what is the library string in 90_90_injectso.init for DCA module under the children category? I can't figure it out :(

thanks juuso
ukbilleh
Posts: 25
Joined: Sat May 11, 2013 9:28 am

Re: Access NFS share UE40B7000 + Autostart Apps

Post by ukbilleh »

hmm cant seem to ftp into the tv :/ I get this:

Status: Connecting to 192.168.0.3:21...
Status: Connection established, waiting for welcome message...
Response: 220 Welcome to SamyGO.
Command: USER root
Response: 331 Password please.
Command: PASS
Response: 530 Login incorrect.
Error: Critical error
Error: Could not connect to server

I'm putting the user as root and the password is blank. That's correct isn't it?
ukbilleh
Posts: 25
Joined: Sat May 11, 2013 9:28 am

Re: Access NFS share UE40B7000 + Autostart Apps

Post by ukbilleh »

Yahar!!! I managed to login :)

user: root
pass: SamyGO (case sensitive)

ok I'll try stuff now
ukbilleh
Posts: 25
Joined: Sat May 11, 2013 9:28 am

Re: Access NFS share UE40B7000 + Autostart Apps

Post by ukbilleh »

ok I managed to ftp in via filezilla but the only folders present on the tv's side are:

..
MUSIC
dead.letter

and that's it. Am I missing something?
ukbilleh
Posts: 25
Joined: Sat May 11, 2013 9:28 am

Re: Access NFS share UE40B7000 + Autostart Apps

Post by ukbilleh »

SpoilerShow
Image
ukbilleh
Posts: 25
Joined: Sat May 11, 2013 9:28 am

Re: Access NFS share UE40B7000 + Autostart Apps

Post by ukbilleh »

ok so I tried again. restarted tv and run the ftp server app from the usb stick then logged in and now I have a full file directory as below:
SpoilerShow
Image
I have modified the permission on the samygo.sh file (still in the root of my usb) to 755 and restarted tv but samygo / dca still do not start automatically. any ideas?

Post Reply

Return to “[B] General”