diff --git a/ARM_Tag_FW/88MZ100_OpenEpaperLink_7.4/88MZ100_7.4_BETA-0.3.bin b/ARM_Tag_FW/88MZ100_OpenEpaperLink_7.4/88MZ100_7.4_BETA-0.3.bin new file mode 100644 index 00000000..fc9a9e12 Binary files /dev/null and b/ARM_Tag_FW/88MZ100_OpenEpaperLink_7.4/88MZ100_7.4_BETA-0.3.bin differ diff --git a/Tag_Flasher/patch_mac.py b/Tag_Flasher/patch_mac.py new file mode 100644 index 00000000..5857efca --- /dev/null +++ b/Tag_Flasher/patch_mac.py @@ -0,0 +1,25 @@ +import argparse + +def patch_mac(file_path, mac): + try: + with open(file_path, "r+b") as file: + offset = 0x0148 + mac_bytes = bytearray.fromhex(mac) + mac_bytes.reverse() # Reverse the byte order + + file.seek(offset) + file.write(mac_bytes) + print(f"MAC address patched successfully.") + except FileNotFoundError: + print("Error: File not found.") + except Exception as e: + print(f"An error occurred: {e}") + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description="Patch MAC address in a binary firmware file for the 88MZ100 7.4 inch esl") + parser.add_argument("-mac", required=True, help="MAC address (without colons)") + parser.add_argument("filename", help="Binary file to patch") + + args = parser.parse_args() + patch_mac(args.filename, args.mac) +