Autoloader for UE40B8000XW

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

albatim
Posts: 3
Joined: Tue Mar 18, 2014 4:29 pm

Autoloader for UE40B8000XW

Post by albatim » Wed Mar 19, 2014 9:15 pm

HI guys,
first of all let me congratulate with all of you for your huge work. Well done.

I' ve read almost the entire forum section. I didn't understand some procedures regarding autostart. I' m quiet expert in win and vb programming, but I' m not much familiar with linux/unix. (no problem to study ;) )

I've be able to successfully do following steps on my UE40B8000XW T-CHU7DEUC:

1) downgraded firmware to 3000.g with ffb hack (previous one was 3002.)
2) uploaded some apps to game content and played it fine
3) ftp connect
4) telnet with putty
5) patched firmware with Firmware Patcher Using "Advanced Mode". Not already flashed to TV

Now I' d like to autostart some of them (typically channelinfo and PVR+). Before and to prevent any brick, I need a confirm to the folling procedure I'll do ONLY WHEN I'LL FEEL VERY SURE.. In the exact order:

6) flash patched firmware in tv and reboot
7) create and edit with notepad files Samygo.sh and gdbtrick.sh with the following code:

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
        echo "USB-File detected"
        $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
   
  if [ -f /mtd_rwarea/gdbtrick.sh ];then
   echo "Running SamyGO App"
   /mtd_rwarea/gdbtrick.sh& # Run samygo app
  fi

fi


exit
gdbtrick.sh:

Code: Select all

#!/bin/sh

### begin configure me
# gdb_binary: where your gdb binary resides
gdb_binary=/mtd_rwarea/gdb

# gdb_commands: this is a temporary file where gdb commands are stored
gdb_commands=/mtd_rwarea/gdbtrick.gdb

# gdb_delay: gdb will be scheduled to run after $gdb_delay seconds
#            this is for letting exeDSP to settle down at TV startup
gdb_delay=5

# libraries: absolute path of libraries to be loaded
#            there can be several, separated spaces!!
#            this script requires paths WITHOUT spaces
libraries="/mtd_tlib/GGame/PVRplus/loader.so /mtd_tlib/GGame/SamyGO_ChannelInfo/loader.so" 


### end configure me

exeDSP_PID=$(pidof exeDSP)
temp='attach '$exeDSP_PID'\n'

i=0
for l in $libraries
do
      if [ -e "$l" ] ;then
                temp=$temp'call dlopen("'$l'", 2)\n'
                let i++
                temp=$temp'call dlsym($'$i', "Game_Main")\n'
                let i++
                temp=$temp'call $'$i'("'${l%/*}/'", 0)\n'
                let i++
                temp=$temp'call dlclose($'$((i-2))')\n'
                let i++
       fi
done
temp=$temp'detach\n' 

echo -e 'The following commands:\n---\n'$temp'---\nwill be executed by '$gdb_binary' in '$gdb_delay' secs!!\n'

echo -e $temp >$gdb_commands
{ sleep $gdb_delay; $gdb_binary -batch -x $gdb_commands; rm $gdb_commands; } &
Note: Please confirm the possibility to notepad editing and ftp copying pre-saved file, otherwise I'll do everything with vi

8) ftp copy:
samygo.sh -> /mtd_rwarea/SamyGO.sh
gdbtrick.sh -> /mtd_rwarea/gdbtrick.sh
gdb -> /mtd_rwarea/gdb/gdb (gdb taken from http://www.box.net/shared/d3uuviu0qu)

pvr+ and channellinfo in /mtd_tlib/GGame

9) change permission with:

Code: Select all

$ chmod 755 /mtd_rwarea/SamyGO.sh

Code: Select all

$ chmod 755 /mtd_rwarea/gdbtrick.sh
10) Reboot TV and cross fingers :)

Is everything right?

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

Re: Autoloader for UE40B8000XW

Post by juusso » Wed Mar 19, 2014 9:24 pm

do not use notepad for editing scripts! never!
n++ or ultrapad are ok, set ansi...
or vi, if you liked it :-)
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

albatim
Posts: 3
Joined: Tue Mar 18, 2014 4:29 pm

Re: Autoloader for UE40B8000XW

Post by albatim » Wed Mar 19, 2014 9:33 pm

Is there a particular reason or is it only a choice? (I want to learn something!)

Anyway, except notepad, is the procedure all right?

User avatar
InuYasha
Posts: 11
Joined: Fri May 30, 2014 3:54 pm
Location: void

Re: Autoloader for UE40B8000XW

Post by InuYasha » Fri May 30, 2014 5:22 pm

This is probably due to CRLF \r\n difference between unix and wandows text files.

PS: so the 3000.2 firmware is bad and unpatchable???

Post Reply

Return to “[B] Support”