added more scripts for enabling debug messages in HV services
[linux_hv_scripts.git] / enable_syscon_dbg_hv_proc5.sh
blobaf9e61cded193c7ca0dc5a4b706e21f5fcef7977
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\x00\x00\x00\x00\x03"' | dd of=/dev/ps3ram seek=$((0x000e0e38)) bs=1 count=8
19 #lv1_poke(0xe0e38, 0x0000000000000003ULL);
21 #I disabled the following patch as it's not needed (see comments below)
22 #perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e30)) bs=1 count=4
23 #val = lv1_peek(0xe0e30);
24 #lv1_poke(0xe0e30, ((0xFFFFFFFF & val) | 0x0000000100000000ULL));
26 #how to disable
27 #perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x000e0e38)) bs=1 count=8
28 #Don't apply this (See comments below)
29 #perl -e 'printf "\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x000e0e30)) bs=1 count=4
31 #to display
32 # dd if=/dev/ps3ram skip=$((0x000e0e38)) bs=1 count=8 | hexdump -C
33 # dd if=/dev/ps3ram skip=$((0x000e0e30)) bs=1 count=8 | hexdump -C
35 #Comments
36 #at 0x000e0e30 prior to the patch
37 #dd if=/dev/ps3ram skip=$((0x000e0e30)) bs=1 count=8 | hexdump -C
38 #00000000 00 00 00 01 00 00 00 00 |........|
39 #00000008
40 #8+0 records in
41 #8+0 records out
42 #8 bytes (8 B) copied, 0.000230492 s, 34.7 kB/s
43 #It's already the desired value
44 #End of Comments