aboutsummaryrefslogtreecommitdiffstats
path: root/hw/drv_sweep.sh
blob: 5e9ff47038566e6697b031e7ec169a42c1e0c0ab (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash
for OP in 0x1021 0x3103 0x3005 0x2005 0x1105 0x4001; 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 SWEEP-DONE