aboutsummaryrefslogtreecommitdiffstats
path: root/hw/crypto_run.sh
blob: 46155b4c2779c8cc506ac872117045cbf20d1bd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash
# $1=OPCODE $2=MSGSPEC(json)
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
echo "---- OPCODE=$1 MSGSPEC=$2 ----"
OPCODE=$1 MSGSPEC=$2 timeout 150 $PSP_PY /root/psp/hw/gcp_rop_crypto.py 2>&1 | grep -E "self-test|load GCP|CRYPTO FE0A|graceful marker|svc 0xf2 return|post-op|M\[|follow-up|RESULT|Traceback|Error" | head -30
echo CRYPTO-RUN-DONE