-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What version of Python to use with this script? #3
Comments
Same issue... python3 uboot_mdb_to_image.py < dump-TV-IP672PI.txt > dump.img but result is good ! (when the script crash the rest of the content is a same "ff" to the end) |
The script is very picky about it's input (to flag transmission errors). For example, there must be no empty lines at all. Can you locate the position in the input file where it crashes and have a look whether there is something unusual? |
The problem is, when the last line of the script is not 16 bytes long, you will get that error. |
Patch your log file to include excess bytes. I'll try to remember to add an append to it if the line is too short and issue a patch request |
Potentially fixed Issue gmbnomis#3 in https://github.com/gmbnomis/uboot-mdb-dump (gmbnomis#3)
Current version of Python 3.6.0 for Windows fails with error
d:\temp>python uboot_mdb_to_image.py a.txt >a.bin
Traceback (most recent call last):
File "uboot_mdb_to_image.py", line 34, in
data, ascii_data = line.split(" ", maxsplit = 1)
ValueError: not enough values to unpack (expected 2, got 1)
OK. Everything is OK. Command used must be strict python uboot_mdb_to_image.py<a.txt>a.bin
Format of a.txt is the same as in readme.
The text was updated successfully, but these errors were encountered: