From 37e09437c2f20ac269f8d2b7f9c7f7cd325f0585 Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 20 Aug 2011 23:21:48 +0200 Subject: oncology: initial commit oncology will analyse the current krebs status --- oncology/dpfhack_display/fw/fulldump.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 oncology/dpfhack_display/fw/fulldump.py (limited to 'oncology/dpfhack_display/fw/fulldump.py') diff --git a/oncology/dpfhack_display/fw/fulldump.py b/oncology/dpfhack_display/fw/fulldump.py new file mode 100755 index 00000000..28c0ad2c --- /dev/null +++ b/oncology/dpfhack_display/fw/fulldump.py @@ -0,0 +1,29 @@ +# Script to extract flash +# +# +# +# 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() + -- cgit v1.2.3