Difference between revisions of "Open backdoor for fixing bootloop situations"


From SamyGO
Jump to: navigation, search
Line 2: Line 2:
 
<br>There are two key steps that should be considered when hacking your image, to avoid such situations or at least to open a external "backdoor" to prevent the respective script from starting.
 
<br>There are two key steps that should be considered when hacking your image, to avoid such situations or at least to open a external "backdoor" to prevent the respective script from starting.
 
<br>
 
<br>
#Ensure that you send your scripts into the background when starting, by padding with a '''"&"'''. Your changes in /mtd_exe/rc.local should look like<br>export MAPLE_DEFAULT_PATH=/mtd_cmmlib/InfoLink/lib<br>export MAPLE_MANAGER_WIDGET_PATH=/mtd_down/widgets/manager<br>export MAPLE_NORMAL_WIDGET_PATH=/mtd_down/widgets/normal<br>export MAPLE_WIDGET_DATA_PATH=/mtd_down<br>export MAPLE_WIDGET_INCLUDE_PATH=/mtd_down/widgets/inc<br>export MAPLE_PLUGIN_DATA_PATH=/mtd_cmmlib/InfoLink/lib<br>export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mtd_cmmlib/YWidget_LIB<br>export KF_SLEEP_READ=-2<br>echo 30000 > /mtd_rwarea/DelayValue.txt<br>#touch /mtd_rwarea/DoPrintYahoo.txt<br>export KF_NO_INTERACTIVE=1<br>export KF_LOG=/dev/null''';/mtd_rwarea/rc.local&'''<br>cd /mtd_exe/<br><br>./exeDSP
+
== Patching your exe.img ==
#Include a check in your '''/mtd_rwarea/rc.local''' script, so that it will source and run a different set of commands, dependent on whether a specific file is detected on the USB-Drive or not. An example could look like:<br>#!/bin/sh<br>sleep 20 # Allow USB-stick to settle<br>USB="/dtv/usb/sda1" # Your USB mount-point<br>if [ -f $USB/usb.sh ];then<br>        . $USB/usb.sh # USB-File detected. Source and run this instead<br>else<br>        . /mtd_rwarea/mtd_rwarea.sh # Source and run "normal startup script"<br>fi<br>exit
+
*Ensure that you send your scripts into the background when starting, by padding with a '''"&"'''. Your changes in /mtd_exe/rc.local should look like:
 +
export MAPLE_DEFAULT_PATH=/mtd_cmmlib/InfoLink/lib
 +
export MAPLE_MANAGER_WIDGET_PATH=/mtd_down/widgets/manager
 +
export MAPLE_NORMAL_WIDGET_PATH=/mtd_down/widgets/normal
 +
export MAPLE_WIDGET_DATA_PATH=/mtd_down
 +
export MAPLE_WIDGET_INCLUDE_PATH=/mtd_down/widgets/inc
 +
export MAPLE_PLUGIN_DATA_PATH=/mtd_cmmlib/InfoLink/lib
 +
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mtd_cmmlib/YWidget_LIB
 +
export KF_SLEEP_READ=-2
 +
echo 30000 > /mtd_rwarea/DelayValue.txt
 +
#touch /mtd_rwarea/DoPrintYahoo.txt
 +
export KF_NO_INTERACTIVE=1
 +
export KF_LOG=/dev/null''';/mtd_rwarea/rc.local&'''
 +
cd /mtd_exe/  
 +
 +
./exeDSP
 +
== /mtd_rwarea/rc.local ==
 +
*Include a check in your '''/mtd_rwarea/rc.local''' script, so that it will source and run a different set of commands, dependent on whether a specific file is detected on the USB-Drive or not. An example could look like:
 +
#!/bin/sh<br>sleep 20 # Allow USB-stick to settle
 +
USB="/dtv/usb/sda1" # Your USB mount-point
 +
if [ -f $USB/usb.sh ];then
 +
        . $USB/usb.sh # USB-File detected. Source and run this instead
 +
else
 +
        . /mtd_rwarea/mtd_rwarea.sh # Source and run "normal startup script"
 +
fi
 +
exit

Revision as of 00:43, 4 October 2009

Some people have reported about a bootloop preventing the TV from starting through. The issue here often is, that the script invoked from within /mtd_exe/rc.local is getting stuck and preventing the exeDSP to start.
There are two key steps that should be considered when hacking your image, to avoid such situations or at least to open a external "backdoor" to prevent the respective script from starting.

Patching your exe.img

  • Ensure that you send your scripts into the background when starting, by padding with a "&". Your changes in /mtd_exe/rc.local should look like:
export MAPLE_DEFAULT_PATH=/mtd_cmmlib/InfoLink/lib
export MAPLE_MANAGER_WIDGET_PATH=/mtd_down/widgets/manager
export MAPLE_NORMAL_WIDGET_PATH=/mtd_down/widgets/normal
export MAPLE_WIDGET_DATA_PATH=/mtd_down
export MAPLE_WIDGET_INCLUDE_PATH=/mtd_down/widgets/inc
export MAPLE_PLUGIN_DATA_PATH=/mtd_cmmlib/InfoLink/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mtd_cmmlib/YWidget_LIB
export KF_SLEEP_READ=-2
echo 30000 > /mtd_rwarea/DelayValue.txt
#touch /mtd_rwarea/DoPrintYahoo.txt
export KF_NO_INTERACTIVE=1
export KF_LOG=/dev/null;/mtd_rwarea/rc.local&
cd /mtd_exe/ 

./exeDSP

/mtd_rwarea/rc.local

  • Include a check in your /mtd_rwarea/rc.local script, so that it will source and run a different set of commands, dependent on whether a specific file is detected on the USB-Drive or not. An example could look like:
#!/bin/sh
sleep 20 # Allow USB-stick to settle USB="/dtv/usb/sda1" # Your USB mount-point if [ -f $USB/usb.sh ];then . $USB/usb.sh # USB-File detected. Source and run this instead else . /mtd_rwarea/mtd_rwarea.sh # Source and run "normal startup script" fi exit