Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Git Source Tree
Root/
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 | |
8 | jtag -q <<EOF |
9 | cable milkymist |
10 | detect |
11 | instruction CFG_OUT 000100 BYPASS |
12 | instruction CFG_IN 000101 BYPASS |
13 | pld load fjmem.bit |
14 | initbus fjmem opcode=000010 |
15 | frequency 6000000 |
16 | detectflash 0 |
17 | endian big |
18 | readmem 0 0x100 peek.bin |
19 | pld reconfigure |
20 | EOF |
21 | |
22 | diff -u \ |
23 | <(dd if=standby.fpg bs=256 count=1 | hexdump -C) \ |
24 | <(hexdump -C peek.bin) |
25 |
Branches:
master