Quote:
Originally Posted by porkupan
A question to igorsk. I see that you made a function cksum2() in the ebook.py, but you still call cksum(), which in turn calls the unix/linux/cygwin cksum to calculate the CRC. Does cksum2() work, as far as you know? If it doesn't, you may want to pack cksum.exe and cygwin DLLs with ebook.py.  I haven't had time to check it out last night - was so excited about the process (to be described later on the Russian E-Book forums with full credit to you) working.
|
Oops, I forgot to include chskum.exe. My bad -_-.
Anyway, cksum2() is way way too slow. The first time I tried uploading the new fs I left it running overnight and in the morning there was still no progress. I was already thinking that I bricked the unit, but after I stopped the script and tried the ls command, it worked just fine. Then I realized that I didn't see the actual upload request in the log - it was calculating the checksum the whole night! So I quickly rewrote it using chksum.exe and the next time the upload was finished in under a minute.
Maybe I will make a binary module for calculating it... there is already python-fchksum but it's unix-only.
P.S. I do read your forum, I just don't want to make yet another account for just one thread...