mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2025-01-31 14:51:06 +02:00
m1rc3/norruption/peek: new tool to quickly check for corruption at low addresses
This commit is contained in:
parent
88fa76bc88
commit
0a605c85f9
24
m1rc3/norruption/peek
Executable file
24
m1rc3/norruption/peek
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#
|
||||||
|
# peek - retrieve the first 256 NOR bytes via JTAG, then compare them with
|
||||||
|
# the reference standby bitstream
|
||||||
|
#
|
||||||
|
|
||||||
|
jtag -q <<EOF
|
||||||
|
cable milkymist
|
||||||
|
detect
|
||||||
|
instruction CFG_OUT 000100 BYPASS
|
||||||
|
instruction CFG_IN 000101 BYPASS
|
||||||
|
pld load fjmem.bit
|
||||||
|
initbus fjmem opcode=000010
|
||||||
|
frequency 6000000
|
||||||
|
detectflash 0
|
||||||
|
endian big
|
||||||
|
readmem 0 0x100 peek.bin
|
||||||
|
pld reconfigure
|
||||||
|
EOF
|
||||||
|
|
||||||
|
diff -u \
|
||||||
|
<(dd if=standby.fpg bs=256 count=1 | hexdump -C) \
|
||||||
|
<(hexdump -C peek.bin)
|
Loading…
x
Reference in New Issue
Block a user