Update by reGNUal works now

This commit is contained in:
NIIBE Yutaka
2012-05-28 11:18:21 +09:00
parent 4e8af02ac0
commit cb1dc21b61
2 changed files with 15 additions and 3 deletions

View File

@@ -384,12 +384,13 @@ def main(passwd, data_regnual, data_upgrade):
print "Run flash upgrade program..."
icc.execute(mem_info[1] + len(data_regnual))
#
time.sleep(2)
icc.reset_device()
del icc
icc = None
#
print "Wait 1 seconds..."
time.sleep(1)
print "Wait 3 seconds..."
time.sleep(3)
# Then, send upgrade program...
dev = get_gnuk_device()
print "Device: ", dev.filename
@@ -421,4 +422,4 @@ if __name__ == '__main__':
data_upgrade = f.read()
f.close()
print "%s: %d" % (filename_upgrade, len(data_upgrade))
main(passwd, data_regnual, data_upgrade)
main(passwd, data_regnual, data_upgrade[4096:])