Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:linksys:ea7300_v2 [2022/05/02 15:15] – Changed datatables from snapshot to stable release tmomastoh:linksys:ea7300_v2 [2024/09/04 17:17] – [Upgrading OpenWrt] better description badulesia
Line 1: Line 1:
 ====== Linksys EA7300 v2====== ====== Linksys EA7300 v2======
  
-/* This template is intended to be used via https://openwrt.org/meta/create_new_device_page ONLY.  */ +Gigabit Ethernet switch based device, USB 3.0 port, 2.4GHz and 5GHz WiFi-5 support.  Four total antennas, one internal, with three external. The three antennas are fixed and cannot be removed.  Dual-firmware support allows you to switch back to the stock firmware.
-/* DO NOT CREATE NEW DEVICEPAGES VIA COPY & PASTE! */ +
-/* USE https://openwrt.org/meta/create_new_device_page */ +
- +
-{{page>meta:infobox:construction&noheader&nofooter&noeditbtn}} +
- +
-Gigabit Ethernet switch based device, USB 3.0 port, 2.4GHz and 5GHz WiFi support.  The three antennas cannot be removed.  Dual-firmware support allows to switch back to the stock firmware.+
  
  
Line 14: Line 8:
 /*****/ /*****/
  
-{{media:example:genericrouter1.png?200|Generic Router}}+{{media:linksys:xyfwntt.png|Linksys EA7300}}
  
-<WRAP BOX> 
-FIXME 
-===== Getting started with a new Device Page ===== 
-  - This is an empty template that suggests the information that should be present on a well-constructed Device Page. This means, that **you have to fill it with life and information.** 
-  - There are several "fixme" tags with text on a light background (like this text) throughout this template. As you fill in the page, remove those tags so that people can judge its completeness. 
-  - When there are no more "fixme" tags left, delete this one too, along with the ''<nowiki><WRAP></nowiki>'' that encloses it. 
- 
-===== Keep the articles modular ===== 
-  * Please include only model specific information, omit bla,bla and put everything generic into separate articles 
-  * If you have no time to write certain stuff, link to [[docs:start]] 
-  * [[docs:guide-user:base-system:start]] should lead the way, do not explain this again 
-  * DO NOT provide a complete howto here! Instead //groom// the [[docs:start|general documentation]]. 
-</WRAP> 
  
 ===== Supported Versions ===== ===== Supported Versions =====
----- datatable ---- +<!-- ToH: { 
-cols    BrandModelVersionsSupported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, Device Techdata_pageid +  "source""json", 
-headers BrandModel, Version, Current Release, OEM Info, Forum Search, Technical Data +  "dom": "t", 
-align   c,c,c,c,c,c,c +  "paging": false
-filter  : Brand=Linksys +  "rotate"true
-filter  Model=EA7300 +  "shownColumns"["brand""model""version""supportedcurrentrel""oemdevicehomepageurl""forumsearch", "deviceid"]
-filter  Versions~v2 +  "filterColumns"{"brand": "^Linksys$", "model""^EA7300$", "version""^v2$"} 
-----+-->
  
  
 ===== Hardware Highlights ===== ===== Hardware Highlights =====
----- datatable ---- +<!-- ToH: { 
-cols    ModelVersionsCPUCPU MHz, Flash MB_mbflashs, RAM MB_mbram, WLAN Hardware, WLAN 2.4GHz, WLAN 5.0GHz, Ethernet 100M ports_, Ethernet Gbit ports_, Modem, USB ports_ +  "source""json", 
-header  : ModelVersion,SoC,CPU MHz,Flash MB,RAM MB,WLAN Hardware,WLAN2.4,WLAN5.0,100M ports,Gbit ports,Modem,USB +  "dom": "t", 
-align   c,c,c,c,c,c,c,c,c,c,c,c,c +  "paging": false
-filter  : Brand=Linksys +  "rotate"true
-filter  Model=EA7300 +  "shownColumns"["model""version""cpu""cpumhz""flashmb""rammb""wlanhardware""wlan24ghz""wlan50ghz""ethernet100mports""ethernet1gports""modem", "usbports"]
-filter  Versions~v2 +  "filterColumns"{"brand": "^Linksys$", "model""^EA7300$", "version""^v2$"} 
-----+-->
  
  
 ===== Installation ===== ===== Installation =====
----- datatable ---- +<!-- ToH: { 
-cols    ModelVersionsSupported Current RelFirmware OpenWrt Install URL_urlFirmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url +  "source""json", 
-headers ModelVersionCurrent ReleaseFirmware OpenWrt InstallFirmware OpenWrt UpgradeFirmware OEM Stock +  "dom": "t", 
-align   : c,c,c +  "paging": false, 
-filter  : Brand=Linksys +  "rotate": true
-filter  Model=EA7300 +  "shownColumns"["model""version""supportedcurrentrel""firmwareopenwrtinstallurl""firmwareopenwrtupgradeurl""firmwareoemstockurl"]
-filter  Versions~v2 +  "filterColumns"{"brand": "^Linksys$", "model""^EA7300$", "version""^v2$"} 
-----+-->
  
-This device has 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 purposeThe bootcounter has a flaw that prevents direct install of OpenWrt. Use this procedure to bypass: +<WRAP center round alert 60%> 
-  - Flash Linksys GUI from itselfThe device will now boot Linksys GUI from partition B. +Some devices are reported to have difficulty to install OpenWrt. It seems to be related to bad block wrongly detectedIt is unclear about which devices are involved in this bug. A workaround exists but is not already commitedPlease found info here [[https://forum.openwrt.org/t/is-ea7300-v2-no-longer-supported/166376/22]]. 
-  Flash OpenWrt with Linksys GUI, it will be installed on partition A and will boot.+</WRAP>
  
-You will be able to boot OpenWrt three times from partition Auntil the bootcounter flaw set back partition B as bootable (with Linksys GUI)To prevent this, add this code to ''etc/rc.local''+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 bootedassuming 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 2Than a tweak must be applied in order to erase the partition ''S_ENV'' after each boot and prevent a switch to partition 2. 
 + 
 +First you need to know on which partition Linksys OEM boots. 
 +Log into the router (user: admin, password:admin) and go to this page : [[http://192.168.1.1/sysinfo.cgi]] 
 +This page will display technical informations :  
 + 
 +<code> 
 +7/31/247: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>
Line 72: Line 80:
 /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. 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 =====
  
-Hard-reset the router three times to force it to boot from 'B.' This is where the stock firmware resides. To remove any traces of OpenWrt from your router simply flash the OEM image at this point.+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. 
 +  - 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.
  
  
Line 143: Line 152:
 ->  [[docs:guide-user:installation:generic.sysupgrade]] ->  [[docs:guide-user:installation:generic.sysupgrade]]
  
-<WRAP BOX>+<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>
  
-FIXME These are generic instructions. Update with your router's specifics. +  - Backup the settings 
- +  - Revert to Linksys on partition 2 (see [[:toh:linksys:ea7300_v2#reverting_to_factory_firmware]]) 
-==== LuCI Web Upgrade Process ==== +  - Flash the newer OpenWrt factory image within Linksys. 
- +  - At reboot, restore the previous settings (it will also restore the tweak for ''/etc/rc.local'')
-  * Browse to ''<nowiki>http://192.168.1.1/cgi-bin/luci/mini/system/upgrade/</nowiki>'' LuCI Upgrade URL +
-  * Upload image file for sysupgrade to LuCI +
-  * Wait for reboot +
- +
-==== Terminal Upgrade Process ==== +
- +
-If you don't have a GUI (LuCI) availableyou can alternatively upgrade via the command line. +
-There are two command line methods for upgrading: +
- +
-  * ''sysupgrade'' +
-  * ''mtd'' +
- +
-Note: It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing. +
- +
-=== sysupgrade === +
- +
-  * Login as root via SSH on 192.168.1.1, then enter the following commands: +
- +
-<code> +
-cd /tmp +
-wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc +
-sysupgrade /tmp/xxx.abc +
-</code> +
- +
-=== mtd === +
- +
-If ''sysupgrade'' does not support this router, use ''mtd''+
- +
-  * Login as root via SSH on 192.168.1.1, then enter the following commands: +
- +
-<code> +
-cd /tmp +
-wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc +
-mtd write /tmp/xxx.abc linux && reboot +
-</code> +
- +
-</WRAP>+
  
 +In order to easily revert ot Linksys, consider installing ''luci-app-advanced-reboot'' in each OpenWrt factory image you will use.
 ===== Debricking ===== ===== Debricking =====
 -> [[docs:guide-user:troubleshooting:generic.debrick]] -> [[docs:guide-user:troubleshooting:generic.debrick]]
Line 244: Line 219:
 ===== Hardware ===== ===== Hardware =====
 ==== Info ==== ==== Info ====
----- datatemplatelist dttpllist ---- +<!-- ToH: { 
-templatemeta:template_datatemplatelist +  "source""json", 
-cols    BrandModelVersionsDevice TypeAvailabilitySupported Since Commit_gitSupported since RelSupported current RelUnsupportedBootloaderCPUTargetCPU MHzFlash MBsRAM MBSwitchEthernet 100M ports_Ethernet Gbit ports_Comments network ports_ModemVLANWLAN 2.4GHzWLAN 5.0GHzWLAN HardwaresWLAN Comments_Detachable Antennas_USB ports_SATA ports_Comments USB SATA ports_SerialJTAGLED countButton countPower supplyDevice Techdata_pageidForum topic URL_urlwikidevi URL_urlOEM Device Homepage URL_urlFirmware OEM Stock URL_urlFirmware OpenWrt Install URL_urlFirmware OpenWrt Upgrade URL_urlComments_ +  "dom""t", 
-filter  : Brand=Linksys +  "paging"false, 
-filter  Model=EA7300 +  "rotate": true, 
-filter  Versions=v2 +  "shownColumns": ["brand""model""version""devicetype""availability""supportedsincecommit""supportedsincerel""supportedcurrentrel""unsupported_functions""bootloader""cpu""target""cpumhz""flashmb""rammb""switch""ethernet100mports""ethernet1gports""commentsnetworkports""modem""vlan""wlan24ghz""wlan50ghz""wlanhardware""wlancomments""detachableantennas""usbports""sataports""commentsusbsataports""serial""jtag""ledcount""buttoncount""powersupply""deviceid""owrt_forum_topic_url""wikideviurl""oemdevicehomepageurl""firmwareoemstockurl", "firmwareopenwrtinstallurl", "firmwareopenwrtupgradeurl", "comments"]
-----+  "filterColumns"{"brand": "^Linksys$", "model""^EA7300$", "version""^v2$"} 
 +-->
  
 ==== Photos ==== ==== Photos ====
Line 638: Line 614:
   * This device will boot occasionally back to the stock firmware after install.  Reports of this are e.g. https://forum.openwrt.org/t/can-not-install-openwrt-on-linksys-ea7300-v2/85421/9.  Reason for this is that the bootcounter cannot be reset properly.  This is manifested by messages in dmesg about uncorrectable ECC errors, such as `mt7621-nand 1e003000.nand: Uncorrectable ECC error at page 522.1`.  The bootcount record is appended/written, but the hardware seems to overwrite this with the last bootcount instead of 0.  A workaround for this is mentioned in https://forum.openwrt.org/t/uncorrectable-ecc-error/88736/5 by simply issuing `mtd erase s_env`.  This is somewhat crude, but seems to prevent the bootloader from switching the active partition.  One could add it as local entry post-boot in `/etc/rc.local`   * This device will boot occasionally back to the stock firmware after install.  Reports of this are e.g. https://forum.openwrt.org/t/can-not-install-openwrt-on-linksys-ea7300-v2/85421/9.  Reason for this is that the bootcounter cannot be reset properly.  This is manifested by messages in dmesg about uncorrectable ECC errors, such as `mt7621-nand 1e003000.nand: Uncorrectable ECC error at page 522.1`.  The bootcount record is appended/written, but the hardware seems to overwrite this with the last bootcount instead of 0.  A workaround for this is mentioned in https://forum.openwrt.org/t/uncorrectable-ecc-error/88736/5 by simply issuing `mtd erase s_env`.  This is somewhat crude, but seems to prevent the bootloader from switching the active partition.  One could add it as local entry post-boot in `/etc/rc.local`
  
 +  * USB is disconnected when WAN port is up (https://forum.openwrt.org/t/usb-is-disconnected-when-wan-is-up/117886). If you need to use USB port and WAN port at the same time, a workaround is to use one of the LAN ports as a WAN port (https://forum.openwrt.org/t/usb-not-working-on-linksys-ea7300/130090).
 +
 +  * Package cryptsetup does not work at all with OpenWrt 21.02 (https://forum.openwrt.org/t/unable-to-create-an-encrypted-disk-on-openwrt-21-02/130982). If you need it you have to upgrade to OpenWrt 22.03 (currently at RC4). 
 ===== Tags ===== ===== Tags =====
 <WRAP BOX> <WRAP BOX>
Line 644: Line 623:
  
 [[meta:tags|How to add tags]] [[meta:tags|How to add tags]]
-{{tag>128NAND 256RAM 5port Gigabitethernet 1USB USB3.0 dual_firmware}}+{{tag>ramips mt7621 128NAND 256RAM 5port Gigabitethernet 1USB USB3.0 802.11abgnac dual_firmware}}
  • Last modified: 2024/09/04 17:26
  • by badulesia