About a year ago I’ve bricked my router and was trying to fix it for about a month or so
I was following the MR90X tutorial to flash Openwrt in U-Boot layout guid, but since I deleted all partitions I have no MT7986_EEPROM.bin or default-mac, so can anyone tell me for to make factory partition without them or where to find them? I’ve tried to just set bl2 and sysupgrade partitions, but upon booting i get
Net:
Error: ethernet@15100000 address ff:ff:ff:ff:ff:ff illegal value
eth0: ethernet@15100000
Error: ethernet@15100000 address ff:ff:ff:ff:ff:ff illegal value
boot encompasses bl2 and factory partitions. It has a size of 2 MiB (1 MiB from each partition).
factory encompasses the eeprom and macaddr layouts.
You will need to have the eeprom shared by someone or you will need to dump it from a different device. I can’t help you there. The size of the eeprom layout is 4 KiB and starts at offset 0 from the factory partition.
macaddr layout is pretty obvious, since its size is 6 bytes (the exact size of a mac address). You might be able to just create a fake mac address yourself. Offset for this layout is at byte 32768.
Once you have the eeprom data, you can create the factory image using the same steps described in the wiki.
You might even be able to get yourtp_databack, assuming it didn’t get zeroed or overwritten.
Dump yourubipartition and then run this Python script (or something equivalent):
import sys
import pathlib
ubi = pathlib.Path(sys.argv[1].strip())
with ubi.open('rb') as fin, ubi.with_suffix(".out").open('wb') as fout:
fin.seek(0x06F00000 - 0x00200000)
fout.write(fin.read(0x400000))
Then verify if the .outfile has a MT7986_EEPROM.binfile and a default-macfile.