mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 20:06:42 +01:00
new version of 88MZ100 7.4" tag firmware + patch_mac.py for easy mac change
No need for HxD anymore for this firmware. See https://github.com/jjwbruijn/OpenEPaperLink/wiki/88MZ100-Programming-and-interfacing
This commit is contained in:
BIN
ARM_Tag_FW/88MZ100_OpenEpaperLink_7.4/88MZ100_7.4_BETA-0.3.bin
Normal file
BIN
ARM_Tag_FW/88MZ100_OpenEpaperLink_7.4/88MZ100_7.4_BETA-0.3.bin
Normal file
Binary file not shown.
25
Tag_Flasher/patch_mac.py
Normal file
25
Tag_Flasher/patch_mac.py
Normal file
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user