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
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; } &
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
Is everything right?