Date:2011-10-12 19:42:36 (7 years 11 months ago)
Author:Werner Almesberger
Commit:d6e1e8be0d1c9fa178dc457f23b1f00c171acd12
Message:m1rc3/norruption/2/upset: take address and value from command-line; report outcome

Files: m1rc3/norruption/2/upset (2 diffs)

Change Details

m1rc3/norruption/2/upset
11#!/bin/sh
2
3a=${1:-0x10}
4d=${2:-0}
5
6
27jtag -q <<EOF
38cable milkymist
49detect
...... 
813initbus fjmem opcode=000010
914frequency 6000000
1015detectflash 0
11poke 0x10 0x40 0x10 0 0 0xff
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
1228EOF

Archive Download the corresponding diff file

Branches:
master



interactive