Convert MediaTek Firmware Patch files into standard C/C++ headers.
This binary requires Python 3 or newer installed on your system. It currently supports Windows, Linux and MacOS architectures.
patch2h.py input_file output_file
<input_file>
= input_file, mt7662_patch_e3_hdr.bin (example)<output_file>
= input_file, mt7662_patch_e3_hdr.h (example)
This is a simple example on a Linux system:
r0rt1z2@r0rt1z2$ python3 patch2h.py mt7662_patch_e3_hdr.bin mt7662_patch_e3_hdr.h
[?] Patch build date = 2013-12-10
[?] Patch model = ALPS
[*] Dumping data from mt7662_patch_e3_hdr.bin to 'mt7662_patch_e3_hdr.h'...
[+] All done, check 'mt7662_patch_e3_hdr.h'!
r0rt1z2@r0rt1z2$
- This program is licensed under the GNU General Public License (v3). See
LICENSE
for details.