Difference between revisions of "Open backdoor for fixing bootloop situations"
(→/mtd_rwarea/rc.local - /mtd_rwarea/SamyGO.sh missed on) |
(→/mtd_rwarea/SamyGO.sh) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | Some people have reported about a bootloop preventing the TV from starting through. The issue here often is, that the script invoked from within '''/ | + | 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_rwarea/SamyGO.sh''' is getting stuck and preventing the exeDSP to start. |
<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> | ||
== Patching your exe.img == | == Patching your exe.img == | ||
− | *Ensure that you send your scripts into the background when starting, by padding with a '''"&"'''. Your changes in / | + | *Ensure that you send your scripts into the background when starting, by padding with a '''"&"'''. Your changes in /mtd_rwarea/SamyGO.sh should look like: |
export MAPLE_DEFAULT_PATH=/mtd_cmmlib/InfoLink/lib | export MAPLE_DEFAULT_PATH=/mtd_cmmlib/InfoLink/lib | ||
export MAPLE_MANAGER_WIDGET_PATH=/mtd_down/widgets/manager | export MAPLE_MANAGER_WIDGET_PATH=/mtd_down/widgets/manager | ||
Line 15: | Line 15: | ||
#touch /mtd_rwarea/DoPrintYahoo.txt | #touch /mtd_rwarea/DoPrintYahoo.txt | ||
export KF_NO_INTERACTIVE=1 | export KF_NO_INTERACTIVE=1 | ||
− | export KF_LOG=/dev/null''';/mtd_rwarea/ | + | export KF_LOG=/dev/null''';/mtd_rwarea/SamyGO.sh&''' |
cd /mtd_exe/ | cd /mtd_exe/ | ||
Line 29: | Line 29: | ||
echo "USB-File detected" | echo "USB-File detected" | ||
$USB/usb.sh | $USB/usb.sh | ||
+ | exit | ||
else | else | ||
echo "Running Normal SamyGO Startup" | echo "Running Normal SamyGO Startup" | ||
− | |||
fi | fi | ||
+ | |||
+ | #"Your Lines Here" | ||
+ | |||
exit | exit |
Latest revision as of 16:44, 8 January 2010
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_rwarea/SamyGO.sh 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_rwarea/SamyGO.sh 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/SamyGO.sh& cd /mtd_exe/ ./exeDSP
/mtd_rwarea/SamyGO.sh
- Include a check in your /mtd_rwarea/SamyGO.sh 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
# 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 exit else echo "Running Normal SamyGO Startup" fi #"Your Lines Here" exit