Skip to content
Snippets Groups Projects
  1. Jan 15, 2022
    • Michael Pratt's avatar
      ramips: fix reboot for remaining 32 MB boards · 74516f43
      Michael Pratt authored
      
      The following devices have a Winbond W25Q256FV flash chip,
      which does not have the RESET pin enabled by default,
      and otherwise would require setting a bit in a status register.
      
      Before moving to Linux 5.4, we had the patch:
      0053-mtd-spi-nor-add-w25q256-3b-mode-switch.patch
      which kept specific flash chips with explicit 3-byte and 4-byte address modes
      to stay in 3-byte address mode while idle (after an erase or write)
      by using a custom flag SPI_NOR_4B_READ_OP that was part of the patch.
      
      this was obsoleted by the patch:
      481-mtd-spi-nor-rework-broken-flash-reset-support.patch
      which uses the newer upstream flag SNOR_F_BROKEN_RESET
      for devices with a flash chip that cannot be hardware reset with RESET pin
      and therefore must be left in 3-byte address mode when idle.
      
      The new patch requires that the DTS of affected devices
      have the property "broken-flash-reset", which was not yet added for most of them.
      
      This commit adds the property for remaining affected devices in ramips target,
      specifically because of the flash chip model.
      
      However, it is possible that there are other devices
      where the flash chip uses an explicit 4-byte address mode
      and the RESET pin is not connected to the SOC on the board,
      and those DTS would also need this property.
      
      Ref: 22d982ea ("ramips: add support for switching between 3-byte and 4-byte addressing")
      Ref: dfa521f1 ("generic: spi-nor: rework broken-flash-reset")
      Signed-off-by: default avatarMichael Pratt <mcpratt@pm.me>
      74516f43
    • SeongUk Moon's avatar
      ramips: add support for ipTIME A6004NS-M · 9c8ccdcd
      SeongUk Moon authored
      
      ipTIME A6004NS-M is a 2.4/5GHz band AC1900 router, based on MediaTek MT7621A.
      
      Specifications:
      - SoC: MediaTek MT7621A (880MHz, Duel-Core)
      - RAM: DDR3 256MB
      - Flash: SPI NOR 16MB (Winbond W25Q128BV)
      - WiFi: MediaTek MT7615E (2.4GHz, 5GHz)
      - Ethernet: MediaTek MT7530 (WAN x1, LAN x4, SoC built-in Estimated)
      - USB: USB 3.0 x1
      - UART: [3.3V, TX, RX, GND] (57600 8N1)
      
      Installation via web interface:
      1. Flash initramfs image using OEM's Firmware Update page.
      2. Connect to OpenWrt with an SSH connection to `192.168.1.1`.
      3. Perform sysupgrade with sysupgrade image.
      
      Revert to stock firmware:
      1.  Flash stock firmware via OEM's Recovery mode
      
      How to use OEM's Recovery mode:
      1. Power on the device and connect the shell through UART.
      2. Connect to the shell and press the `t` key on the keyboard.
      3. Set fixed IP with  `192.168.0.2`  with subnet mask  `255.255.255.0`
      4. Flash image via TFTP to  `192.168.0.1`
      
      Additional Notes:
      1. The higher the 5Ghz Frequency, the lower the stability. It is recommended to use less than 5.775Ghz.
      2. If the 5Ghz frequency is too high, 5Ghz may not work.
      3. A6ns-M use shared dtsi file of A6004NS-M. (reference: /mt7621_iptime_a6004ns-m.dtsi).
      
      Signed-off-by: default avatarSeongUk Moon <antegral@antegral.net>
      [convert CRLF to LF]
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      9c8ccdcd
    • Kyoungkyu Park's avatar
      ramips: add support for HUMAX E2 · 6041c693
      Kyoungkyu Park authored
      
      HUMAX E2 (also known as HUMAX QUANTUM E2) is a 2.4/5GHz band AC router,
      based on MediaTek MT7620A.
      
      Specifications:
      - SoC: MT7620A
      - RAM: DDR2 64MB
      - Flash: SPI NOR 8MB (MXIC MX25L6405D)
      - WiFi:
        - 2.4GHz: SoC internal
        - 5GHz: MT7610E
      - Ethernet: 1x 10/100Mbps
        - Switch: SoC internal
      - UART: J2 (57600 8N1)
        - pinout: [3V3] (RXD) (GND) (TXD)
      
      Installation and Recovery via TFTP:
      1. Connect ethernet cable between Router port and PC Ethernet port.
      2. Set your computer to a static IP **192.168.1.1**
      3. Turn the device off and wait a few seconds. Hold the WPS button on front
         of device and insert power.
      4. Send a firmware image to **192.168.1.6** using TFTP.
         You can use any TFTP client. (tftp, curl, Tftpd64...)
      5. Wait until Power LED stop flashing. **DO NOT TURN OFF DEVICE!**
         The device will be automatically rebooted.
      
      Signed-off-by: default avatarKyoungkyu Park <choryu.park@choryu.space>
      6041c693
  2. Jan 13, 2022
  3. Jan 07, 2022
    • Nick McKinney's avatar
      ramips: add support for Linksys EA6350 v4 · e0a574d4
      Nick McKinney authored
      
      Specifications:
      - SoC: MT7621DAT (880MHz, 2 Cores)
      - RAM: 128 MB
      - Flash: 128 MB NAND
      - Ethernet: 5x 1GiE MT7530
      - WiFi: MT7603/MT7613
      - USB: 1x USB 3.0
      
      This is another MT7621 device, very similar to other Linksys EA7300
      series devices.
      
      Installation:
      
      Upload the generated factory.bin image via the stock web firmware
      updater.
      
      Reverting to factory firmware:
      
      Like other EA7300 devices, this device has an A/B router configuration
      to prevent bricking.  Hard-resetting this device three (3) times will
      put the device in failsafe (default) mode.  At this point, flash the
      OEM image to itself and reboot.  This puts the router back into the 'B'
      image and allows for a firmware upgrade.
      
      Troubleshooting:
      
      If the firmware will not boot, first restore the factory as described
      above.  This will then allow the factory.bin update to be applied
      properly.
      
      Signed-off-by: default avatarNick McKinney <nick@ndmckinney.net>
      e0a574d4
    • Liangkuan Yang's avatar
      ramips: add support for RAISECOM MSG1500 X.00 · bc7d36ba
      Liangkuan Yang authored
      
      RAISECOM MSG1500 X.00 is a 2.4/5 GHz band 11ac (Wi-Fi 5) router.
      Apart from the general model, there are two ISP customized models:
      China Mobile and China Telecom.
      
      Specifications:
      
      - SoC: Mediatek MT7621AT
      - RAM: 256MiB DDR3
      - Flash: 128MiB NAND
      - Ethernet: 5 * 10/100/1000Mbps: 4 * LAN + 1 * WAN
        - Switch: MediaTek MT7530 (SoC)
      - WLAN: 1 * MT7615DN Dual-Band 2.4GHz 2T2R (400Mbps) 5GHz 2T2R (867Mbps)
      - USB: 1 * USB 2.0 port
      - Button: 1 * RESET button, 1 * WPS button, 1 * WIFI button
      - LED: blue color: POWER, WAN, WPS, 2.4G, 5G, LAN1, LAN2, LAN3, LAN4, USB
      - UART: 1 * serial port header (4-pin)
      - Power: DC 12V, 1A
        - Switch: 1 * POWER switch
      
      MAC addresses as verified by vendor firmware:
      
      use   address             source
      LAN   C8:XX:XX:3A:XX:E7   Config   "protest_lan_mac"  ascii  (label)
      WAN   C8:XX:XX:3A:XX:EA   Config   "protest_wan_mac"  ascii
      5G    C8:XX:XX:3A:XX:E8   Factory  "0x4"              hex
      2.4G  CA:XX:XX:4A:XX:E8   [not on flash]
      
      The increment of the 4th byte for the 2.4g address appears to vary.
      Reported cases:
      
             5g                 2.4g         increment
       C8:XX:XX:90:XX:C3  CA:XX:XX:C0:XX:C3  0x30
       C8:XX:XX:3A:XX:08  CA:XX:XX:4A:XX:08  0x10
       C8:XX:XX:3A:XX:E8  CA:XX:XX:4A:XX:E8  0x10
      
      Since increment is inconsistent and there is no obvious pattern
      in swapping bytes, and the 2.4g address has local bit set anyway,
      it seems safer to use the LAN address with flipped byte here in
      order to prevent collisions between OpenWrt devices and OEM devices
      for this interface. This way we at least use an address as base
      that is definitely owned by the device at hand.
      
      Notes:
      
      1. The vendor firmware allows you to connect to the router by telnet.
         (known version 1.0.0 can open telnet.)
         There is no official binary firmware available.
         Backup the important partitions data:
         "Bootloader", "Config", "Factory", and "firmware".
         Note that with the vendor firmware the memory is detected only 128MiB
         and the last 512KiB in NAND flash is not used.
      
      2. The POWER LED is default on after press POWER switch.
         The WAN and LAN1 - 4 LEDs are wired to ethernet switch.
         The WPS LED is controlled by MT7615DN's GPIO.
         Currently there is no proper way to configure it.
      
      3. At the time of adding support the wireless config needs to be set up
         by editing the wireless config file:
      
       * Setting the country code is mandatory, otherwise the router loses
         connectivity at the next reboot. This is mandatory and can be done
         from luci. After setting the country code the router boots correctly.
         A reset with the reset button will fix the issue and the user has to
         reconfigure.
      
       * This is minor since the 5g interface does not come up online although
         it is not set as disabled. 2 options here:
      
         1- Either run the "wifi" command. Can be added from LuCI in system -
            startup - local startup and just add wifi above "exit 0".
      
         2- Or add the serialize option in the wireless config file as shown
            below. This one would work and bring both interfaces automatically
            at every boot:
      
            config wifi-device 'radio0'
                option serialize '1'
      
            config wifi-device 'radio1'
                option serialize '1'
      
      Flash instructions using initramfs image:
      
      1. Press POWER switch to power down if the router is running.
      
      2. Connect PC to one of LAN ports, and set
         static IP address to "10.10.10.2", netmask to "255.255.255.0",
         and gateway to "10.10.10.1" manually on the PC.
      
      3. Push and hold the WIFI button, and then power up the router.
         After about 10s (or you can call the recovery page, see "4" below)
         you can release the WIFI button.
         There is no clear indication when the router
         is entering or has entered into "RAISECOM Router Recovery Mode".
      
      4. Call the recovery page for the router at "http://10.10.10.1".
         Keep an eye on the "WARNING!! tip" of the recovery page.
         Click "Choose File" to select initramfs image, then click "Upload".
      
      5. If image is uploaded successfully, you will see the page display
         "Device is upgrading the firmware... %".
         Keep an eye on the "WARNING!! tip" of the recovery page.
         When the page display "Upgrade Successfully",
         you can set IP address as "automatically obtain".
      
      6. After the rebooting (PC should automatically obtain an IP address),
         open the SSH connection, then download the sysupgrade image
         to the router and perform sysupgrade with it.
      
      Flash back to vendor firmware:
      
       See "Flash instructions 1 - 5" above.
       The only difference is that in step 4
       you should select the vendor firmware which you backup.
      
      Signed-off-by: default avatarLiangkuan Yang <ylk951207@gmail.com>
      bc7d36ba
    • Rodrigo Araujo's avatar
      ramips: add support for Joowin WR758AC V1 and V2 · 766733e1
      Rodrigo Araujo authored
      This commit adds support for Joowin (aka Comfast) WR758AC V1 and V2
      devices.
      
      Both have the same wall AP/repeater form factor and differ only
      in the 5Ghz chipset (V1 has MT7662, V2 has MT7663).
      
      OpenWrt developers forum page:
      https://forum.openwrt.org/t/87355
      
      
      
      Specifications:
      
       - CPU: MediaTek MT7628AN (580MHz)
       - Flash: 8MB
       - RAM: 64MB DDR2
       - 2.4 GHz: 802.11b/g/n (MT7603)
       - 5 GHz: 802.11ac (V1 has MT7662, V2 has MT7663)
       - Antennas: 4x external single band antennas
       - LAN: 1x 10/100M
       - LED: Wifi 3x blue. Programmable
       - Button: WPS
      
      MAC addresses as verified by OEM firmware:
      
      use address source
      LAN *:83 factory 0xe000
      2g *:85 factory 0x4
      5g *:86 factory 0x8004
      
      How to install:
      1- Setup a TFTP server on a machine with IP address 192.168.1.10/24
      2- Name the image as `firmware_auto.bin` and place it on the root of the
      TFTP server
      3- Connect the device via Ethernet, it should pick and flash the image
      
      Signed-off-by: default avatarRodrigo Araujo <araujo.rm@gmail.com>
      766733e1
  4. Jan 01, 2022
    • Sungbo Eo's avatar
      ramips: add support for ipTIME T5004 · a1deab0e
      Sungbo Eo authored
      
      ipTIME T5004 is a 5-port Gigabit Ethernet router, based on MediaTek MT7621A.
      
      Specifications:
      * SoC: MT7621AT
      * RAM: 128 MiB
      * Flash: NAND 128 MiB
      * Ethernet: 5x 1GbE
        * Switch: SoC built-in
      * UART: J4 (57600 baud)
        * Pinout: [3V3] (TXD) (RXD) (GND)
      
      Installation via web interface:
      1.  Flash **initramfs** image through the stock web interface.
      2.  Boot into OpenWrt and perform sysupgrade with sysupgrade image.
      
      Revert to stock firmware via recovery mode:
      1.  Press reset button, power up the device, wait >15s for CPU LED
          to stop blinking.
      2.  Upload stock image to TFTP server at 192.168.0.1.
      
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      a1deab0e
  5. Dec 29, 2021
    • WonJung Kim's avatar
      ramips: add support for ipTIME A3004T · 2dde2416
      WonJung Kim authored
      
      ipTIME A3004T is a 2.4/5GHz band router, based on Mediatek MT7621.
      
      Specifications:
       - SoC: MT7621 (880MHz)
       - RAM: DDR3 256M
       - Flash: NAND 128MB  (Macronix NAND 128MiB 3,3V 8-bit)
       - WiFi:
         - 2.4GHz: MT7615E
         - 5GHz : MT7615E
       - Ethernet:
         - 4x LAN
         - 1x WAN
       - USB: 1 * USB3.0 port
       - UART:
         - 3.3V, TX, RX, GND / 57600 8N1
      
      Installation via web interface:
       1. Flash initramfs image using OEM's Recovery mode
       2. Boot into OpenWrt and perform sysupgrade with sysupgrade image.
      
      Revert to stock firmware:
       - Flash stock firmware via OEM's Recovery mode
      
      How to use OEM's Recovery mode:
       1. Power up with holding down the reset key until CPU LED stop blinking.
       2. Set fixed ip with `192.168.0.2` with subnet mask `255.255.255.0`
       3. Flash image via tftp to `192.168.0.1`
      
      Additional Notes:
       This router shares one MT7915E chip for both 2.4Ghz/5Ghz.
       radio0 will not working on 5Ghz as it's not connected to the antenna.
      
      Signed-off-by: default avatarWonJung Kim <git@won-jung.kim>
      (added led dt-bindings)
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      2dde2416
    • Sungbo Eo's avatar
      ramips: add support for WeVO AIR DUO · 482a7e23
      Sungbo Eo authored
      
      WeVO AIR DUO is a 1-bay NAS & 802.11ac (Wi-Fi 5) router, based on
      MediaTek MT7620A.
      
      Specifications:
      * SoC: MT7620A
      * RAM: 64 MiB
      * Flash: SPI NOR 16 MiB
      * USB & SATA bridge controller: JMicron JMS567
        * SATA 6Gb/s: 2.5" drive slot
        * USB 3.0: Micro-B
        * USB 2.0: connected to SoC
      * Wi-Fi:
        * 2.4 GHz: SoC built-in
        * 5 GHz: MT7612EN
      * Ethernet: 5x 1GbE
        * Switch: MT7530WU
      * UART: 4-pin 1.27 mm pitch through-hole (57600 baud)
        * Pinout: (3V3)|(RXD) (TXD) (GND)
      
      Notes:
      * The drive is accessible through the external USB port only when the
        router is turned off.
      
      Installation via web interface:
      1.  Flash **initramfs** image through the stock web interface.
          The image filename should have ".upload" extension.
      2.  Boot into OpenWrt and perform sysupgrade with sysupgrade image.
      
      Revert to stock firmware:
      1.  Perform sysupgrade with stock image.
      
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      482a7e23
  6. Dec 19, 2021
    • David Bauer's avatar
      ramips: work around duplicate MAC address on U6 Lite · b1d483b8
      David Bauer authored
      
      The UniFi 6 Lite has two MAC addresses for the 2.4 and 5GHz radio in
      it's EEPROM partition.
      
      On my unit these are
      
      F4 92 BF A0 BB 6F
      F6 92 BF A0 BB 6F
      
      The problem with these is that mac80211 increases the first octet by
      2, which leads to conflicting MAC addresses between radios.
      
      Work around this problem for now by increasing the last octet by 1 on
      the 5 GHz radio.
      
      Ubiquiti increases the last octet by 2 for each subsequent VAP created
      per radio. Ideally we should do the same, however this functionality is
      currently lacking from mac80211.
      
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      b1d483b8
  7. Dec 13, 2021
  8. Dec 12, 2021
    • Kyoungkyu Park's avatar
      ramips: add support for HUMAX E10 · 9a1b9a42
      Kyoungkyu Park authored
      
      HUMAX E10 (also known as HUMAX QUANTUM E10) is a 2.4/5GHz band AC router,
      based on MediaTek MT7621A.
      
      Specifications:
      - SoC: MT7621A
      - RAM: DDR3 128MB
      - Flash: SPI NOR 16MB (MXIC MX25L12805D)
      - WiFi:
        - 2.4GHz: MT7615
        - 5GHz: MT7615
      - Ethernet: 2x 10/100/1000Mbps
        - Switch: SoC internal
      - USB: 1x USB 2.0 Type-A
      - UART: J1 (57600 8N1)
        - pinout: [3V3] (RXD) (GND) (TXD)
      
      Installation via web interface:
      - Flash **factory** image through the stock web interface.
      
      Recovery procedure:
      1. Connect ethernet cable between Router **LAN** port and PC Ethernet port.
      2. Set your computer to a static IP **192.168.1.1**
      3. Turn the device off and wait a few seconds. Hold the WPS button on front
         of device and insert power.
      4. Send a firmware image to **192.168.1.6** using TFTP.
         You can use any TFTP client. (tftp, curl, Tftpd64...)
      - It can accept both images which is
        HUMAX stock firmware dump (0x70000-0x1000000) image
        and OpenWRT **sysupgrade** image.
      
      Signed-off-by: default avatarKyoungkyu Park <choryu.park@choryu.space>
      [remove trailing whitespace]
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      9a1b9a42
  9. Dec 05, 2021
    • Sergey Ryazanov's avatar
      ramips: add support for Zbtlink ZBT-WG1602 · 7e89421a
      Sergey Ryazanov authored
      
      Zbtlink ZBT-WG1602 is a Wi-Fi router intendent to use with WWAN
      (UMTS/LTE/3G/4G) modems. The router board offsers a couple of miniPCIe
      slots with USB and SIM only and another one pure miniPCIe slot as well
      as five Gigabit Ethernet ports (4xLAN + WAN).
      
      Specification:
      
      * SoC: MT7621A
      * RAM: 256/512 MiB
      * Flash: 16/32 MiB (SPI NOR)
      * external watchdog (looks like Torexsemi XC6131B)
      * Eth: 10/100/1000 Mbps Ethernet x5 ports (4xLAN + WAN)
      * WLAN 2GHz: MT7603EN (.11n, MIMO 2x2)
      * WLAN 5GHz: MT7612EN (.11ac, MIMO 2x2)
      * WLAN Ants: detachable x2, shared by 2GHz & 5GHz radios
      * miniPCIe: 2x slots with USB&SIM + 1x slot with regular PCIe bus
      * WWAN Ants: detachable x4
      * External storage: microSD (SDXC) slot
      * USB: 2.0 Type-A port
      * LED: 11 (5 per Eth phy, 3 SoC controlled, 2 WLAN 2/5 controlled, 1
             power indicator)
      * Button: 1 (reset)
      * UART: console (115200 baud)
      * Power: DC jack (12 V / 2.5 A)
      
      Additional HW information:
      
      * SoC USB port #1 is shared by internal miniPCIe slot and external
        Type-A USB port, USB D+/D- lines are toggled between ports using a
        GPIO controlled DPDT switch.
      * Power of the USB enabled miniPCIe slots can be individually controlled
        using dedicated GPIO lines.
      * Vendor firmware feeds the external watchdog with 1s pulses. GPIO
        watchdog driver is able to either generate a 1us pulses or toggle the
        output line. 1us is not enough for the external watchod timer, so
        the line toggling driver mode is utilized.
      
      Installation:
      
      Vendor's firmware is OpenWrt (LEDE) based, so the sysupgrade image can
      be directly used to install OpenWrt. Firmware must be upgraded using the
      'force' and 'do not save configuration' command line options (or
      correspondig web interface checkboxes) since the vendor firmware is from
      the pre-DSA era.
      
      Signed-off-by: default avatarSergey Ryazanov <ryazanov.s.a@gmail.com>
      7e89421a
  10. Dec 04, 2021
    • Yuchan Seo's avatar
      ramips: add support for ipTIME A3004NS-dual · c33eb037
      Yuchan Seo authored
      
      ipTIME A3004NS-dual is a 2.4/5GHz band router, based on Mediatek MT7621.
      
      Specifications:
      - SoC: MT7621 (880MHz)
      - RAM: DDR3 256M
      - Flash: SPI NOR 16MB
      - WiFi:
       - 2.4GHz: MT7602E
       - 5GHz : MT7612E
      - Ethernet:
       - 4x LAN
       - 1x WAN
      - USB: 1 * USB3.0 port
      - UART:
        - 3.3V, TX, RX, GND / 57600 8N1
      
      Installation via web interface:
      - 1. Flash Initramfs image using OEM Firmware's web GUI
      - 2. Boot into OpenWrt and perform Sysupgrade with sysupgrade image.
      
      Revert to stock firmware:
      - 1. Boot into OpenWrt and perform Sysupgrade with OEM Stock Firmware image.
      
      Signed-off-by: default avatarYuchan Seo <hexagonwin@disroot.org>
      Reviewed-by: default avatarSungbo Eo <mans0n@gorani.run>
      c33eb037
  11. Dec 03, 2021
    • Pawel Dembicki's avatar
      ramips: mt7620: Enable PHY aneg of Lava LR-25G001 · a82fa5bc
      Pawel Dembicki authored
      In 20b09a21 Lava LR-25G001 router have problem with two inactive
      ethernet ports. JBOOT bootloader didn't configure ethernet devices by default.
      The same situation was there. It is required to enable all phy ports.
      This is fragment of stock bootlog:
      
      switch reg write_athr offset=90, value=2b0
      switch reg write_athr offset=8c, value=2b0
      switch reg write_athr offset=88, value=2b0
      switch reg write_athr offset=84, value=2b0
      switch reg write_athr offset=80, value=2b0
      
      This patch adds proper registers configuration ar8337 initvals.
      0x2b0 value causes force flow control configuration, 0x1200 was used
      instead (flow control config auto-neg with phy). [1]
      
      When switch is now ok, let's fix port numeration too.
      
      Fixes: 20b09a21 ("ramips: add support for Lava LR-25G001")
      
      [1] https://github.com/openwrt/openwrt/pull/4806#issuecomment-982019858
      
      
      
      Signed-off-by: default avatarPawel Dembicki <paweldembicki@gmail.com>
      a82fa5bc
  12. Nov 20, 2021
    • Thomas Aldrian's avatar
      ramips: add support for Wavlink WL-WN576A2 · b28443f8
      Thomas Aldrian authored
      
      This commit adds support for the Wavlink WL-WN576A2 wall-plug wireles
      repeater / router. It is also sold under the name SilverCrest SWV 733 B1.
      
      Device specs:
      
      - CPU: MediaTek MT7628AN
      - Flash: 8MB
      - RAM: 64MB
      - Bootloader: U-Boot
      - Ethernet: 1x 10/100 Mbps
      - 2.4 GHz: b/g/n SoC
      - 5 GHz: a/n/ac MT7610EN
      - Buttons: WPS, reset, sliding switch (ap/repeater)
      - LEDs: 5x wifi status, 1x LAN/WAN, 1x WPS
      
      Flashing:
      
      U-Boot launches a TFTP client if WPS button is held during boot.
      
      - Server IP: 192.168.10.100
      - Firmware file name: firmware.bin
      
      Device will reboot automatically. First boot takes about 90s.
      
      Coelner (waenger@gmail.com) is the original author, but I have made some
      fixes. He does not wish to sign off using his real name.
      
      Signed-off-by: default avatarThomas Aldrian <dev.aldrian@gmail.com>
      b28443f8
  13. Nov 06, 2021
  14. Oct 31, 2021
    • Sergio Paracuellos's avatar
      ramips: add support for HiLink HLK-7621A evaluation board · eb00fb8f
      Sergio Paracuellos authored
      Specifications:
      - SoC: MediaTek MT7621AT
      - RAM: 256 MB (DDR3)
      - Flash: 32 MB SPI NOR 44MHz
      - Switch: 1 WAN, 4 LAN (Gigabit)
      - LEDs: 1 WAN, 4 LAN (controlled by PHY)
      - USB Ports: 1 x USB2, 1 x USB3
      - WLAN: 1 x 2.4, 5 GHz 866Mbps (MT7612E)
      - Button: 1 button (reset)
      - UART Serial: UART1 as console : 57600 baud
      - Power: 12VDC, 1A
      
      Installation:
      Update openWRT firmware using internal GNUBEE uboot:
      https://github.com/gnubee-git/GnuBee-MT7621-uboot
      
      By HTTP: Initial uboot address is http://10.10.10.123, your address
      needs to be 10.10.10.x, and mask 255.255.255.0.
      By TFTP: Uboot is in client mode, the address of the firmware must
      be tftp://10.10.10.3/uboot.bin
      
      
      
      Recovery:
      Manufacturer provides MTK OpenWrt 14.07 source code, compile then
      flash it by uboot.
      HLK-7621A is a stamp hole package module for embedded development,
      users have to design IO boards to use it.
      
      MAC addresses:
      - u-boot-env contains a placeholder address:
        > mtd_get_mac_ascii u-boot-env ethaddr
        03:17:73:ab:cd:ef
      - phy0 gets a valid-looking address:
        > cat /sys/class/ieee80211/phy0/macaddress
        f8:62:aa:**:**:a8
      - Calibration data for &pcie2 contains a valid address, however the
        zeros in the right half look like it's not real:
        8c:88:2b:00:00:1b
      - Since it's an evaluation board and there is no solid information
        about the MAC address assignment, the ethernet MAC address is left random.
      
      Signed-off-by: default avatarChen Yijun <cyjason@bupt.edu.cn>
      [add keys and pcie nodes to properly support evaluation board]
      Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
      [remove ethernet address, wrap lines properly]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      eb00fb8f
    • Eduardo Santos's avatar
      ramips: add support for Xiaomi MiWifi 3C · 3c97fb43
      Eduardo Santos authored
      This commit adds support for Xiaomi MiWiFi 3C device.
      
      Xiaomi MiWifi 3C has almost the same system architecture
      as the Xiaomi Mi WiFi Nano, which is already officially
      supported by OpenWrt.
      
      The differences are:
      
       - Numbers of antennas (4 instead of 2). The antenna management
         is done via the µC. There is no configuration needed in the
         software code.
       - LAN port assignments are different. LAN1 and WAN are
         interchanged.
      
      OpenWrt Wiki: https://openwrt.org/toh/xiaomi/mir3c
      
      OpenWrt developers forum page:
      https://forum.openwrt.org/t/support-for-xiaomi-mi-3c
      
      Specifications:
      
       - CPU: MediaTek MT7628AN (575MHz)
       - Flash: 16MB
       - RAM: 64MB DDR2
       - 2.4 GHz: IEEE 802.11b/g/n with Integrated LNA and PA
       - Antennas: 4x external single band antennas
       - WAN: 1x 10/100M
       - LAN: 2x 10/100M
       - LED: 1x amber/blue/red. Programmable
       - Button: Reset
      
      MAC addresses as verified by OEM firmware:
      
      use address source
      LAN *:92 factory 0x28
      WAN *:92 factory 0x28
      2g *:93 factory 0x4
      
      OEM firmware uses VLAN's to create the network interface for WAN and LAN.
      
      Bootloader info:
      The stock bootloader uses a "Dual ROM Partition System".
      OS1 is a deep copy of OS2.
      The bootloader start OS2 by default.
      To force start OS1 it is needed to set "flag_try_sys2_failed=1".
      
      How to install:
      1- Use OpenWRTInvasion to gain telnet, ssh and ftp access.
         https://github.com/acecilia/OpenWRTInvasion
      
      
         (IP: 192.168.31.1 - Username: root - Password: root)
      2- Connect to router using telnet or ssh.
      3- Backup all partitions. Use command  "dd if=/dev/mtd0 of=/tmp/mtd0".
         Copy /tmp/mtd0 to computer using ftp.
      4- Copy openwrt-ramips-mt76x8-xiaomi_miwifi-3c-squashfs-sysupgrade.bin
         to /tmp in router using ftp.
      5- Enable UART access and change start image for OS1.
      ```
      nvram set uart_en=1
      nvram set flag_last_success=1
      nvram set boot_wait=on
      nvram set flag_try_sys2_failed=1
      nvram commit
      ```
      6- Installing Openwrt on OS1 and free OS2.
      ```
      mtd erase OS1
      mtd erase OS2
      mtd -r write /tmp/openwrt-ramips-mt76x8-xiaomi_miwifi-3c-squashfs-sysupgrade.bin OS1
      ```
      
      Limitations: For the first install the image size needs to be less
      than 7733248 bits.
      
      Thanks for all community and especially for this device:
      minax007, earth08, S.Farid
      
      Signed-off-by: default avatarEduardo Santos <edu.2000.kill@gmail.com>
      [wrap lines, remove whitespace errors, add mediatek,mtd-eeprom to
       &wmac, convert to nvmem]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      3c97fb43
  15. Oct 30, 2021
    • Jani Partanen's avatar
      ramips: fix LAVA LR-25G001 broken wifi led triggers · e06aaba4
      Jani Partanen authored
      
      LED labels for this device are different in 01_leds file and in device
      DTS. Switch to DT triggers, which works on Telewell TW-4 (LTE) clone
      device.
      
      This has not been tested on the LR-25G001 itself, just on the clone
      mentioned above.
      
      Fixes: 20b09a21 ("ramips: add support for Lava LR-25G001")
      
      Signed-off-by: default avatarJani Partanen <rtfm@iki.fi>
      [rephrase commit title/message]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      e06aaba4
    • Michal Kozuch's avatar
      ramips: add support for TP-Link RE305 v3 · c12ef2f7
      Michal Kozuch authored
      Specs (same as in v1):
      - MT7628AN (575 MHz)
      - 64MB RAM
      - 8MB of flash (SPI NOR)
      - 1x 10/100Mbps Ethernet (MT7628AN built-in switch with vlan)
      - 1x 2.4GHz wifi (MT7628AN)
      - 1x 5Ghz wifi (MT7612E)
      - 4x LEDs (5 GPIO-controlled)
      - 1x reset button
      - 1x WPS button
      
      The only and important difference between v1 & v3 is in flash memory
      layout, so pls don't interchange these 2 builds!
      
      Installation through web-ui (on OEM factory firmware):
      1. Visit http://tplinkrepeater.net or the configured IP address of
         your RE305 v3 (default 192.168.0.254).
      2. Log in with the password you've set during initial setup of the
         RE305 (there is no default password).
      3. Go to Settings -> System Tools -> Firmware upgrade
      4. Click Browse and select the OpenWRT image with factory.bin suffix
         (not sysupgrade.bin)
      5. A window with a progress bar will appear. Wait until it completes.
      6. The RE305 will reboot into OpenWRT and serve DHCP requests on the
         ethernet port.
      7. Connect an RJ45 cable from the RE305 to your computer and access
         LuCI at http://192.168.1.1/
      
       to configure (or use ssh).
      
      Disassembly:
      Just unscrew 4 screws in the corners & take off the back cover.
      Serial is exposed to the right side of the main board (in the middle)
      and marked with TX/RX/3V3/GND, but the holes are filled with solder.
      
      Installation through serial:
      1. connect trough serial (1n8, baudrate=57600)
      2. setup the TFTP server and connect it via ethernet
         (ipaddr=192.168.0.254 of device, serverip=192.168.0.184 - your pc)
      3. boot from a initramfs image first (choose 1 in the bootloader
         options)
      4. test it a bit with that, then proceed to run sysupgrade build
      
      MAC addresses as verified by OEM firmware:
      
        use  OpenWrt  address  reference
        LAN  eth0     *:d2     label
        2g   wlan0    *:d1     label - 1
        5g   wlan1    *:d0     label - 2
      
        The label MAC address can be found in config 0x2008.
      
      Signed-off-by: default avatarMichal Kozuch <servitkar@gmail.com>
      [redistribute WLAN node properties between DTS/DTSI, remove
       compatible on DTSI, fix indent/wrapping, split out firmware-utils
       change]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      c12ef2f7
  16. Oct 26, 2021
  17. Oct 17, 2021
  18. Oct 04, 2021
  19. Sep 26, 2021
  20. Sep 25, 2021
    • David Bauer's avatar
      ramips: add support for Ubiquiti USW-Flex · a9839697
      David Bauer authored
      
      Hardware
      --------
      MediaTek MT7621AT
      16M SPI-NOR Macronix MX25L12835FMI
      Microchip PD69104B1 4-Channel PoE-PSE controller
      TI TPS2373 PoE-PD controller
      
      PoE-Controller
      --------------
      
      By default, the PoE outputs do not work with OpenWrt. To make them output
      power, install the "poemgr" package from the packages feed.
      This package can control the PD69104B1 PSE controller.
      
      Installation
      ------------
      
      1. Connect to the booted device at 192.168.1.20 using username/password
         "ubnt" via SSH.
      
      2. Add the uboot-envtools configuration file /etc/fw_env.config with the
         following content
      
         $ echo "/dev/mtd1 0x0 0x1000 0x10000 1" > /etc/fw_env.config
      
      3. Update the bootloader environment.
      
         $ fw_setenv boot_openwrt "fdt addr \$(fdtcontroladdr);
           fdt rm /signature; bootubnt"
         $ fw_setenv bootcmd "run boot_openwrt"
      
      4. Transfer the OpenWrt sysupgrade image to the device using SCP.
      
      5. Check the mtd partition number for bs / kernel0 / kernel1
      
         $ cat /proc/mtd
      
      6. Set the bootselect flag to boot from kernel0
      
         $ dd if=/dev/zero bs=1 count=1 of=/dev/mtdblock4
      
      7. Write the OpenWrt sysupgrade image to both kernel0 as well as kernel1
      
         $ dd if=openwrt.bin of=/dev/mtdblock6
         $ dd if=openwrt.bin of=/dev/mtdblock7
      
      8. Reboot the device. It should boot into OpenWrt.
      
      Restore to UniFi
      ----------------
      
      To restore the vendor firmware, follow the Ubiquiti UniFi TFTP
      recovery guide for access points. The process is the same for
      the Flex switch.
      
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      a9839697
    • INAGAKI Hiroshi's avatar
      ramips: add support for I-O DATA WN-DX2033GR · 7ff0efa0
      INAGAKI Hiroshi authored
      I-O DATA WN-DX2033GR is a 2.4/5 GHz band 11ac (Wi-Fi 5) router, based on
      MT7621A.
      
      Specification:
      
      - SoC		: MediaTek MT7621A
      - RAM		: DDR3 128 MiB
      - Flash		: Raw NAND 128 MiB (Macronix MX30LF1G18AC-TI)
      - WLAN		: 2.4/5 GHz
        - 2.4 GHz	: 2T2R, MediaTek MT7603E
        - 5 GHz	: 4T4R, MediaTek MT7615
      - Ethernet	: 5x 10/100/1000 Mbps
        - Switch	: MediaTek MT7530 (SoC)
      - LEDs/Keys	: 2x/3x (2x buttons, 1x slide-switch)
      - UART		: through-hole on PCB
        - J5: 3.3V, TX, RX, NC, GND from triangle mark
        - 57600n8
      - Power		: 12 VDC, 1 A
      
      Flash instruction using initramfs image:
      
      1. Boot WN-DX2033GR normally
      2. Access to "http://192.168.0.1/
      
      " and open firmware update page
         ("ファームウェア")
      3. Select the OpenWrt initramfs image and click update ("更新") button
         to perform firmware update
      4. On the initramfs image, download the sysupgrade.bin image to the
         device and perform sysupgrade with it
      5. Wait ~120 seconds to complete flashing
      
      Notes:
      
      - The hardware of WN-DX2033GR and WN-AX2033GR are almost the same, and
        it is certified under the same radio-wave related regulations in Japan
      
      - The last 0x80000 (512 KiB) in NAND flash is not used on stock firmware
      
      - stock firmware requires "customized uImage header" (called as "combo
        image") by MSTC (MitraStar Technology Corp.), but U-Boot doesn't
      
        - uImage magic ( 0x0 - 0x3 ) : 0x434F4D42 ("COMB")
        - header crc32 ( 0x4 - 0x7 ) : with "data length" and "data crc32"
        - image name   (0x20 - 0x37) : model ID and firmware versions
        - data length  (0x38 - 0x3b) : kernel + rootfs
        - data crc32   (0x3c - 0x3f) : kernel + rootfs
      
      - There are 2x important flags in the flash:
      
        - bootnum   : select os partition for booting (persist, 0x4)
      
          - 0x01: firmware
          - 0x02: firmware_2
      
        - debugflag : allow interrupt kernel loader, it's named as "Z-LOADER"
          (Factory, 0xFE75)
      
          - 0x00: disable debug
          - 0x01: enable debug
      
      MAC addresses:
      
      LAN     : 50:41:B9:xx:xx:90 (Factory, 0xE000 (hex) / Ubootenv, ethaddr (text))
      WAN     : 50:41:B9:xx:xx:92 (Factory, 0xE006 (hex))
      2.4 GHz : 50:41:B9:xx:xx:90 (Factory, 0x4    (hex))
      5 GHz   : 50:41:B9:xx:xx:91 (Factory, 0x8004 (hex))
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      7ff0efa0
Loading