added more scripts for enabling debug messages in HV services
[linux_hv_scripts.git] / enable_sm_debugging.sh
blob027e4acbf6369260b98de13d16eba12f7b52f56d
1 #!/bin/bash
2 # /********************************************************
3 # Copyright (C) 2011 graf_chokolo <grafchokolo@googlemail.com>
4 # This is free software. You may redistribute copies of it
5 # under the terms of
6 # the GNU General Public License 2
7 # <http://www.gnu.org/licenses/gpl2.html>.
8 # There is NO WARRANTY, to the extent permitted by law.
10 # This script contains comments on how to use lv1_peek and lv1_poke in GameOS to achieve the same effect
11 # Please use it at your own discretion.
12 # credit goes to a.user (a.user@bk.ru)
14 # It also contains comments on how to disable the patch
15 # This script has been tested on 3.55 Kmeaw CFW
16 # ******************************************************/
18 perl -e 'printf "\x00\x00\x00\x03"' | dd of=/dev/ps3ram seek=$((0x0075b2c0)) bs=1 count=4
19 #GameOS patching statement using lv1_peek and lv1_poke
20 #val = lv1_peek(0x75b2c0);
21 #lv1_poke(0x75b2c0, ((val & 0xFFFFFFFF) | 0x0000000300000000UUL));
22 #enable printfk
23 perl -e 'printf "\x00\x00\x00\x01\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0075b4b0)) bs=1 count=8
24 #the following two lines are equivalent to the above statement
25 #perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0075b4b0)) bs=1 count=4
26 #perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0075b4b4)) bs=1 count=4
27 #GameOS patching statement using lv1_peek and lv1_poke
28 #lv1_poke(0x75b4b0, 0x0000000100000001ULL);
30 #How to disable?
31 #perl -e 'printf "\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0075b2c0)) bs=1 count=4
32 #perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0075b4b0)) bs=1 count=8
34 #display
35 #dd if=/dev/ps3ram skip=$((0x0075b2c0)) bs=1 count=8 | hexdump -C
36 #dd if=/dev/ps3ram skip=$((0x0075b4b0)) bs=1 count=8 | hexdump -C