summaryrefslogtreecommitdiffstats
path: root/oncology/dpfhack_display/fw/fulldump.py
diff options
context:
space:
mode:
authorroot <root@krebs>2011-09-01 02:18:42 +0200
committerroot <root@krebs>2011-09-01 02:18:42 +0200
commit181ee880f53e1b10fce89e74ba429e23382809c1 (patch)
tree2f0f392274a6794f7962ec9dbd13e719e48ca5f7 /oncology/dpfhack_display/fw/fulldump.py
parentcdbc8c537320e3e534694311516ac398ea501600 (diff)
parent5ad8c950f59472d1d0ad21c13320024889fe2e46 (diff)
Merge branch 'master' of github.com:/krebscode/painload
Conflicts: .gitmodules oncology/dpfhack_display
Diffstat (limited to 'oncology/dpfhack_display/fw/fulldump.py')
-rwxr-xr-xoncology/dpfhack_display/fw/fulldump.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/oncology/dpfhack_display/fw/fulldump.py b/oncology/dpfhack_display/fw/fulldump.py
deleted file mode 100755
index 28c0ad2c..00000000
--- a/oncology/dpfhack_display/fw/fulldump.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# Script to extract flash
-#
-# <hackfin@section5.ch>
-#
-# Argument is either:
-#
-# /dev/sgX : scsi device (unhacked mode)
-# usb0 : developer mode (already hacked)
-
-import sys
-sys.path.append("./Debug")
-import dpf
-
-import detect
-
-d = dpf.open(sys.argv[1])
-
-size = detect.detect_flash(d)
-
-# Offset, size
-print "Reading %x bytes..." % size
-buf = d.readFlash(0x00, size)
-
-f = open("full.bin", "wb")
-f.write(buf)
-f.close()
-
-d.close()
-