cosmicdan / Mstar_bintool

Unpack / repack scripts for Mstar firmware bundles/binaries (e.g. MstarUpgrade.bin)
GNU General Public License v2.0
10 stars 5 forks source link

Could not find header! #1

Open stratmetal opened 9 years ago

stratmetal commented 9 years ago

Hi,

I'm trying to use your script on the following mstar firmware file: http://www.bauhn.com.au/65inch-uhd-tv-software-update.html

but I get the following error:

[i] MstarUpgrade.bin found [#] Reading and parsing firmware bundle... please be patient! [!] Could not find header!

Incompatible Mstar file? Or user error?

Cheers,

cosmicdan commented 8 years ago

Apologies for the late reply, I've pretty much abandoned (or finished, rather) this software as it suits my uses fine. But seeing as how there actually is some interest, I might work a bit more on it.

I downloaded the firmware and checked it out in a hex editor, seems it just has a different end-of-header symbol. Not user error, just my quick-and-dirty coding :) If you check this line - https://github.com/cosmicdan/Mstar_bintool/blob/master/unpack.au3#L53 - you can change this string to "% <- this is end of script symbol".

Ideally I should change it to just search for 0x0A (linefeed character) followed by the "%" to make it more generic, but for now it will easier for you to just change the FULL text string to what I mentioned.

This should at least get the script a bit further, but I've a feeling there will be more issues :) Let me know.