#!/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