1. 04 Mar, 2020 2 commits
    • Adrian Schmutzler's avatar
      ramips: add support for NETGEAR R6700v2/AC2400 · 6e80df5e
      Adrian Schmutzler authored
      SoC: MediaTek MT7621AT
      RAM: 256M DDR3
      FLASH: 128M NAND
      WiFi: MediaTek MT7615N an+ac
      MediaTek MT7615N bgn
      ETH: MediaTek MT7621AT
      BTN: 1x Connect (WPS), 1x WLAN, 1x Reset
      LED: Power (white/amber), WAN(white/amber), 2.4G(white), 5G(white),
      USB(white) , GuestWifi(white) 4x LAN(white/amber), Wifi Button(white),
      WPS Button(white)
      
      Installation:
      
      Login to netgear webinterface and flash factory.img
      
      Based on a discontinued GitHub Pull Request by
      kuyokushin <codenamezero@protonmail.com>
      
      https://github.com/openwrt/openwrt/pull/2545
      
      NOTE: Netgear R6700 v2 have five clones: R6900 v2, R7450, Nighthawk
      AC2400, Nighthawk AC2100 and already added R6800. Rest of them  should
      be really easy supportable. Image for R6700v2 should work perfectly with
      them. Please refer:
      
      https://github.com/openwrt/openwrt/pull/2614
      
      
      
      Tested-by: Víctor Gibrán <victorgibranmz@hotmail.com> [R6700v2]
      Tested-by: John Landrum <jl31m10@yahoo.com> [AC2400]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      [add guest led to mt7621_netgear_r6700-v2.dts end edit commit message]
      Signed-off-by: default avatarPawel Dembicki <paweldembicki@gmail.com>
      6e80df5e
    • Pawel Dembicki's avatar
      ramips: mt7621: add support for Netgear R6800 · 4e931720
      Pawel Dembicki authored
      
      
      This patch adds support for the Netgear R6800, aka Netgear AC1900 and
      R6800-100PES.
      
      Specification:
      - SoC: MediaTek MT7621AT (880 MHz)
      - Flash: 128 MiB NAND
      - RAM: 256 MiB
      - Wireless: MediaTek MT7615EN b/g/n , MediaTek MT7615EN an+ac
      - LAN speed: 10/100/1000
      - LAN ports: 4
      - WAN speed: 10/100/1000
      - WAN ports: 1
      - USB 2.0
      - USB 3.0
      - Serial baud rate of Bootloader and factory firmware: 57600
      
      Known issues:
      - Device has 3 wifi LEDs: Wifi 5Ghz, Wifi 2.4Ghz and Wifi on/off.
        Wifi on/off is not used.
      
      Installation:
      - apply factory image via stock web-gui.
      
      Back to stock:
      - nmrpflash can be used to recover to the stock Netgear firmware.
      Signed-off-by: default avatarPawel Dembicki <paweldembicki@gmail.com>
      4e931720
  2. 07 Feb, 2020 1 commit
  3. 05 Feb, 2020 2 commits
    • INAGAKI Hiroshi's avatar
      ramips: add support for I-O DATA WN-AX1167GR2 · 867db0a2
      INAGAKI Hiroshi authored
      I-O DATA WN-AX1167GR2 is a 2.4/5 GHz band 11ac router, based on MediaTek
      MT7621A.
      
      Specification:
      
      - SoC		: MediaTek MT7621A
      - RAM		: DDR3 128 MiB
      - Flash		: NAND 128 MiB
      - WLAN		: MediaTek MT7615D (2.4/5 GHz, 2T2R)
      - Ethernet	: 5x 10/100/1000 Mbps
        - Switch	: MediaTek MT7621A (MT7530)
      - LEDs/Input	: 2x/3x (2x buttons, 1x slide-switch)
      - UART		: through-hole on PCB
        - J5: Vcc, TX, RX, NC, GND
        - 57600 bps
      
      Flash instruction using initramfs image:
      
      1. Boot WN-AX1167GR2 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, perform sysupgrade with squashfs-sysupgrade
      image
      5. Wait ~120 seconds to complete flashing
      
      Notes:
      
      - configuration in DeviceTree of DBDC (Dual-Band-Dual-Concurrent) mode
      for MT7615D chip is not supported in mt76 driver
      - last 0x80000 (512 KiB) in NAND flash is not used on stock firmware
      - stock firmware requires "customized uImage header" 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
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      Reviewed-by: default avatarSungbo Eo <mans0n@gorani.run>
      867db0a2
    • INAGAKI Hiroshi's avatar
      ramips: add support for I-O DATA WN-DX1167R · 3c0e2aa6
      INAGAKI Hiroshi authored
      I-O DATA WN-DX1167R is a 2.4/5 GHz band 11ac rotuer, based on MediaTek
      MT7621A.
      
      Specification:
      
      - SoC		: MediaTek MT7621A
      - RAM		: DDR3 128 MiB
      - Flash		: NAND 128 MiB
      - WLAN		: MediaTek MT7615D (2.4/5 GHz, 2T2R)
      - Ethernet	: 5x 10/100/1000 Mbps
        - Switch	: MediaTek MT7621A (MT7530)
      - LEDs/Input	: 2x/3x (2x buttons, 1x slide-switch)
      - UART		: through-hole on PCB
        - J5: Vcc, TX, RX, NC, GND
        - 57600 bps
      
      Flash instruction using initramfs image:
      
      1. Boot WN-DX1167R 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, perform sysupgrade with squashfs-sysupgrade
      image
      5. Wait ~120 seconds to complete flashing
      
      Notes:
      
      - configuration in DeviceTree of DBDC (Dual-Band-Dual-Concurrent) mode
      for MT7615D chip is not supported in mt76 driver
      - last 0x80000 (512 KiB) in NAND flash is not used on stock firmware
      - stock firmware requires "customized uImage header" by MSTC
      (MitraStar Technology Corp.), but U-Boot doesn't
        - uImage magic (0x0 - 0x3) : 0x434F4D43 (COMC)
        - 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
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      Reviewed-by: default avatarSungbo Eo <mans0n@gorani.run>
      3c0e2aa6
  4. 16 Jan, 2020 1 commit
  5. 08 Jan, 2020 1 commit
    • Adrian Schmutzler's avatar
      ramips: add label MAC address for Xiaomi MIR3G · 04222bc5
      Adrian Schmutzler authored
      
      
      The device label shows the address currently assigned to the OpenWrt
      LAN interface.
      
      Current setup is:
      LAN  *:b8  factory 0xe006  label
      WAN  *:b7  factory 0xe000
      
      For vendor FW bootlog we get (manually removed parts of the address):
      [    7.520000] set LAN/WAN LWLLL
      [    7.530000] GMAC1_MAC_ADRH -- : 0x00004031
      [    7.530000] GMAC1_MAC_ADRL -- : 0x3c****b7
      [    7.530000] GDMA2_MAC_ADRH -- : 0x00004031
      [    7.540000] GDMA2_MAC_ADRL -- : 0x3c****b8
      [    7.540000] eth1: ===> VirtualIF_open
      
      Without further information, this does not allow verification of
      the currently unexpected LAN/WAN assignment (we would expect 0xe000
      to be LAN).
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      04222bc5
  6. 05 Jan, 2020 1 commit
    • Yong-hyu Ban's avatar
      ramips: add support for ipTIME A8004T · 99dd2709
      Yong-hyu Ban authored
      
      
      ipTIME A8004T is a 2.4/5GHz band AC2600 router, based on Mediatek
      MT7621A.
      
      Specifications:
      - SoC: MT7621A
      - RAM: DDR3 256M
      - Flash: SPI NOR 16MB
      - WiFi:
        - 2.4GHz: MT7615E
        - 5GHz: MT7615E
      - Ethernet: 5x 10/100/1000Mbps
        - Switch: SoC internal
      - USB: 1 * USB3.0 port
      - UART:
        - J4: 3.3V, TX, RX, GND (3.3V is the square pad) / 57600 8N1
      - Other info:
        - J9: Unknown unpopulated header.
      
      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:
      1.  Perform sysupgrade with stock image.
      Signed-off-by: default avatarYong-hyu Ban <perillamint@quendi.moe>
      [do not enable xhci node in DTS which is already enabled in DTSI]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      99dd2709
  7. 04 Jan, 2020 1 commit
    • Maksym Medvedev's avatar
      ramips: add support for Edimax RA21S · 663b1a14
      Maksym Medvedev authored
      Edimax RA21S is a dual band 11ac router,
      based on MediaTek MT7621A and MT7615N chips.
      
      Specification:
      - SoC: MediaTek MT7621A dual-core @ 880MHz
      - RAM: 256M (Nanya NT5CC128M16IP)
      - FLASH: 16MB (Macronix MX25L12835F)
      - WiFi: 2.4/5 GHz 4T4R
        - 2.4GHz MediaTek MT7615N bgn
        - 5GHz MediaTek MT7615N nac
      - Switch: SoC integrated Gigabit Switch (4 x LAN, 1 x WAN)
      - USB: No
      - BTN: Reset, WPS
      - LED: 4 red LEDs, indistinguishable when case closed
      - UART:  through-hole on PCB.
         J1: 3.3V - RX - GND - TX / 57600-8N1.  3.3V is the square pad
      
      Installation:
      Update the factory image via the OEM web-interface
      (by default: http://192.168.2.1/
      
      )
      User: admin
      Password: 1234
      
      The sysupgrade image can be installed via TFTP
      from the U-Boot bootloader. Connect via ethernet port 2.
      
      Tested on device by @UAb5eSMn
      Signed-off-by: default avatarMaksym Medvedev <redrathnure@gmail.com>
      [split DTS and take over improvements from RG21S, extend commit
      message]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      663b1a14
  8. 23 Dec, 2019 1 commit
  9. 22 Dec, 2019 1 commit
    • Adrian Schmutzler's avatar
      ramips: add eth0 MAC address for Edimax RG21S · 02f8dbc6
      Adrian Schmutzler authored
      
      
      So far, lan/wan MAC address for Edimax RG21S are only read using
      mtd_get_mac_ascii, so eth0.1 and eth0.2 addresses are set, but
      eth0 address is random. Since the device's LAN address is the same
      as for 2.4 GHz, though, this patch set's the eth0 address based
      on the 2.4 GHz one, which can be extracted by mtd-mac-address.
      
      This will also allow to move the label MAC address setup to DT.
      
      The setup of lan_mac and wan_mac are kept in 02_network, so those
      locations are still in use, too.
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      02f8dbc6
  10. 17 Dec, 2019 1 commit
    • Adrian Schmutzler's avatar
      ramips: add label MAC address for Edimax RG21S · 2708d58c
      Adrian Schmutzler authored
      
      
      The Edimax RG21S has a label which bears two MAC addresses:
      2.4 GHz (n) and 5 GHz (n+1)
      
      The complete MAC address setup is as follows:
      2.4 GHz  *:83  factory 0x4, u-boot-env wlanaddr
      5 GHz    *:84  factory 0x8004
      LAN      *:83  u-boot-env ethaddr
      WAN      *:85  u-boot-env wanaddr
      
      Since 2.4 GHz is the first address on the label and the same
      as used for ethernet, take this one for label MAC address.
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      2708d58c
  11. 13 Dec, 2019 3 commits
    • DENG Qingfang's avatar
      ramips: add support for JCG JHR-AC876M · 1b7199c9
      DENG Qingfang authored
      
      
      JCG JHR-AC876M is an AC2600M router
      
      Hardware specs:
        SoC: MT7621AT
        2.4GHz: MT7615N 4x4 @ PCIe0
        5GHz: MT7615N 4x4 @ PCIe1
        Flash: Winbond W25Q128JVSQ 16MiB
        RAM: Nanya NT5CB128M16 256MiB
        USB 2.0 and 3.0 ports
        6 LEDs, 3 of which are connected to SoC GPIO
        Reset and WPS buttons
      
      Flash instructions:
      Stock to OpenWrt:
        Upload factory.bin in stock firmware's upgrade page,
        do not preserve settings
      
      OpenWrt to stock:
        Push and hold the reset button for 5s while power cycling to
        enter recovery mode;
        Visit 192.168.1.1 and upload stock firmware
      
      MAC addresses map:
        0x0004  *:1c  wlan2g/wan/label
        0x8004  *:20  wlan5g
        0xe000  *:1b  lan
        0xe006  *:1a  not used in stock fw
      Signed-off-by: default avatarDENG Qingfang <dengqf6@mail2.sysu.edu.cn>
      1b7199c9
    • Sungbo Eo's avatar
      ramips: add support for ipTIME A6ns-M · a972b1fb
      Sungbo Eo authored
      
      
      ipTIME A6ns-M is a 2.4/5GHz band AC1900 router, based on MediaTek MT7621A.
      
      Specifications:
      - SoC: MT7621AT
      - RAM: DDR3 128MB
      - Flash: SPI NOR 16MB
      - WiFi:
        - 2.4GHz: MT7615
        - 5GHz: MT7615
      - Ethernet: 5x 10/100/1000Mbps
        - Switch: SoC internal
      - UART:
        - J4: 3.3V, TX, RX, GND (3.3V is the square pad) / 57600 8N1
      
      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:
      1.  Perform sysupgrade with stock image.
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      a972b1fb
    • Sungbo Eo's avatar
      ramips: add support for ZIO FREEZIO · 0375c076
      Sungbo Eo authored
      
      
      ZIO FREEZIO is a 2.4/5GHz band AC1200 router, based on MediaTek MT7621A.
      
      Specifications:
      - SoC: MT7621AT
      - RAM: DDR3 128MB
      - Flash: SPI NOR 16MB
      - WiFi:
        - 2.4GHz: MT7603EN
        - 5GHz: MT7612EN
      - Ethernet: 5x 10/100/1000Mbps
        - Switch: SoC internal
      - USB: 1x 3.0
      - UART:
        - J4: 3.3V, RX, TX, GND (3.3V is the square pad) / 57600 8N1
      
      Notes:
      - FREEZIO has almost the same board as WeVO W2914NS v2.
      - Stock firmware is based on OpenWrt BB.
      
      MAC addresses in factory partition:
      0x0004: WiFi 2.4GHz (label_mac-8)
      0x002e: WAN (label_mac)
      0x8004: WiFi 5GHz (label_mac-4)
      0xe000: LAN (label_mac+1)
      
      Installation via web interface:
      1.  Access web admin page and turn on "OpenWrt UI mode".
      2.  Flash sysupgrade image through LuCI, with the "Keep settings" option
          OFF.
      
      Revert to stock firmware:
      1.  Perform sysupgrade with stock image.
          Make sure to NOT preserve settings.
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      [rebase, use mt7621_wevo_w2914ns-v2.dtsi]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      0375c076
  12. 12 Dec, 2019 3 commits
  13. 11 Dec, 2019 1 commit
  14. 07 Dec, 2019 1 commit
  15. 14 Nov, 2019 1 commit
    • Piotr Dymacz's avatar
      ramips: add support for ALFA Network Quad-E4G · e68539ac
      Piotr Dymacz authored
      
      
      ALFA Network Quad-E4G is a universal Wi-Fi/4G platform, which offers
      three miniPCIe (PCIe, USB 2.0, SIM) and a single M.2 B-key (dual-SIM,
      USB 3.0) slots, RTC and five Gigabit Ethernet ports with PoE support.
      
      Specification:
      
      - MT7621A (880 MHz)
      - 256/512 MB of RAM (DDR3)
      - 16/32+ MB of FLASH (SPI NOR)
      - optional second SPI flash (8-pin WSON/SOIC)
      - 1x microSD (SDXC) flash card reader
      - 5x 10/100/100 Mbps Ethernet, with passive PoE support (24 V) in LAN1
      - optional 802.3at/af PoE module for WAN
      - 3x miniPCIe slot (with PCIe and USB 2.0 buses, micro SIM and 5 V)
      - 1x M.2/NGFF B-key 3042 (USB 3.0/2.0, mini + micro SIM)
      - RTC (TI BQ32002, I2C bus) with backup battery (CR2032)
      - external hardware watchdog (EM Microelectronic EM6324)
      - 1x USB 2.0 Type-A
      - 1x micro USB Type-B for system serial console (Holtek HT42B534)
      - 11x LED (5 for Ethernet, 5 driven by GPIO, 1x power indicator)
      - 3x button (reset, user1, user2)
      - 1x I2C (4-pin, 2.54 mm pitch) header on PCB
      - 4x SIM (6-pin, 2.00 mm pitch) headers on PCB
      - 2x UART2/3 (4-pin, 2.54 mm pitch) headers on PCB
      - 1x mechanical power switch
      - 1x DC jack with lock (24 V)
      
      Other:
      
      - U-Boot selects default SIM slot, based on value of 'default_sim' env
        variable: '1' or unset -> SIM1 (mini), '2' -> SIM2 (micro). This board
        has additional logic circuit for M.2 SIM switching. The 'sim-select'
        will work only if both SIM slots are occupied. Otherwise, always slot
        with SIM inside is selected, no matter 'sim-select' value.
      - U-Boot enables power in all three miniPCIe and M.2 slots before
        loading the kernel
      - this board supports 'dual image' feature (controlled by 'dual_image'
        U-Boot environment variable)
      - all three miniPCIe slots have additional 5 V supply on pins 47 and 49
      - the board allows to install up to two oversized miniPCIe cards (vendor
        has dedicated MediaTek MT7615N/D cards for this board)
      - this board has additional logic circuit controlling PERSTn pins inside
        miniPCIe slots. By default, PERSTn (GPIO19) is routed to all miniPCIe
        slots but setting GPIO22 to high allows PERSTn control per slot, using
        GPIO23-25 (value is inverted)
      
      You can use the 'sysupgrade' image directly in vendor firmware which is
      based on OpenWrt (make sure to not preserve settings - use 'sysupgrade
      -n -F ...' command). Alternatively, use web recovery mode in U-Boot:
      
      1. Power the device with reset button pressed, the modem LED will start
         blinking slowly and after ~3 seconds, when it starts blinking faster,
         you can release the button.
      2. Setup static IP 192.168.1.2/24 on your PC.
      3. Go to 192.168.1.1 in browser and upload 'sysupgrade' image.
      Signed-off-by: default avatarPiotr Dymacz <pepe2k@gmail.com>
      e68539ac
  16. 13 Nov, 2019 1 commit
  17. 06 Nov, 2019 2 commits
    • Sungbo Eo's avatar
      ramips: improve support for WeVO 11AC NAS and W2914NS v2 · 62b1559b
      Sungbo Eo authored
      
      
      - remove WAN port index
      - load WAN MAC address directly from the flash
      - provide label MAC address
      - increase flash's SPI frequency to 80MHz
      - add mt76 led nodes to make WiFi LEDs work
      - drop unnecessary pinmux groups
      
      The factory partition scheme for MAC addresses (verified on both devices):
      0x4   : WiFi 2.4GHz (label_mac-9)
      0x28  : unused
      0x2e  : WAN (label_mac)
      0x8004: WiFi 5GHz (label_mac-5)
      0xe000: LAN (label_mac-1)
      0xe006: unused
      
      By improving flash speed,
      `time dd if=/dev/mtdblock3 of=/dev/null bs=64k`
      has been reduced from 14.51s to 3.11s.
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      [rebased]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      62b1559b
    • Adrian Schmutzler's avatar
      ramips: remove default case for MAC address assignment · d2b9333e
      Adrian Schmutzler authored
      
      
      So far, MAC address assignment in ramips has contained a default
      case, which defined wan_mac = eth0 + 1 for _every_ device not
      having an explicit case there.
      
      This is not desirable, as many device supporters will just not
      care or know about this definition, so another MAC address will be
      introduced by accident. In some cases the wan_mac is assigned
      although it is not needed, in other cases even addresses not
      dedicated to the device will be used (e.g. wan_mac actually is
      eth0 - 1, but during support nobody cared, so eth0 + 1 is used now,
      which might actually belong to another device ...).
      
      Thus, in this PR the former default case is converted to an
      explicit case. This one comprises all devices not being accounted
      for by other cases, reduced by those not having wan at all.
      The big number of entries for this node might be another indication
      that many of them wouldn't actually be there if there hadn't been
      default wan_mac setup.
      
      In exchange, the current "do nothing" case can be removed, as it
      will be the new default case.
      
      The devices being put in the newly created explicit case were
      determined as follows:
      
      1. Create a list of all devices based on the DTS files.
      
      2. Remove all devices already having an explicit entry setting
         their address.
      
      3. Remove all devices that only have lan set up in the first part
         of 02_network:
      
      mt7620:
         - alfa-network,tube-e4g
         - asus,rp-n53
         - buffalo,wmr-300
         - comfast,cf-wr800n
         - edimax,ew-7476rpc
         - edimax,ew-7478ac
         - elecom,wrh-300cr
         - hnet,c108
         - kimax,u25awf-h1
         - kimax,u35wf
         - kingston,mlw221
         - kingston,mlwg2
         - microduino,microwrt
         - netgear,ex2700
         - netgear,ex3700
         - netgear,wn3000rp-v3
         - planex,cs-qr10
         - planex,mzk-ex300np
         - planex,mzk-ex750np
         - ravpower,wd03
         - sercomm,na930
         - yukai,bocco
         - zbtlink,zbt-cpe102
         - zte,q7
      
      mt7621:
         - gnubee,gb-pc1
         - gnubee,gb-pc2
         - linksys,re6500
         - mikrotik,rbm11g
         - netgear,ex6150
         - thunder,timecloud
         - tplink,re350-v1
         - tplink,re650-v1
      
      mt76x8:
         - alfa-network,awusfree1
         - d-team,pbr-d1
         - glinet,vixmini
         - vocore,vocore2-lite
         - tama,w06
         - tplink,tl-mr3020-v3
         - tplink,tl-wa801nd-v5
         - tplink,tl-wr802n-v4
         - tplink,tl-wr902ac-v3
         - vocore,vocore2
         - widora,neo-16m
         - widora,neo-32m
      
      rt288x:
         - buffalo,wli-tx4-ag300n
         - dlink,dap-1522-a1
      
      rt305x:
         - allnet,all0256n-4m
         - allnet,all0256n-8m
         - allnet,all5002
         - allnet,all5003
         - alphanetworks,asl26555-16m
         - alphanetworks,asl26555-8m
         - asus,wl-330n
         - aximcom,mr-102n
         - dlink,dcs-930
         - easyacc,wizard-8800
         - hame,mpr-a2
         - hootoo,ht-tm02
         - huawei,d105
         - intenso,memory2move
         - planex,mzk-dp150n
         - rt305x dlink,dcs-930l-b1
         - sparklan,wcr-150gn
         - tenda,3g150b
         - tenda,3g300m
         - tenda,w150m
         - trendnet,tew-638apb-v2
         - unbranded,a5-v11
         - vocore,vocore-16m
         - vocore,vocore-8m
         - wansview,ncs601w
         - zorlik,zl5900v2
      
      rt3883:
         - loewe,wmdr-143n
         - omnima,hpm
      
      4. Put the remaining devices in the new case.
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      d2b9333e
  18. 05 Nov, 2019 1 commit
    • Sungbo Eo's avatar
      ramips: improve netis WF-2881 support · 763914ef
      Sungbo Eo authored
      
      
      This patch does the following:
      
      1. remove u-boot-env partition
         Stock bootloader saves env variables at 0x80000 in flash,
         and there is nothing stored at 0x30000.
         By merging the partition "u-boot-env" with "u-boot",
         the partition table becomes the same as used in stock firmware:
         00000000-00080000: "Bootloader"
         00080000-00100000: "Config"
         00100000-00140000: "Factory"
         00140000-07f80000: "Kernel"
      
      2. fix LAN/WAN MAC addresses and provide label MAC address
         Ethernet MAC addresses are stored in factory partition at:
         0xe000: LAN (label_mac)
         0xe006: WAN (label_mac+1)
      
      3. fix LAN port order
         WF-2881 LAN ports are in reverse order of switch ports.
      
      4. fix WiFi LEDs
         mt76 led nodes are added to make WiFi LEDs work.
         On top of this, mt76 node names are changed to more generic ones,
         and compatible strings are also added.
      
      5. fix pinmux groups
         uart3 and uart2 pins are used as button and led, but jtag pins are not.
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      763914ef
  19. 02 Nov, 2019 1 commit
    • Adrian Schmutzler's avatar
      ramips: split base-files into subtargets · 19724e28
      Adrian Schmutzler authored
      
      
      While most of the target's contents are split into subtargets, the
      base-files are maintained for the target as a whole.
      
      However, OpenWrt already implements a mechanism that will use (and
      even prefer) files in the subtargets' directories. This can be
      exploited to make several scripts subtarget-specific and thus save
      some space.
      
      In certain cases, keeping files in parent (=target) base-files was
      more convenient, and thus no splitting was performed for those.
      
      Note that this will increase overall code lines, but reduce code
      per subtarget.
      
      base-files ipk size reduction:
      master (mt7621)   60958 B
      split (mt7620)    46358 B (- 14.3 kiB)
      split (mt7621)    48759 B (- 11.9 kiB)
      split (mt76x8)    44948 B (- 15.6 kiB)
      split (rt288x)    43508 B (- 17.0 kiB)
      split (rt305x)    45616 B (- 15.0 kiB)
      split (rt3883)    44176 B (- 16.4 kiB)
      
      Run-tested on:
      GL.iNet GL-MT300N-V2 (mt76x8)
      D-Link DWR-116 (mt7620)
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      19724e28