Root/m1rc3/norruption/peek

Source at commit 0a605c8 created 12 years 6 months ago.
By Werner Almesberger, m1rc3/norruption/peek: new tool to quickly check for corruption at low addresses
1#!/bin/bash
2
3#
4# peek - retrieve the first 256 NOR bytes via JTAG, then compare them with
5# the reference standby bitstream
6#
7
8jtag -q <<EOF
9cable milkymist
10detect
11instruction CFG_OUT 000100 BYPASS
12instruction CFG_IN 000101 BYPASS
13pld load fjmem.bit
14initbus fjmem opcode=000010
15frequency 6000000
16detectflash 0
17endian big
18readmem 0 0x100 peek.bin
19pld reconfigure
20EOF
21
22diff -u \
23  <(dd if=standby.fpg bs=256 count=1 | hexdump -C) \
24  <(hexdump -C peek.bin)
25

Archive Download this file

Branches:
master



interactive