Date:2011-09-16 01:18:44 (7 years 2 months ago)
Author:Werner Almesberger
Commit:0a605c85f93dcaa3687c3184d9c09024c7b7c444
Message:m1rc3/norruption/peek: new tool to quickly check for corruption at low addresses

Files: m1rc3/norruption/peek (1 diff)

Change Details

m1rc3/norruption/peek
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)

Archive Download the corresponding diff file

Branches:
master



interactive