Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openwrt 24.10 mercusys ac12g v1.lzma #41

Draft
wants to merge 3 commits into
base: openwrt-24.10
Choose a base branch
from

Conversation

namiltd
Copy link
Owner

@namiltd namiltd commented Oct 31, 2024

Thanks for your contribution to OpenWrt!

To help keep the codebase consistent and readable,
and to help people review your contribution,
we ask you to follow the rules you find in the wiki at this link
https://openwrt.org/submitting-patches

Please remove this message before posting the pull request.

@namiltd namiltd force-pushed the openwrt-24.10-mercusys-ac12g-v1.lzma branch 5 times, most recently from 08eaaf2 to 3fab4b7 Compare November 4, 2024 20:56
@namiltd namiltd force-pushed the openwrt-24.10-mercusys-ac12g-v1.lzma branch 4 times, most recently from 2d1a53c to 6e035ae Compare November 14, 2024 12:00
@namiltd namiltd force-pushed the openwrt-24.10-mercusys-ac12g-v1.lzma branch from 6e035ae to 42caba6 Compare November 19, 2024 13:41
@namiltd namiltd force-pushed the openwrt-24.10-mercusys-ac12g-v1.lzma branch 3 times, most recently from 1eeb0bc to 8b5e567 Compare December 3, 2024 22:32
@namiltd namiltd force-pushed the openwrt-24.10-mercusys-ac12g-v1.lzma branch 5 times, most recently from 8192887 to 3f338a0 Compare December 25, 2024 15:34
@namiltd namiltd force-pushed the openwrt-24.10-mercusys-ac12g-v1.lzma branch from 3f338a0 to f59e02c Compare December 28, 2024 23:33
Mercusys AC12G v1 can be supported by OpenWRT if we replace the flash memory installed in it from 2MB to 8MB (e.g. Winbond W25Q64FVSIG) to which we upload the original image from the TP-Link Archer C5 v4 router but with a few corrections. For this you will need a memory programmer, a soldering iron and a TP-Link Archer C5 v4 memory dump.

You should carefully desolder the memory and then read it with a programmer. The read dump should be copied to the Archer C5 v4 dump in the following areas:
from addresses 1FE000-1FE005 to 7DF100-7DF105
from addresses 1FF000-1FF7FF to 7F0000-7F07FF
from addresses 1FF800-1FFFFF to 7F8000-7F87FF
The corrected image should be programmed into 8MB flash memory and soldered.

Once your router is up and running, update it to the latest version from the TP-Link website.

The latest version has a TFTP recovery function, so you can easily change the firmware to OpenWRT:
-rename openwrt-ramips-mt7620-mercusys_ac12g-v1-8m-squashfs-tftp-recovery.bin to tp_recovery.bin
-change the IP address of the computer to 192.168.0.66, connect to the LAN port of the router.
-start the TFTP server
-restart the router with the reset button pressed, the file will be automatically downloaded and after a while the router will restart. After updating, set your computer's IP address to DHCP.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Set vermagic for version 24.10

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Reduce the size of the LZMA dictionary (from 8 MB to 4 MB) to reduce the amount of memory needed for unpacking and prevent LZMA ERROR 1.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
@namiltd namiltd force-pushed the openwrt-24.10-mercusys-ac12g-v1.lzma branch from f59e02c to 8d1f40d Compare January 6, 2025 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant