I am using Xiomi router 4a 100mbps edition.
All works well except 5gh radio.
I've found the error in eeprom reading. As a result random mac address is assigned as well as the transmit power (tx power) is fixed at 3 dbm only.
How can I fix it?
i can't understand what you are talking about. if you are talking about mi router 4a 100 mb international edition firmware, i can assure you that firmware broke my router.
I bricked the router previously and couldn't debrick it using tftp server. I searched the internet for 16Mb flash rom file for mi router 4a (r4ac) 100mbps but could not find one. After spending more times I found the .bin file of the spi flash rom of mi router 4c works on 4a. I had to install kmod-mt76 to work 5 ghz band. But tx power is very low.
So the hexdump of the factory partition you are seeing is from the mi router 4c.
Some how I was able to copy the mt7612e bin to mtd2 partition. the tx value increased from 3 dbm to 25 dbm. But the real signal strength is still the same as before. here is the hexdump
and replaced all of my mtd2 partition with this eeprom bin file
Now dbm is increased greatly and working at maximum level
2.4 ghz: 23dbm
5 ghz: 22dbm
Procedure I followed:
read the spi flash rom via ch341 and saved it as main.bin
download the above mentioned eeprom and save it eeprom.bin at the same directory
In terminal (linux preferably) type: sudo dd bs=64k conv=notrunc oflag=seek_bytes seek=196608 if=eeprom.bin of=main.bin
root permission is required if the saved firmware is locked/read-only
reflash the newly modified main.bin file via ch341 programmer
Who will be benefited:
if you have bricked the xiomi mi 4a router 100mbps [r4ac] edition and couldnot debrick it via tftp server
if you didn't find full flash file (16MB) on the internet
if you flashed the rom built for xiomi mi router 4c (16 mb rom file available on the intermet) which works fine (need to install kmod-mt76x2) on the 4a but with low RSSI/dbm
if you have done the last mistake, i insist you to go through the process because i did the last mistake to revive the dead router.