added more scripts for enabling debug messages in HV services
[linux_hv_scripts.git] / enable_dm_dbg_hv_proc3.sh
blobb652f8f9a3dacec027ba29b399aa22b9a2ca0177
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 #I commented out the first patch as the value is already at the desired level (See comments in the end)
19 #perl -e 'printf "\x01"' | dd of=/dev/ps3ram seek=$((0x0008d8b8)) bs=1 count=1
20 #val = lv1_peek(0x8d8b8);
21 #lv1_poke(0x8d8b8, ((0x00FFFFFFFFFFFFFFULL & val) | 0x0100000000000000ULL));
23 perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x03"' | dd of=/dev/ps3ram seek=$((0x0008d8c0)) bs=1 count=8
24 #lv1_poke(0x8d8c0, 0x0000000000000003ULL);
26 #How to disable
27 #perl -e 'printf "\x00"' | dd of=/dev/ps3ram seek=$((0x0008d8b8)) bs=1 count=1
28 #perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0008d8c0)) bs=1 count=8
30 #To display
31 #dd if=/dev/ps3ram skip=$((0x0008d8b8)) bs=1 count=8 | hexdump -C
32 #dd if=/dev/ps3ram skip=$((0x0008d8c0)) bs=1 count=8 | hexdump -C
34 #Comments
35 #at 0x0008d8b8, prior to the patch, the value is at the desired level
36 #dd if=/dev/ps3ram skip=$((0x0008d8b8)) bs=1 count=8 | hexdump -C
37 #8+0 records in
38 #8+0 records out
39 #00000000 01 00 00 00 00 00 00 00 |........|
40 #00000008
41 #8 bytes (8 B) copied, 0.000232222 s, 34.4 kB/s
42 #End of Comments