aboutsummaryrefslogtreecommitdiffstats
path: root/hw/drv_sweep2.sh
blob: 4f69aaff94e6f895012df1d8cf4718b16b0c8743 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# the ranges my first sweep MISSED: 0x6000(OTP/MMIO), 0x7000(reg access), 0x8000. plus 0x1021 control.
for OP in 0x1021 0x6001 0x6002 0x7001 0x7002 0x8001; do
  cd /root/psp && source ./env.sh >/dev/null 2>&1
  rm -f /tmp/am_usb*.lock
  $PSP_PY work/atx_power.py cycle 16 >/dev/null 2>&1
  cd /root/psp/hw
  OPCODE=$OP timeout 150 $PSP_PY /root/psp/hw/gcp_rop_sweep.py 2>&1 | grep -E "RESULT OPCODE|Traceback" | head -2
done
echo SWEEP2-DONE