diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-03-20 22:32:38 +0000 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-03-20 22:32:38 +0000 |
commit | 9e90b08349737f55f1bb91ba8a0dda7b5070ff8e (patch) | |
tree | d079d1fc5a6124f553b64c8704e7332424d24005 | |
parent | 789e39cd9678058494bd4150b8307eeaf9795557 (diff) |
added a15 and a7 modes
-rwxr-xr-x | prepare-device.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/prepare-device.sh b/prepare-device.sh index 6f0b4fc..abb30b7 100755 --- a/prepare-device.sh +++ b/prepare-device.sh @@ -31,4 +31,39 @@ then adb -s $IPADDR:5555 shell "cat /sys/kernel/bL_switcher/active" fi +if [ $1 == 'a7only' ] +then + # disable IKS + IPADDR=`cat IPADDR` + echo "Disable IKS for $IPADDR" + adb connect $IPADDR:5555 + adb devices + echo "Waiting for device" + adb wait-for-device + echo "adb -s $IPADDR:5555 shell \"echo 0 > /sys/kernel/bL_switcher/active\"" + adb -s $IPADDR:5555 shell "echo 0 > /sys/kernel/bL_switcher/active" + adb -s $IPADDR:5555 shell "cat /sys/kernel/bL_switcher/active" + echo "Disable A15 cluster" + adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu3/online" + adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu4/online" +fi + +if [ $1 == 'a15only' ] +then + # disable IKS + IPADDR=`cat IPADDR` + echo "Disable IKS for $IPADDR" + adb connect $IPADDR:5555 + adb devices + echo "Waiting for device" + adb wait-for-device + echo "adb -s $IPADDR:5555 shell \"echo 0 > /sys/kernel/bL_switcher/active\"" + adb -s $IPADDR:5555 shell "echo 0 > /sys/kernel/bL_switcher/active" + adb -s $IPADDR:5555 shell "cat /sys/kernel/bL_switcher/active" + echo "Disable A7 cluster" + adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu0/online" + adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu1/online" + adb -s $IPADDR:5555 shell "echo 0 > /sys/devices/system/cpu/cpu2/online" +fi + exit 0 |