added more scripts for enabling debug messages in HV services
[linux_hv_scripts.git] / enable_vtrm_dbg.sh
blobe3d283e2b5e1168151e7a5bdda414e6109b13813
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=$((0x0075b3d8)) bs=1 count=8
19 #lv1_poke(0x0075b3d8, 0x0000000000000003UUL);
20 perl -e 'printf "\x01"' | dd of=/dev/ps3ram seek=$((0x0075b3d0)) bs=1 count=1
21 # val = lv1_peek(0x0075b3d0);
22 # lv1_poke(0x0075b3d0, ((val & 0x00FFFFFFFFFFFFFFUUL) | 0x0100000000000000UL));
24 #How to disable?
25 #perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0075b3d8)) bs=1 count=8
26 #perl -e 'printf "\x00"' | dd of=/dev/ps3ram seek=$((0x0075b3d0)) bs=1 count=1
28 #display
29 #dd if=/dev/ps3ram skip=$((0x0075b3d8)) bs=1 count=8 | hexdump -C
30 #dd if=/dev/ps3ram skip=$((0x0075b3d0)) bs=1 count=8 | hexdump -C
32 #comments
33 # Looks like the second one is unnecessary, since it's already 0x01 at that position
34 #dd if=/dev/ps3ram skip=$((0x0075b3d0)) bs=1 count=8 | hexdump -C
35 #8+0 records in
36 #8+0 records out
37 #00000000 01 00 00 00 00 00 00 00 |........|
38 #00000008
39 #8 bytes (8 B) copied, 0.000232811 s, 34.4 kB/s
40 #end of comments