| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| toh:linksys:ea7300_v2 [2024/08/08 07:57] – [Installation] badulesia | toh:linksys:ea7300_v2 [2024/09/04 17:17] – [Upgrading OpenWrt] better description badulesia |
|---|
| </WRAP> | </WRAP> |
| |
| This device has a dual partition layout (A/B). One partition is set as active and boots. If boot fails three times, than the "other" partition is set as active and booted, assuming it is still safe. A bootcounter (stored in the partiton ''S_ENV'') is used for this purpose. The bootcounter has a flaw that prevents direct install of OpenWrt. In order to work, OpenWrt must be flashed on partition A, from a Linksys OEM in partition B, using a factory image. | This device has a dual partition layout (1/2). One partition is set as active and boots. If boot fails three times, than the "other" partition is set as active and booted, assuming it is still safe. A bootcounter (stored in the partiton ''S_ENV'') is used for this purpose. The bootcounter has a flaw that prevents direct install of OpenWrt. In order to work, OpenWrt must be flashed on partition 1 using a factory image, from a Linksys OEM in partition 2. Than a tweak must be applied in order to erase the partition ''S_ENV'' after each boot and prevent a switch to partition 2. |
| |
| From Linksys OEM, flash OpenWrt and wait for reboot (take care of the browser cache, use private session). | First you need to know on which partition Linksys OEM boots. |
| * If it's still return to Linksys OEM, than you are on partition A. You have attempted to flash OpenWrt on partition B, it doesn't work. Flash Linksys OEM, it will now boot from partition B. Flash again OpenWrt, it will be on partition A. | Log into the router (user: admin, password:admin) and go to this page : [[http://192.168.1.1/sysinfo.cgi]] |
| * if you have OpenWrt than it's installed on partition A. | This page will display technical informations : |
| |
| You will be able to boot OpenWrt three times from partition A, until the bootcounter flaw set back partition B as bootable (with Linksys GUI). To prevent this, add this code to ''etc/rc.local'' | <code> |
| | 7/31/24, 7:59 AM |
| | 192.168.1.1/sysinfo.cgi |
| | page generated on Thu Oct 11 06:25:46 UTC 2012 |
| | UpTime: |
| | 06:25:46 up 26 min, load average: 0.17, 0.11, 0.17 |
| | Firmware Version: 2.0.4.208179 |
| | Firmware Builddate: 2021-08-26 05:00 |
| | Product.type: production |
| | Linux: Linux version 2.6.36 (root@build-vm) (gcc version 4.6.3 (Buildroot 2012.11.1) ) #81 SMP Wed |
| | Aug 25 21:20:44 PDT 2021 |
| | Board: focus |
| | -----U-Boot Data----- |
| | fw_printenv bootdelay: bootdelay=5 |
| | fw_printenv mtdparts: |
| | fw_printenv bootcmd: bootcmd=tftp |
| | fw_printenv boot_part: boot_part=2 |
| | </code> |
| | |
| | The last line means that Linksys boots from partition 2. If 1 than flash Linksys OEM over itself and wait for reboot. Log in and browse again the page [[http://192.168.1.1/sysinfo.cgi]]. You should now see 2. |
| | Linksys boots from partition 2, you are now ready to install OpenWrt. Just flash a factory image within Linksys, it will be on partition 1. You may have to refresh the browser cache, or use a private session. |
| | Last, you need to tweak the bootcounter by adding this code to ''etc/rc.local'' |
| |
| <code> | <code> |
| /rom/sbin/mtd erase s_env | /rom/sbin/mtd erase s_env |
| exit 0 | exit 0 |
| |
| </code> | </code> |
| |
| This code erases the ''S_ENV'' partition that contains the bootcounter. So at each boot of OpenWrt, the bootcounter is erased, and the next boot will be valid. Information from this forum thread [[https://forum.openwrt.org/t/can-not-install-openwrt-on-linksys-ea7300-v2/85421/11]] | Information from these forum threads [[https://forum.openwrt.org/t/can-not-install-openwrt-on-linksys-ea7300-v2/85421/11]] and [[https://forum.openwrt.org/t/is-ea7300-v2-no-longer-supported/166376/23]] |
| ===== Reverting to factory firmware ===== | ===== Reverting to factory firmware ===== |
| |
| Power on the router and wait 8s. Power off. Repeat this 3 times. You can also use ''luci-app-advanced-reboot''. | You must revert back to partition 2 where is still Linksys OEM. You have two possibilities : |
| | - use ''luci-app-advanced-reboot'', click on Linksys and reboot. |
| This will force boot from partition B where is Linksys OEM. To remove any traces of OpenWrt from your router simply flash the OEM image at this point. | - use the power button trick. Power on the router and wait 8s. Power off. Repeat this 3 times. |
| | In both cases it will force the switch to boot partition 2 where is Linksys OEM. To remove any traces of OpenWrt from your router simply flash Linksys OEM at this point. |
| |
| |
| -> [[docs:guide-user:installation:generic.sysupgrade]] | -> [[docs:guide-user:installation:generic.sysupgrade]] |
| |
| Install ''luci-app-advanced-reboot''. | <WRAP center round alert 60%> |
| | **YOU CAN'T upgrade using a sysupgrade image on this device**. You must revert back to Linksys and flash a **newer OpenWrt factory image**. It's not such a big deal, it takes about three minutes. |
| | </WRAP> |
| | |
| | - Backup the settings |
| | - Revert to Linksys on partition 2 (see [[:toh:linksys:ea7300_v2#reverting_to_factory_firmware]]) |
| | - Flash the newer OpenWrt factory image within Linksys. |
| | - At reboot, restore the previous settings (it will also restore the tweak for ''/etc/rc.local'') |
| |
| - backup your settings (this will include the hack in ''/etc/rc.local''). | In order to easily revert ot Linksys, consider installing ''luci-app-advanced-reboot'' in each OpenWrt factory image you will use. |
| - use ''luci-app-advanced-reboot'' to reboot to partion 2. | |
| - In Linksys OEM, flash the newer ''factory'' image. | |
| - reboot than restore your settings. | |
| ===== Debricking ===== | ===== Debricking ===== |
| -> [[docs:guide-user:troubleshooting:generic.debrick]] | -> [[docs:guide-user:troubleshooting:generic.debrick]] |