added more scripts for enabling debug messages in HV services
[linux_hv_scripts.git] / enable_printk_hv_proc5.sh
blob8513d24ef6b47d2c140dc2085c0f120f34595390
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\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e70)) bs=1 count=4
19 perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e74)) bs=1 count=4
20 perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e78)) bs=1 count=4
21 perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e7c)) bs=1 count=4
22 #could be written as
23 #perl -e 'printf "\x00\x00\x00\x01\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e70)) bs=1 count=8
24 #perl -e 'printf "\x00\x00\x00\x01\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e78)) bs=1 count=8
25 #or as one block
26 #perl -e 'printf "\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e70)) bs=1 count=16
27 #lv1_poke(0xe0e70, 0x0000000100000001ULL);
28 #lv1_poke(0xe0e78, 0x0000000100000001ULL);
30 #How to disable? (see comments in the end)
31 #perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x000e0e70)) bs=1 count=8
32 #perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e78)) bs=1 count=8
34 #To display
35 #dd if=/dev/ps3ram skip=$((0x000e0e70)) bs=1 count=8 | hexdump -C
36 #dd if=/dev/ps3ram skip=$((0x000e0e78)) bs=1 count=8 | hexdump -C
38 #Comments
39 #At 0x000e0e7c, it's already at the desired value
40 # dd if=/dev/ps3ram skip=$((0x000e0e78)) bs=1 count=8 | hexdump -C
41 #8+0 records in
42 #8+0 records out
43 #00000000 00 00 00 00 00 00 00 01 |........|
44 #00000008
45 #8 bytes (8 B) copied, 0.000228025 s, 35.1 kB/s
46 #End of Comments