Root/m1rc3/norruption/2/upset

1#!/bin/sh
2
3a=${1:-0x10}
4d=${2:-0}
5
6
7jtag -q <<EOF
8cable milkymist
9detect
10instruction CFG_OUT 000100 BYPASS
11instruction CFG_IN 000101 BYPASS
12pld load fjmem.bit
13initbus fjmem opcode=000010
14frequency 6000000
15detectflash 0
16peek $a
17poke $a 0x40 $a $d
18peek $a
19poke 0 0xff
20peek $a
21EOF
22
23cat 1>&2 <<EOF
24values read:
25- previous value
26- status (0x80 = okay, 0x92 = locked)
27- resulting value
28EOF
29

Archive Download this file

Branches:
master



interactive