added more scripts for enabling debug messages in HV services
[linux_hv_scripts.git] / enable_com_lib_dbg.sh
blob23a2e7385bca9661ee906f6e79901bc0220497b5
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=$((0x0075b560)) bs=1 count=8
19 #lv2_poke(0x0075b560, 0x0000000000000003UUL);
21 #I've commented the following out since its value is already the desired value (see comments below)
22 #perl -e 'printf "\x01"' | dd of=/dev/ps3ram seek=$((0x0075b55c)) bs=1 count=1
23 #val = lv1_peek(0x75b55c);
24 #lv1_poke(0x75b55c, ((val & 0x00FFFFFFFFFFFFFFFFULL) | 0x010000000000000000ULL));
26 #How to disable?
27 #perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0075b560)) bs=1 count=8
28 #perl -e 'printf "\x01"' | dd of=/dev/ps3ram seek=$((0x0075b55c)) bs=1 count=1
30 #To display
31 #dd if=/dev/ps3ram skip=$((0x0075b560)) bs=1 count=8 | hexdump -C
32 #dd if=/dev/ps3ram skip=$((0x0075b55c)) bs=1 count=8 | hexdump -C
34 #Comments
35 #at 0x0075b55c prior to apply the patch
36 # dd if=/dev/ps3ram skip=$((0x0075b55c)) 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.000228199 s, 35.1 kB/s
42 #End of comments