projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Corrected spelling of 'disset' for the CCSPI/scapy stuff.
[goodfet]
/
client
/
goodfet.spiflash
diff --git
a/client/goodfet.spiflash
b/client/goodfet.spiflash
index
d4450c2
..
dcdc68b
100755
(executable)
--- a/
client/goodfet.spiflash
+++ b/
client/goodfet.spiflash
@@
-140,15
+140,12
@@
if(sys.argv[1]=="flash"):
stop=int(sys.argv[4],16);
print "Flashing code from %06x to %06x with %s." % (start,stop,f);
stop=int(sys.argv[4],16);
print "Flashing code from %06x to %06x with %s." % (start,stop,f);
+ print "FIXME This might fail if the file is of an odd size.";
file = open(f, mode='rb')
i=start;
chars=list(file.read());
file = open(f, mode='rb')
i=start;
chars=list(file.read());
-
- #N.B., chunksize must be an even fraction of 0x100.
- #Increasing above 0x200 doesn't help, 0x100 might be good enough.
chunksize=0x100;
chunksize=0x100;
- #chunksize=0x1000;
while i<=stop:
bytes=range(0,chunksize);
while i<=stop:
bytes=range(0,chunksize);