Linksys EA8300: Revert from DD-WRT to Stock (No Serial Cable Needed!)
🚀 REVERT YOUR LINKSYS EA8300 BACK TO STOCK FROM DD-WRT!
Download the applicable OEM firmware image.
Highlight the following: EA8300_Stock_Firmware.img, right click and click copy on the text you highlighted.
Click on the following link to download the Stock Firmware Image:
https://archive.org/download/Linksys_EA8300_1.1.6.209797_7f8e7/7f8e7cb40113c17b785eded32c181b62.img
Highlight the complete file name, right click and click paste to rename the file to EA8300_Stock_Firmware.img and save the image to your chosen location.
Navigate to http://192.168.1.1/Services.asp on your router
Enable the SSH service. Click on [Save & Apply] at the bottom of the page.
Open Command window. Search for CMD in Windows and click on it. Navigate to the directory where you downloaded the file
cd "Your file path here" (see video for shortcut on this)
press ENTER
Upload the factory firmware (EA8300_Stock_Firmware.img) file to the router's /tmp folder using an scp client:
Type:
scp EA8300_Stock_Firmware.img root@192.168.1.1:/tmp
Use the password for the router to authenticate.
SSH into the router's console:
In the Command window type:
ssh root@192.168.1.1
Press ENTER, Use the password for the router to authenticate.
Type:
ls /tmp
Press ENTER
We're Making sure the EA8300_Stock_Firmware.img file is present.
Check to see which boot partition the router is currently using:
Type:
fw_printenv -n boot_part
Press ENTER
You will get a 1 or a 2 as an output indicating which boot partition is currently active.
If the active boot partition is 1, type the following:
mtd -f -e linux2 write /tmp/EA8300_Stock_Firmware.img linux2
Press ENTER
If the active boot partition is 2, type the following:
mtd -f -e linux write /tmp/EA8300_Stock_Firmware.img linux
Press ENTER
Once the write is done the boot partition needs to be changed to the boot partition where you just flashed the factory firmware.
If the boot partition was 2, you flashed to linux, set the boot partition to 1:
Type:
fw_setenv boot_part 1
Press ENTER
If the boot partition was 1, you flashed to linux2, set the boot partition to 2:
Type:
fw_setenv boot_part 2
Press ENTER
Type:
reboot
Press ENTER
The router will router will reboot into the stock Linksys EA8300 firmware.
The second U-Boot partition will still have DD-WRT on it.
If you wish to wipe DD-WRT from the router, flash the EA8300_Stock_Firmware.img again on the Linksys routers Connectivity page.
Also note if you do NOT want to flash DD-WRT off the router be aware that the next flash upgrade from Linksys will erase it.
###############################################################
Script Instructions
Download the applicable OEM firmware image.
Highlight the following: EA8300_Stock_Firmware.img, right click and click copy on the text you highlighted.
Click on the following link to download the Stock Firmware Image:
https://archive.org/download/Linksys_EA8300_1.1.6.209797_7f8e7/7f8e7cb40113c17b785eded32c181b62.img
Highlight the complete file name, right click and click paste to rename the file to EA8300_Stock_Firmware.img and save the image to your chosen location.
Navigate to http://192.168.1.1/Services.asp on your router
Enable the SSH service.
Click on [Save & Apply] at the bottom of the page.
Upload the factory firmware (EA8300_Stock_Firmware.img) file to the router's /tmp folder using an scp client:
Open Command window search for CMD in widows. Navigate to the directory you downloaded the file
cd "Your file path here" (see video for shortcut on this)
press ENTER
Upload the factory firmware (EA8300_Stock_Firmware.img) file to the router's /tmp folder using an scp client:
Type:
scp EA8300_Stock_Firmware.img root@192.168.1.1:/tmp
Use the password for the router to authenticate.
SSH into the router's console:
In the Command window type:
ssh root@192.168.1.1
Press ENTER, Use the password for the router to authenticate.
Prepare the script:
If you are already in the SSH console, create the script:
Type:
vi /tmp/revert.sh
Press ENTER
Type:
i
Do not press enter after typing (i)
Copy and paste the code below into the vi window.
------------------- COPY ALL TEXT BELOW THIS LINE -------------------
#!/bin/sh
# 1. Define the firmware filename
# Change this if your filename is different
FIRMWARE_FILE="EA8300_Stock_Firmware.img"
# 2. Check if file exists in /tmp
cd /tmp
if [ ! -f "$FIRMWARE_FILE" ]; then
echo "ERROR: $FIRMWARE_FILE not found in /tmp!"
echo "Upload the file using SCP first."
exit 1
fi
echo "File found. Verifying current boot partition..."
# 3. Identify active partition
# 1 = currently on linux, 2 = currently on linux2
CURRENT_PART=$(fw_printenv -n boot_part)
if [ "$CURRENT_PART" = "1" ]; then
echo "Currently on Partition 1. Flashing stock to Partition 2 (linux2)..."
# mtd -f (force) -e (erase target first) write [file] [target_partition]
mtd -f -e linux2 write "$FIRMWARE_FILE" linux2
echo "Flash complete. Switching boot partition to 2..."
fw_setenv boot_part 2
elif [ "$CURRENT_PART" = "2" ]; then
echo "Currently on Partition 2. Flashing stock to Partition 1 (linux)..."
mtd -f -e linux write "$FIRMWARE_FILE" linux
echo "Flash complete. Switching boot partition to 1..."
fw_setenv boot_part 1
else
echo "ERROR: Could not determine boot partition. Output was: $CURRENT_PART"
exit 1
fi
echo "----------------------------------------------------"
echo "DONE. Waiting 10 seconds for NVRAM to sync..."
echo "----------------------------------------------------"
# Added wait and reboot
sleep 10
echo "Rebooting into stock firmware now. Use (admin) as the password to log into the stock firmware at 192.168.1.1"
reboot
------------------- COPY ALL TEXT ABOVE THIS LINE -------------------
Press Esc
Type-
:wq
Press ENTER
Make it executable:
Type:
chmod +x /tmp/revert.sh
Run it:
Type:
/tmp/revert.sh
Press ENTER
This will initiate the write sequence and reboot the router back to the stock Linksys firmware. Enjoy!
We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.