1. 18 Apr, 2020 2 commits
  2. 12 Apr, 2020 1 commit
    • Adrian Schmutzler's avatar
      ramips: mt7621: tidy up names for Ubiquiti devices · e8931b30
      Adrian Schmutzler authored
      
      
      The "proper" vendor prefix for Ubiquiti is "ubnt", this is used in
      all targets except ramips and also recommended by the kernel.
      
      This patch adjusts the various board/image/device name variables
      accordingly. Since we touch it anyway, this also adds the space
      in "EdgeRouter X" as a hyphen to those variables to really make
      them consistent with the model name.
      
      While at it, create a real shared definition for the devices in
      image/mt7621.mk instead of deriving one device from another.
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      e8931b30
  3. 08 Apr, 2020 1 commit
    • Adrian Schmutzler's avatar
      ramips: mt7621: harmonize naming scheme for Mikrotik · f761f405
      Adrian Schmutzler authored
      
      
      So far, image/device/board names for Mikrotik devices in mt7621 have
      been used quite inconsistently.
      
      This patch harmonizes the naming scheme by applying the same style
      as used lately in ath79, i.e. using "RouterBOARD" as separate word
      in the model name (instead of RB prefix for the number) and deriving
      the board/device name from that (= make lower case and replace spaces
      by hyphens).
      
      This style has already been used for most the model/DEVICE_MODEL
      variables in mt7621, so this is essentially just adjusting the remaining
      variables to that.
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      f761f405
  4. 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
  5. 10 Jul, 2019 1 commit
  6. 18 May, 2019 1 commit
    • Nicholas Smith's avatar
      ramips: add support for Telco Electronics X1 · 73e0f52b
      Nicholas Smith authored
      
      
      Hardware:
      SoC:   MT7621
      DRAM:  256MB DDR3
      Flash: 16MB SPI-NOR
      WiFi:  2.4GHz: MT7603 @ PCIe0
      WiFi:  5.8GHz: MT7612 @ PCIe1
      Modem: Sierra Wireless MC74xx
      
      Interfaces:
      GBE RJ45 x5
      mPCIe    x2
      UART     x1
      I2C      x1
      JTAG     x1
      UIM      x1
      LEDs     x6
      
      Flash instructions:
      Flash from within the factory bootloader, firmware web interface or CLI using
      sysupgrade -F -n
      Signed-off-by: default avatarNicholas Smith <mips171@icloud.com>
      73e0f52b
  7. 17 May, 2019 2 commits
    • Kristian Evensen's avatar
      ramips: Add support for ZBT WE826-E · 86937671
      Kristian Evensen authored
      
      
      ZBT WE826-E is a dual-SIM version of the ZBT WE826. The router has the
      following specifications:
      
      - MT7620A (580 MHz)
      - 128MB RAM
      - 32MB of flash (SPI NOR)
      - 5x 10/100Mbps Ethernet (MT7620A built-in switch)
      - 1x microSD slot
      - 1x miniPCIe slot (only USB2.0 bus)
      - 2x SIM card slots (standard size)
      - 1x USB2.0 port
      - 1x 2.4GHz wifi (rt2800)
      - 10x LEDs (4 GPIO-controlled)
      - 1x reset button
      
      The following have been tested and working:
      - Ethernet switch
      - wifi
      - miniPCIe slot
      - USB port
      - microSD slot
      - sysupgrade
      - reset button
      
      Installation and recovery:
      
      In order to install OpenWRT the first time or recover the router, you
      can use the web-based recovery system. Keep the reset button pressed
      during boot and access 192.168.1.1 in your browser when your machine
      obtains an IP address.  Upload the firmware to start the recovery
      process.
      
      How to swap SIMs:
      
      You control which SIM slot to use by writing 0/1 to
      /sys/class/gpio/gpio13/value. In order for the change to take effect,
      you can either use AT-commands (AT+CFUN) or power-cycle the modem (write
      0/1 to /sys/class/gpio/gpio14/value).
      Signed-off-by: default avatarKristian Evensen <kristian.evensen@gmail.com>
      86937671
    • Kristian Evensen's avatar
      ramips: Add support for Head Weblink HDRM200 · 52b59a98
      Kristian Evensen authored
      
      
      Head Weblink HDRM200 is a dual-sim router based on MT7620A. The detailed
      specifications are:
      
      - MT7620A (580MHz)
      - 64MB RAM
      - 16MB of flash (SPI NOR)
      - 6x 10/100Mbps Ethernet (MT7620A built-in switch)
      - 1x microSD slot
      - 1x miniPCIe slot (only USB2.0 bus). Device is shipped with a SIMCOM
      SIM7100E LTE modem.
      - 2x SIM slots (standard size)
      - 1x USB2.0 port
      - 1x 2.4GHz wifi (rt2800)
      - 1x 5GHz wifi (mt7612)
      - 1x reset button
      - 1x WPS button
      - 3x GPIO-controllable LEDs
      - 1x 10 pin terminal block (RS232, RS485, 4 x GPIO)
      
      Tested:
      - Ethernet switch
      - Wifi
      - USB slot
      - SD card slot
      - miniPCIe-slot
      - sysupgrade
      - reset button
      
      Installation instructions:
      
      Installing OpenWRT for the first time requires a bit of work, as the
      board does not ship with OpenWRT. In addition, the bootloader
      automatically reboots when installing an image over tftp. In order to
      install OpenWRT on the HDRM200, you need to do the following:
      
      * Copy the initramfs-image to your tftp-root (default filename is
      test.bin) and configure networking accordingly (default server IP is
      10.10.10.3, client 10.10.10.123). Start your tftp server.
      * Open the board and connect to UART. The pins are exposed and clearly
      marked.
      * Boot the board and press 1.
      * Either use the default filename and client/server IP-addresses, or
      specify your own.
      
      The image should now be loaded to memory and board boot. If the router
      reboots while the image is loading, you need to try again. Once the
      board has booted, copy the sysupgrade-image to the router and run
      sysupgrade in order to install OpenWRT to the flash.
      
      Notes:
      
      - You control which SIM slot to use by writing 0/1 to
      /sys/class/gpio/gpio0/value. In order for the change to take
      effect, you can either use AT-commands (AT+CFUN) or power-cycle the
      modem (write 0/1 to /sys/class/gpio/gpio21/value).
      - RS485 is available on /dev/ttyS0.
      - RS232 is available on /dev/ttyS1.
      - The name of the ioX-gpios map to the labels on the casing.
      Signed-off-by: default avatarKristian Evensen <kristian.evensen@gmail.com>
      [fixed whitespace issue and merge conflict in target.mk]
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      52b59a98
  8. 24 Mar, 2019 1 commit
    • Pawel Dembicki's avatar
      ramips: add support for DLINK DIR-510L · 67fced9b
      Pawel Dembicki authored
      The DIR-510L Wireless Router are based on the MT7620A SoC.
      
      Specification:
      
      -MediaTek MT7620A (580 Mhz)
      -128 MB of RAM
      -16 MB of FLASH
      -802.11bgn radio
      -1x 10/100 Mbps Ethernet
      -2x internal, non-detachable antennas
      -UART (J3) header on PCB (57600 8n1)
      -1x bi-color LED (GPIO-controlled), 2x button
      -JBOOT bootloader
      
      Known issues:
      -Ethernet port is used as LAN
      -No communication with charger IC. (uart bitbang needed)
      
      Installation:
      Apply factory image via d-link http web-gui.
      
      How to revert to OEM firmware:
      1.) Push the reset button and turn on the power. Wait until LED start blinking (~10sec.)
      2.) Upload original factory image via JBOOT http (IP: 192.168.123.254)
      3.) If http doesn't work, it can be done with curl command:
          curl -F FN=@XXXXX.bin http://192.168.123.254/upg
      
      
          where XXXXX.bin is name of firmware file.
      Signed-off-by: default avatarPawel Dembicki <paweldembicki@gmail.com>
      [fixed whitespace issue in 10-rt2x00-eeprom]
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      67fced9b
  9. 05 Jan, 2019 1 commit
    • Anton Arapov's avatar
      ramips: cleanup the RB750Gr3 support · 6ba58b7b
      Anton Arapov authored
      
      
      Always enable the pwr led and use the usr led for boot status indication.
      
      Rename nodes in the dts, to match what is recommend in the devicetree
      specification.
      
      Increase the maximum spi frequency to 20MHz and drop the m25p,chunked-io
      which isn't required on mt7621.
      
      Use the BTN_0 keycode for the mode button. This board doesn't have any
      wireless.
      
      Use a more descriptive label for the reset button and the GPIO enabling
      the usb vcc supply.
      
      Use the beeper kernel module for the buzzer.
      
      Fix the pinmux to switch only pins used as GPIOs to the GPIO function.
      Add support for the PoE enable GPIO to the userspace. The PoE power
      status can be read via GPIO7. Since OpenWrt doesn't have support for
      reading inputs from userspace, prepare only the pinmux for the GPIO.
      Signed-off-by: default avatarAnton Arapov <arapov@gmail.com>
      Signed-off-by: default avatarThibaut VARÈNE <hacks@slashdirt.org>
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      6ba58b7b
  10. 15 Jul, 2017 1 commit
  11. 07 Jun, 2017 1 commit
    • Sven Roederer's avatar
      ramips: add support for Ubiquiti EdgeRouter X-SFP · 9715beb0
      Sven Roederer authored
      
      
      This patch adds support for the Ubiquiti EdgeRouter X-SFP and
      improves support for the EdgeRouter X (PoE-passthrough).
      
      Specification:
      - SoC: MediaTek MT7621AT
      - Flash: 256 MiB
      - RAM: 265 MiB
      - Ethernet: 5 x LAN (1000 Mbps)
      - UART: 1 x UART on PCB (3.3V, RX, TX, GND) - 57600 8N1
      - EdgeRouter X:
        - 1 x PoE-Passtrough (Eth4)
        - powered by Wallwart or passive PoE
      - EdgeRouter X-SFP:
        - 5 x PoE-Out (24V, passive)
        - 1 x SFP (unknown status)
        - powered by Wallwart (24V)
      
      Doesn't work:
      * SoC has crypto engine but no open driver.
      * SoC has nat acceleration, but no open driver.
      * This router has 2MB spi flash soldered in but MT
        nand/spi drivers do not support pin sharing,
        so it is not accessable and disabled. Stock
        firmware could read it and it was empty.
      
      Installation
      
      via vendor firmware:
      - build an Initrd-image (> 3MiB) and upload the factory-image
      - initrd can have luci-mod-failsafe
      - flash final firmware via LuCI / sysupgrade on rebooted system
      
      via TFTP:
      - stop uboot into tftp-load into option "1"
      - upload factory.bin image
      Signed-off-by: default avatarSven Roederer <devel-sven@geroedel.de>
      9715beb0