Linksys MX4300 Revert To Factory Firmware using wget

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Qualcomm Atheros based Hardware
Author Message
somedudeonddwrt
DD-WRT Novice


Joined: 25 Sep 2024
Posts: 2

PostPosted: Wed Sep 25, 2024 5:18    Post subject: Linksys MX4300 Revert To Factory Firmware using wget Reply with quote
Split from Linksys LN1301 - MX4300 WIP & added updated content from OP update -kp69

dun4cheap wrote:
********** Reverting Back To Factory Firmware *********** Last Updated 9/28/2024

DD-WRT Firmware Link: Be sure to use R58283 or greater!

Betas: https://dd-wrt.com/support/other-downloads/?path=betas%2F
2024: https://dd-wrt.com/support/other-downloads/?path=betas%2F2024%2F

Linksys LN1301 MX4300 Factory Firmware Link: https://downloads.linksys.com/support/assets/firmware/FW_MX4300_1.0.4.215382_prod.img

Revert To Factory Firmware The method that worked for me:
Credits to Brainslayer and Lexridge for making this possible.


enable telnet in the webif

*** Note: The wget method below requires you to setup or to have access to website. Unfortunately I could not get the wget to work using the direct linksys.com link.

telnet to you mx4300
cd /tmp
wget http://www.yourwebaddres.com/MX4300FactoryFW.img
mtd -e linux2 -f write MX4300FactoryFW.img linux2
mtd -e linux -f write MX4300FactoryFW.img linux

reboot

When it reboots if the light on top of the router is flashing red, be sure to hold the reset button on the bottom until the light turns off.


hello sir is it possible you can do a HOW-TO video on how to revert to the stock linksys firmware? i was able to flash dd-wrt but i am too stupid to revert back to stock firmware as i don't know how to SSH or telnet. please thank you.
Sponsor
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1869
Location: WV, USA

PostPosted: Wed Sep 25, 2024 5:31    Post subject: Re: Linksys LN1301 - MX4300 Revert To Factory Firmware Reply with quote
somedudeonddwrt wrote:
hello sir is it possible you can do a HOW-TO video on how to revert to the stock linksys firmware? i was able to flash dd-wrt but i am too stupid to revert back to stock firmware as i don't know how to SSH or telnet. please thank you.

From your question I can assume you have only used Windows at this point.

In which case I kinda feel sorry for your situation. Start/Run and type cmd in the run box. You should get a console at this point. type "telnet IPADDRESS-of-Router"
Login with username root and your password.
Run the commands you quoted in your first post.

Sorry, I will not be making a video for you.

_________________
- Linksys EA8500: I-Gateway, WAP/VAP 5ghz only. Features: WDS-AP, VLANs, Samba, WG, Entware - r59429
- Linksys EA8500: 802.11s Secondary w/VLAN Trunk over 5ghz - r59171
- Linksys MX4300: 802.11s Primary w/VLAN Trunk over 5ghz. 2.4ghz WAP/VAP only - r59171
- Linksys MX4300 (WAP/VAP (7)) Multiple VLANs over single trunk port. Entware/Samba r59451
- Linksys MR7350: WDS Station for extended Ethernet r59451
- Linksys Velop WHW03v1 x2: OpenWRT w/GRETAP tunnel for VLANs on VAPs
- OSes: Fedora 40, 10 RPis (2,3,4,5), 23 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.

- Forum member #248
somedudeonddwrt
DD-WRT Novice


Joined: 25 Sep 2024
Posts: 2

PostPosted: Fri Sep 27, 2024 3:33    Post subject: Re: Linksys LN1301 - MX4300 WIP Reply with quote
lexridge wrote:
somedudeonddwrt wrote:
hello sir is it possible you can do a HOW-TO video on how to revert to the stock linksys firmware? i was able to flash dd-wrt but i am too stupid to revert back to stock firmware as i don't know how to SSH or telnet. please thank you.

From your question I can assume you have only used Windows at this point.

In which case I kinda feel sorry for your situation. Start/Run and type cmd in the run box. You should get a console at this point. type "telnet IPADDRESS-of-Router"
Login with username root and your password.
Run the commands you quoted in your first post.

Sorry, I will not be making a video for you.


thank you i will give it a try
pham0663
DD-WRT Novice


Joined: 22 Sep 2024
Posts: 7

PostPosted: Sat Sep 28, 2024 5:08    Post subject: Re: Linksys LN1301 - MX4300 WIP Reply with quote
lexridge wrote:
somedudeonddwrt wrote:
hello sir is it possible you can do a HOW-TO video on how to revert to the stock linksys firmware? i was able to flash dd-wrt but i am too stupid to revert back to stock firmware as i don't know how to SSH or telnet. please thank you.

From your question I can assume you have only used Windows at this point.

In which case I kinda feel sorry for your situation. Start/Run and type cmd in the run box. You should get a console at this point. type "telnet IPADDRESS-of-Router"
Login with username root and your password.
Run the commands you quoted in your first post.

Sorry, I will not be making a video for you.

This link http://www.yourwebaddres.com/MX4300FactoryFW.img is dead
Do you have another one?
Thanks.
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1869
Location: WV, USA

PostPosted: Sat Sep 28, 2024 5:18    Post subject: Reply with quote
Yeah, that is an example link. This one should work:
https://downloads.linksys.com/support/assets/firmware/FW_MX4300_1.0.4.215382_prod.img

_________________
- Linksys EA8500: I-Gateway, WAP/VAP 5ghz only. Features: WDS-AP, VLANs, Samba, WG, Entware - r59429
- Linksys EA8500: 802.11s Secondary w/VLAN Trunk over 5ghz - r59171
- Linksys MX4300: 802.11s Primary w/VLAN Trunk over 5ghz. 2.4ghz WAP/VAP only - r59171
- Linksys MX4300 (WAP/VAP (7)) Multiple VLANs over single trunk port. Entware/Samba r59451
- Linksys MR7350: WDS Station for extended Ethernet r59451
- Linksys Velop WHW03v1 x2: OpenWRT w/GRETAP tunnel for VLANs on VAPs
- OSes: Fedora 40, 10 RPis (2,3,4,5), 23 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.

- Forum member #248
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 15574
Location: Texas, USA

PostPosted: Sat Sep 28, 2024 5:28    Post subject: Reply with quote
This is why I didn't write the procedure in the wiki to use wget, but since we're here:
Code:
cd /tmp
wget http://downloads.linksys.com/support/assets/firmware/FW_MX4300_1.0.4.215382_prod.img
ls -lart
fw_printenv -n boot_part

If the boot partition is 1, issue the following:
Code:
mtd -e linux2 -f write FW_MX4300_1.0.4.215382_prod.img linux2

If the boot partition is 2, issue the following:
Code:
mtd -e linux -f write FW_MX4300_1.0.4.215382_prod.img linux

Then you can write the other partition and reboot or flash the other partition from factory, whichever.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
pham0663
DD-WRT Novice


Joined: 22 Sep 2024
Posts: 7

PostPosted: Sat Sep 28, 2024 13:08    Post subject: Reply with quote
I am getting a error
wget: bad address 'downloads.linksys.com'
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 15574
Location: Texas, USA

PostPosted: Sat Sep 28, 2024 15:49    Post subject: Reply with quote
The wget utility will not work if the router is not connected to the internet. Sounds like a dns resolution issue.

"If you can't wget the firmware"

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
pham0663
DD-WRT Novice


Joined: 22 Sep 2024
Posts: 7

PostPosted: Sat Sep 28, 2024 16:34    Post subject: Reply with quote
kernel-panic69 wrote:
The wget utility will not work if the router is not connected to the internet. Sounds like a dns resolution issue.

"If you can't wget the firmware"

On second try, I connect mx4300 to the modem, getting another error
"Connection reset by peer"
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 15574
Location: Texas, USA

PostPosted: Sat Sep 28, 2024 17:12    Post subject: Reply with quote
Then use the procedure in the wiki and SCP the file and then flash it via telnet or ssh.

https://wiki.dd-wrt.com/wiki/index.php/Linksys_MX4300

NOTE: To use the wget method example provided below to revert to stock, you must have a host with one of the following packages installed to serve the file connected to either LAN or WAN of the MX4300.

Code:
cd /tmp
wget http://path.to.host.here/FW_MX4300_1.0.4.215382_prod.img
ls -lart
fw_printenv -n boot_part

If the boot partition is 1, issue the following:
Code:
mtd -e linux2 -f write FW_MX4300_1.0.4.215382_prod.img linux2

If the boot partition is 2, issue the following:
Code:
mtd -e linux -f write FW_MX4300_1.0.4.215382_prod.img linux

Then you can write the other partition and reboot or flash the other partition from factory, whichever.

Topic locked for now. May reopen at any time.
Display posts from previous:    Page 1 of 1
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Qualcomm Atheros based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum