added more scripts for enabling debug messages in HV servicesmaster
authorgraf_chokolo <[email protected]>
Wed, 23 Mar 2011 19:42:51 +0000 (23 20:42 +0100)
committergraf_chokolo <[email protected]>
Wed, 23 Mar 2011 19:42:51 +0000 (23 20:42 +0100)
enable_com_lib_dbg.sh [new file with mode: 0755]
enable_dm_dbg_hv_proc3.sh [new file with mode: 0755]
enable_printk_hv_proc3.sh [new file with mode: 0755]
enable_printk_hv_proc5.sh [new file with mode: 0755]
enable_sm_dbg_hv_proc6.sh [new file with mode: 0755]
enable_sm_debugging.sh [new file with mode: 0755]
enable_syscon_dbg_hv_proc5.sh [new file with mode: 0755]
enable_um_dbg.sh [new file with mode: 0755]
enable_usb_dongle_auth_dbg.sh [new file with mode: 0755]
enable_vtrm_dbg.sh [new file with mode: 0755]

diff --git a/enable_com_lib_dbg.sh b/enable_com_lib_dbg.sh
new file mode 100755 (executable)
index 0000000..23a2e73
--- /dev/null
@@ -0,0 +1,42 @@
+#!/bin/bash
+# /********************************************************
+# Copyright (C) 2011 graf_chokolo <[email protected]>
+# This is free software.  You may redistribute copies of it
+# under the terms of
+# the GNU General Public License 2
+# <http://www.gnu.org/licenses/gpl2.html>.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# This script contains comments on how to use lv1_peek and lv1_poke in GameOS to achieve the same effect
+# Please use it at your own discretion.
+# credit goes to a.user ([email protected])
+#
+# It also contains comments on how to disable the patch
+# This script has been tested on 3.55 Kmeaw CFW
+# ******************************************************/
+
+perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x03"' | dd of=/dev/ps3ram seek=$((0x0075b560)) bs=1 count=8
+#lv2_poke(0x0075b560, 0x0000000000000003UUL);
+
+#I've commented the following out since its value is already the desired value (see comments below)
+#perl -e 'printf "\x01"' | dd of=/dev/ps3ram seek=$((0x0075b55c)) bs=1 count=1
+#val =  lv1_peek(0x75b55c);
+#lv1_poke(0x75b55c, ((val & 0x00FFFFFFFFFFFFFFFFULL) | 0x010000000000000000ULL));
+
+#How to disable?
+#perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0075b560)) bs=1 count=8
+#perl -e 'printf "\x01"' | dd of=/dev/ps3ram seek=$((0x0075b55c)) bs=1 count=1
+
+#To display
+#dd if=/dev/ps3ram skip=$((0x0075b560)) bs=1 count=8 | hexdump -C
+#dd if=/dev/ps3ram skip=$((0x0075b55c)) bs=1 count=8 | hexdump -C
+
+#Comments
+#at 0x0075b55c prior to apply the patch
+# dd if=/dev/ps3ram skip=$((0x0075b55c)) bs=1 count=8 | hexdump -C
+#8+0 records in
+#8+0 records out
+#00000000  01 00 00 00 00 00 00 00                           |........|
+#00000008
+#8 bytes (8 B) copied, 0.000228199 s, 35.1 kB/s
+#End of comments
diff --git a/enable_dm_dbg_hv_proc3.sh b/enable_dm_dbg_hv_proc3.sh
new file mode 100755 (executable)
index 0000000..b652f8f
--- /dev/null
@@ -0,0 +1,43 @@
+#!/bin/bash
+# /********************************************************
+# Copyright (C) 2011 graf_chokolo <[email protected]>
+# This is free software.  You may redistribute copies of it
+# under the terms of
+# the GNU General Public License 2
+# <http://www.gnu.org/licenses/gpl2.html>.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# This script contains comments on how to use lv1_peek and lv1_poke in GameOS to achieve the same effect
+# Please use it at your own discretion.
+# credit goes to a.user ([email protected])
+#
+# It also contains comments on how to disable the patch
+# This script has been tested on 3.55 Kmeaw CFW
+# ******************************************************/
+
+#I commented out the first patch as the value is already at the desired level (See comments in the end)
+#perl -e 'printf "\x01"' | dd of=/dev/ps3ram seek=$((0x0008d8b8)) bs=1 count=1
+#val = lv1_peek(0x8d8b8);
+#lv1_poke(0x8d8b8, ((0x00FFFFFFFFFFFFFFULL & val) | 0x0100000000000000ULL));
+
+perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x03"' | dd of=/dev/ps3ram seek=$((0x0008d8c0)) bs=1 count=8
+#lv1_poke(0x8d8c0, 0x0000000000000003ULL);
+
+#How to disable
+#perl -e 'printf "\x00"' | dd of=/dev/ps3ram seek=$((0x0008d8b8)) bs=1 count=1
+#perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0008d8c0)) bs=1 count=8
+
+#To display
+#dd if=/dev/ps3ram skip=$((0x0008d8b8)) bs=1 count=8 | hexdump -C
+#dd if=/dev/ps3ram skip=$((0x0008d8c0)) bs=1 count=8 | hexdump -C
+
+#Comments
+#at 0x0008d8b8, prior to the patch, the value is at the desired level
+#dd if=/dev/ps3ram skip=$((0x0008d8b8)) bs=1 count=8 | hexdump -C
+#8+0 records in
+#8+0 records out
+#00000000  01 00 00 00 00 00 00 00                           |........|
+#00000008
+#8 bytes (8 B) copied, 0.000232222 s, 34.4 kB/s
+#End of Comments
+
diff --git a/enable_printk_hv_proc3.sh b/enable_printk_hv_proc3.sh
new file mode 100755 (executable)
index 0000000..df185c7
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/bash
+# /********************************************************
+# Copyright (C) 2011 graf_chokolo <[email protected]>
+# This is free software.  You may redistribute copies of it
+# under the terms of
+# the GNU General Public License 2
+# <http://www.gnu.org/licenses/gpl2.html>.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# This script contains comments on how to use lv1_peek and lv1_poke in GameOS to achieve the same effect
+# Please use it at your own discretion.
+# credit goes to a.user ([email protected])
+#
+# It also contains comments on how to disable the patch
+# This script has been tested on 3.55 Kmeaw CFW
+# ******************************************************/
+
+perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0008d940)) bs=1 count=4
+perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0008d944)) bs=1 count=4
+#This is the same as
+#perl -e 'printf "\x00\x00\x00\x01\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0008d940)) bs=1 count=8
+#lv1_poke(0x8d940, 0x0000000100000001ULL);
+
+#How to disable?
+#perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0008d940)) bs=1 count=8
+
+#To Display
+#dd if=/dev/ps3ram skip=$((0x0008d940)) bs=1 count=8 | hexdump -C
diff --git a/enable_printk_hv_proc5.sh b/enable_printk_hv_proc5.sh
new file mode 100755 (executable)
index 0000000..8513d24
--- /dev/null
@@ -0,0 +1,46 @@
+#!/bin/bash
+# /********************************************************
+# Copyright (C) 2011 graf_chokolo <[email protected]>
+# This is free software.  You may redistribute copies of it
+# under the terms of
+# the GNU General Public License 2
+# <http://www.gnu.org/licenses/gpl2.html>.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# This script contains comments on how to use lv1_peek and lv1_poke in GameOS to achieve the same effect
+# Please use it at your own discretion.
+# credit goes to a.user ([email protected])
+#
+# It also contains comments on how to disable the patch
+# This script has been tested on 3.55 Kmeaw CFW
+# ******************************************************/
+
+perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e70)) bs=1 count=4
+perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e74)) bs=1 count=4
+perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e78)) bs=1 count=4
+perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e7c)) bs=1 count=4
+#could be written as
+#perl -e 'printf "\x00\x00\x00\x01\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e70)) bs=1 count=8
+#perl -e 'printf "\x00\x00\x00\x01\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e78)) bs=1 count=8
+#or as one block
+#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
+#lv1_poke(0xe0e70, 0x0000000100000001ULL);
+#lv1_poke(0xe0e78, 0x0000000100000001ULL);
+
+#How to disable? (see comments in the end)
+#perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x000e0e70)) bs=1 count=8
+#perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e78)) bs=1 count=8
+
+#To display
+#dd if=/dev/ps3ram skip=$((0x000e0e70)) bs=1 count=8 | hexdump -C
+#dd if=/dev/ps3ram skip=$((0x000e0e78)) bs=1 count=8 | hexdump -C
+
+#Comments
+#At 0x000e0e7c, it's already at the desired value
+# dd if=/dev/ps3ram skip=$((0x000e0e78)) bs=1 count=8 | hexdump -C
+#8+0 records in
+#8+0 records out
+#00000000  00 00 00 00 00 00 00 01                           |........|
+#00000008
+#8 bytes (8 B) copied, 0.000228025 s, 35.1 kB/s
+#End of Comments
diff --git a/enable_sm_dbg_hv_proc6.sh b/enable_sm_dbg_hv_proc6.sh
new file mode 100755 (executable)
index 0000000..643269f
--- /dev/null
@@ -0,0 +1,64 @@
+#!/bin/bash
+# /********************************************************
+# Copyright (C) 2011 graf_chokolo <[email protected]>
+# This is free software.  You may redistribute copies of it
+# under the terms of
+# the GNU General Public License 2
+# <http://www.gnu.org/licenses/gpl2.html>.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# This script contains comments on how to use lv1_peek and lv1_poke in GameOS to achieve the same effect
+# Please use it at your own discretion.
+# credit goes to a.user ([email protected])
+#
+# It also contains comments on how to disable the patch
+# This script has been tested on 3.55 Kmeaw CFW
+# ******************************************************/
+
+# Setting ss.common.debug.level
+
+perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0075b4bc)) bs=1 count=4
+# val = lv1_peek(0x0075b4bc);
+# lv1_poke(0x0075b4bc, ((val & 0xFFFFFFFF) | 0x0000000100000000UUL));
+#perl -e 'printf "\x00\x00\x00\x01\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0075b4b8)) bs=1 count=8
+#lv1_poke(0x0075b4b8, 0x0000000100000001UUL);
+#perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0075b4b8)) bs=1 count=4
+#perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0075b4bc)) bs=1 count=4
+#dd if=/dev/ps3ram skip=$((0x0075b4b8)) bs=1 count=8 | hexdump -C
+
+# Setting ss.sb_mngr.debug.level
+
+perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0075b478)) bs=1 count=4
+#val = lv1_peek(0x0075b478);
+#lv1_poke(0x0075b478, ( (val & 0xFFFFFFFF) | 0x0000000100000000UUL))
+perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x03"' | dd of=/dev/ps3ram seek=$((0x0075b480)) bs=1 count=8
+#lv1_poke(0x0075b480, 0x0000000000000003UUL);
+
+#how to disable
+#perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0075b4b8)) bs=1 count=8
+#perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0075b480)) bs=1 count=8
+#
+
+#display
+#dd if=/dev/ps3ram skip=$((0x0075b478)) bs=1 count=8 | hexdump -C
+#dd if=/dev/ps3ram skip=$((0x0075b480)) bs=1 count=8 | hexdump -C
+#dd if=/dev/ps3ram skip=$((0x0075b478)) bs=1 count=8 | hexdump -C (this is relady the required value)
+#dd if=/dev/ps3ram skip=$((0x0075b480)) bs=1 count=8 | hexdump -C
+
+#Comments
+#Notice it's already \x00\x00\x00\x01 when do the following:
+#dd if=/dev/ps3ram skip=$((0x0075b478)) bs=1 count=8 | hexdump -C
+#8+0 records in
+#8+0 records out
+#00000000  00 00 00 01 00 00 00 00                           |........|
+#00000008
+#8 bytes (8 B) copied, 0.000231394 s, 34.6 kB/s
+#similarly at 0x0075b480
+#dd if=/dev/ps3ram skip=$((0x0075b480)) bs=1 count=8 | hexdump -C
+#8+0 records in
+#8+0 records out
+#00000000  00 00 00 00 00 00 00 00                           |........|
+#00000008
+#8 bytes (8 B) copied, 0.000229966 s, 34.8 kB/s
+#End of Comments
+
diff --git a/enable_sm_debugging.sh b/enable_sm_debugging.sh
new file mode 100755 (executable)
index 0000000..027e4ac
--- /dev/null
@@ -0,0 +1,36 @@
+#!/bin/bash
+# /********************************************************
+# Copyright (C) 2011 graf_chokolo <[email protected]>
+# This is free software.  You may redistribute copies of it
+# under the terms of
+# the GNU General Public License 2
+# <http://www.gnu.org/licenses/gpl2.html>.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# This script contains comments on how to use lv1_peek and lv1_poke in GameOS to achieve the same effect
+# Please use it at your own discretion.
+# credit goes to a.user ([email protected])
+#
+# It also contains comments on how to disable the patch
+# This script has been tested on 3.55 Kmeaw CFW
+# ******************************************************/
+
+perl -e 'printf "\x00\x00\x00\x03"' | dd of=/dev/ps3ram seek=$((0x0075b2c0)) bs=1 count=4
+#GameOS patching statement using lv1_peek and lv1_poke
+#val = lv1_peek(0x75b2c0);
+#lv1_poke(0x75b2c0, ((val & 0xFFFFFFFF) | 0x0000000300000000UUL));
+#enable printfk
+perl -e 'printf "\x00\x00\x00\x01\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0075b4b0)) bs=1 count=8
+#the following two lines are equivalent to the above statement
+#perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0075b4b0)) bs=1 count=4
+#perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0075b4b4)) bs=1 count=4
+#GameOS patching statement using lv1_peek and lv1_poke
+#lv1_poke(0x75b4b0, 0x0000000100000001ULL);
+
+#How to disable?
+#perl -e 'printf "\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0075b2c0)) bs=1 count=4
+#perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0075b4b0)) bs=1 count=8
+
+#display
+#dd if=/dev/ps3ram skip=$((0x0075b2c0)) bs=1 count=8 | hexdump -C
+#dd if=/dev/ps3ram skip=$((0x0075b4b0)) bs=1 count=8 | hexdump -C
diff --git a/enable_syscon_dbg_hv_proc5.sh b/enable_syscon_dbg_hv_proc5.sh
new file mode 100755 (executable)
index 0000000..af9e61c
--- /dev/null
@@ -0,0 +1,44 @@
+#!/bin/bash
+# /********************************************************
+# Copyright (C) 2011 graf_chokolo <[email protected]>
+# This is free software.  You may redistribute copies of it
+# under the terms of
+# the GNU General Public License 2
+# <http://www.gnu.org/licenses/gpl2.html>.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# This script contains comments on how to use lv1_peek and lv1_poke in GameOS to achieve the same effect
+# Please use it at your own discretion.
+# credit goes to a.user ([email protected])
+#
+# It also contains comments on how to disable the patch
+# This script has been tested on 3.55 Kmeaw CFW
+# ******************************************************/
+
+perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x03"' | dd of=/dev/ps3ram seek=$((0x000e0e38)) bs=1 count=8
+#lv1_poke(0xe0e38, 0x0000000000000003ULL);
+
+#I disabled the following patch as it's not needed (see comments below)
+#perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x000e0e30)) bs=1 count=4
+#val = lv1_peek(0xe0e30);
+#lv1_poke(0xe0e30, ((0xFFFFFFFF & val) | 0x0000000100000000ULL));
+
+#how to disable
+#perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x000e0e38)) bs=1 count=8
+#Don't apply this (See comments below)
+#perl -e 'printf "\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x000e0e30)) bs=1 count=4
+
+#to display
+# dd if=/dev/ps3ram skip=$((0x000e0e38)) bs=1 count=8 | hexdump -C
+# dd if=/dev/ps3ram skip=$((0x000e0e30)) bs=1 count=8 | hexdump -C
+
+#Comments
+#at 0x000e0e30 prior to the patch
+#dd if=/dev/ps3ram skip=$((0x000e0e30)) bs=1 count=8 | hexdump -C
+#00000000  00 00 00 01 00 00 00 00                           |........|
+#00000008
+#8+0 records in
+#8+0 records out
+#8 bytes (8 B) copied, 0.000230492 s, 34.7 kB/s
+#It's already the desired value
+#End of Comments
diff --git a/enable_um_dbg.sh b/enable_um_dbg.sh
new file mode 100755 (executable)
index 0000000..034117a
--- /dev/null
@@ -0,0 +1,44 @@
+#!/bin/bash
+# /********************************************************
+# Copyright (C) 2011 graf_chokolo <[email protected]>
+# This is free software.  You may redistribute copies of it
+# under the terms of
+# the GNU General Public License 2
+# <http://www.gnu.org/licenses/gpl2.html>.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# This script contains comments on how to use lv1_peek and lv1_poke in GameOS to achieve the same effect
+# Please use it at your own discretion.
+# credit goes to a.user ([email protected])
+#
+# It also contains comments on how to disable the patch
+# This script has been tested on 3.55 Kmeaw CFW
+# ******************************************************/
+
+perl -e 'printf "\x00\x00\x00\x03"' | dd of=/dev/ps3ram seek=$((0x0075b1e8)) bs=1 count=4
+
+#This second patch is commented out because of the comments in the end
+#perl -e 'printf "\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0075b1ec)) bs=1 count=4
+#This is equivalent to one statement
+#perl -e 'printf "\x00\x00\x00\x03\x00\x00\x00\x01"' | dd of=/dev/ps3ram seek=$((0x0075b1e8)) bs=1 count=8
+
+#How to disable?
+#perl -e 'printf "\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0075b1e8)) bs=1 count=4
+
+#To display to result
+#dd if=/dev/ps3ram skip=$((0x0075b1e8)) bs=1 count=8 | hexdump -C
+
+#comments
+#This was the result prior to apply the patch
+#dd if=/dev/ps3ram skip=$((0x0075b1e8)) bs=1 count=8 | hexdump -C
+#8+0 records in
+#8+0 records out
+#00000000  00 00 00 00 00 00 00 01                           |........|
+#00000008
+#8 bytes (8 B) copied, 0.000229226 s, 34.9 kB/s
+#Notice there is 1 in the end already
+#So I propose only first statement is necessary:
+#perl -e 'printf "\x00\x00\x00\x03"' | dd of=/dev/ps3ram seek=$((0x0075b1e8)) bs=1 count=4
+#val = lv1_peek(0x0075b1e8);
+#lv1_poke(0x0075b1e8, ((val & 0xFFFFFFFF) | 0x0000000300000000UUL));
+#End of comments
diff --git a/enable_usb_dongle_auth_dbg.sh b/enable_usb_dongle_auth_dbg.sh
new file mode 100755 (executable)
index 0000000..0b1e646
--- /dev/null
@@ -0,0 +1,35 @@
+#!/bin/bash
+# /********************************************************
+# Copyright (C) 2011 graf_chokolo <[email protected]>
+# This is free software.  You may redistribute copies of it
+# under the terms of
+# the GNU General Public License 2
+# <http://www.gnu.org/licenses/gpl2.html>.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# This script contains comments on how to use lv1_peek and lv1_poke in GameOS to achieve the same effect
+# Please use it at your own discretion.
+# credit goes to a.user ([email protected])
+#
+# It also contains comments on how to disable the patch
+# This script has been tested on 3.55 Kmeaw CFW
+# ******************************************************/
+
+perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x03"' | dd of=/dev/ps3ram seek=$((0x0075b070)) bs=1 count=8
+# lv1_poke(0x0075b070, 0x03);
+perl -e 'printf "\x01"' | dd of=/dev/ps3ram seek=$((0x0075b06E)) bs=1 count=1
+# val = lv1_peek(0x0075b06E);
+# lv1_poke(0x0075b06E, ((val & 0x00FFFFFFFFFFFFFFUUL) | 0x0100000000000000UUL));
+
+#How to disable?
+#perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0075b070)) bs=1 count=8
+#perl -e 'printf "\x00"' | dd of=/dev/ps3ram seek=$((0x0075b06E)) bs=1 count=1
+
+#To display
+# dd if=/dev/ps3ram skip=$((0x0075b070)) bs=1 count=8 | hexdump -C
+# dd if=/dev/ps3ram skip=$((0x0075b06E)) bs=1 count=8 | hexdump -C
+
+# comments
+# notice in both offsets, the original value there were zeroes.
+# so to disable, just simply set the value back to zero again
+# end comments
diff --git a/enable_vtrm_dbg.sh b/enable_vtrm_dbg.sh
new file mode 100755 (executable)
index 0000000..e3d283e
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/bash
+# /********************************************************
+# Copyright (C) 2011 graf_chokolo <[email protected]>
+# This is free software.  You may redistribute copies of it
+# under the terms of
+# the GNU General Public License 2
+# <http://www.gnu.org/licenses/gpl2.html>.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# This script contains comments on how to use lv1_peek and lv1_poke in GameOS to achieve the same effect
+# Please use it at your own discretion.
+# credit goes to a.user ([email protected])
+#
+# It also contains comments on how to disable the patch
+# This script has been tested on 3.55 Kmeaw CFW
+# ******************************************************/
+
+perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x03"' | dd of=/dev/ps3ram seek=$((0x0075b3d8)) bs=1 count=8
+#lv1_poke(0x0075b3d8, 0x0000000000000003UUL);
+perl -e 'printf "\x01"' | dd of=/dev/ps3ram seek=$((0x0075b3d0)) bs=1 count=1
+# val = lv1_peek(0x0075b3d0);
+# lv1_poke(0x0075b3d0, ((val & 0x00FFFFFFFFFFFFFFUUL) | 0x0100000000000000UL));
+
+#How to disable?
+#perl -e 'printf "\x00\x00\x00\x00\x00\x00\x00\x00"' | dd of=/dev/ps3ram seek=$((0x0075b3d8)) bs=1 count=8
+#perl -e 'printf "\x00"' | dd of=/dev/ps3ram seek=$((0x0075b3d0)) bs=1 count=1
+
+#display
+#dd if=/dev/ps3ram skip=$((0x0075b3d8)) bs=1 count=8 | hexdump -C
+#dd if=/dev/ps3ram skip=$((0x0075b3d0)) bs=1 count=8 | hexdump -C
+
+#comments
+# Looks like the second one is unnecessary, since it's already 0x01 at that position
+#dd if=/dev/ps3ram skip=$((0x0075b3d0)) bs=1 count=8 | hexdump -C
+#8+0 records in
+#8+0 records out
+#00000000  01 00 00 00 00 00 00 00                           |........|
+#00000008
+#8 bytes (8 B) copied, 0.000232811 s, 34.4 kB/s
+#end of comments