Skip to content
Snippets Groups Projects
  1. Feb 04, 2020
  2. Feb 03, 2020
    • August Huber's avatar
      ath79: add support for COMFAST CF-E560AC · ae61d21c
      August Huber authored
      
      This commit adds support for the COMFAST CF-E560AC, an ap143 based
      in-wall access point.
      
      Specifications:
       - SoC: Qualcomm Atheros QCA9531
       - RAM: 128 MB DDR2 (Winbond W971GG6SB-25)
       - Storage: 16 MB NOR (Winbond 25Q128JVSO)
       - WAN: 1x 10/100 PoE ethernet (48v)
       - LAN: 4x 10/100 ethernet
       - WLAN1: QCA9531 - 802.11b/g/n - 2x SKY85303-21 FEM
       - WLAN2: QCA9886 - 802.11ac/n/a - 2x SKY85735-11 FEM
       - USB: one external USB2.0 port
       - UART: 3.3v, 2.54mm headers already populated on board
       - LED: 7x external
       - Button: 1x external
       - Boot: U-Boot 1.1.4 (pepe2k/u-boot_mod)
      
      MAC addressing:
      
      - stock
        LAN    *:40 (label)
        WAN    *:41
        5G     *:42
        2.4G   *:4a
      
      - flash (art partition)
        0x0    *:40 (label)
        0x6    *:42
        0x1002 *:41
        0x5006 *:43
      
      This device contains valid MAC addresses in art 0x0, 0x6, 0x1002 and
      0x5006, however the vendor firmware only reads from art:0x0 for the LAN
      interface and then increments in 02_network. They also jump 8 addresses
      for the second wifi interface (2.4 GHz). This behavior has been duplicated
      in the DTS and ath10k hotplug to align addresses with the vendor firmware
      v2.6.0.
      
      Recovery instructions:
      
      This device contains built-in u-boot tftp recovery.
      
      1. Configure PC with static IP 192.168.1.10/24 and tftp server.
      2. Place desired image at /firmware_auto.bin at tftp root.
      3. Connect device to PC, and power on.
      4. Device will fetch flash from tftp, flash and reboot into new image.
      
      Signed-off-by: default avatarAugust Huber <auh@google.com>
      [move jtag_disable_pins, remove unnecessary statuses in DTS, remove
      duplicate entry in 11-ath10k-caldata, remove hub_port0 label in DTS]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      ae61d21c
    • Michal Cieslakiewicz's avatar
      ath79: WNDR3700 v2: add dash before version in device name · 3b99d676
      Michal Cieslakiewicz authored
      
      Adapt Netgear WNDR3700v2 device identification string to ath79 naming
      scheme by changing from 'wndr3700v2' to 'wndr3700-v2' (affects config,
      makefile, init scripts and device tree definition).
      
      Signed-off-by: default avatarMichal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
      3b99d676
  3. Feb 02, 2020
    • Felix Fietkau's avatar
      mt76: update to the latest version · 8216766a
      Felix Fietkau authored
      
      8f33a1e936fd mt76: mt7615: report firmware log event messages
      43db699b1ad8 mt76: mt7615: increment the MAC address of the secondary PHY (DBDC)
      161d1c73c62a mt7615: use local MAC address for the second PHY
      9453dbe921b9 mt76: set dma-done flag for flushed descriptors
      65745c5ac503 mt76: fix handling full tx queues in mt76_dma_tx_queue_skb_raw
      14f37f8d86eb mt76: dma: do not write cpu_idx on rx queue reset until after refill
      99ce68625473 mt76: mt7603: increase dma mcu rx ring size
      62c447e2c75f mt76: enable Airtime Queue Limit support
      1c258940d818 mt76: mt7615: report TSF information
      2d22ef618712 mt76: mt7615: add per-phy mib statistics
      8d690f3bfbc4 mt76: mt7615: add a get_stats() callback
      b06177ce387c mt76: move dev_irq tracepoint in mt76 module
      5ac9889c33f1 mt76: move mac_txdone tracepoint in mt76 module
      7801ebd775e3 mt76: mt7615: add tracing support
      fd877a17cc0a mt76: mt76x2: get rid of leftover target
      039471502578 mt76: mt7615: initialize radar specs from host driver
      b208305e6275 mt76: mt7615: fix endianness in mt7615_mcu_set_eeprom
      fd1fa6860666 mt76: move WIPHY_FLAG_HAS_CHANNEL_SWITCH in mt76_phy_init
      c94afbe3d70a mt76: mt7615: remove leftover routine declaration
      29fec3a9b0b4 mt76: rely on mac80211 utility routines to compute airtime
      2bb518752b3f mt76: mt76x02u: avoid overwrite max_tx_fragments
      a0f1ff0473b5 mt76: mt76u: check tx_status_data pointer in mt76u_tx_tasklet
      a5dca118bf40 mt76: mt76u: add mt76u_process_rx_queue utility routine
      06caaf0d33b4 mt76: mt76u: add mt76_queue to mt76u_get_next_rx_entry signature
      cf8e2590e46b mt76: mt76u: add mt76_queue to mt76u_refill_rx signature
      0077b30ce2c8 mt76: mt76u: use mt76_queue as mt76u_complete_rx context
      06d466b86981 mt76: mt76u: add queue id parameter to mt76u_submit_rx_buffers
      580ddd175eee mt76: mt76u: move mcu buffer allocation in mt76x02u drivers
      acc227e14d95 mt76: mt76u: introduce mt76u_free_rx_queue utility routine
      aa28404bf287 mt76: mt76u: stop/free all possible rx queues
      885fe4a29bb9 mt76: mt76u: add mt76u_alloc_rx_queue utility routine
      c85dec848303 mt76: mt76u: add queue parameter to mt76u_rx_urb_alloc
      ca7991699109 mt76: mt76u: resume all rx queue in mt76u_resume_rx
      e2a39697fb0a mt76: mt76u: introduce mt76u_alloc_mcu_queue utility routine
      39fb59ce927b mt76: mt76u: add {read/write}_extended utility routines
      8c6cf328eb1f mt76: mt76u: take into account different queue mapping for 7663
      e742618fc5ce mt76: mt76u: introduce mt76u_skb_dma_info routine
      23b3328e52fe mt76: mt76u: add endpoint to mt76u_bulk_msg signature
      82bedb294534 mt76: mt76u: introduce MT_DRV_RX_DMA_HDR flag
      2db2bab099d0 firmware: update mt7615 N9 firmware to 20200107155603
      60e27689603d firmware: update MT7615 CR4 firmware to 20190121161307
      d15a4bbb3f69 mt76: mt7615: add __aligned(4) to txp structs
      1c4ff4f2dc7f mt76: mt7615: move mmio related code from pci.c to mmio.c
      51b1eb7a4902 mt76: mt7615: split up firmware loading functions
      f84b590b6454 mt76: mt7615: store N9 firmware version instead of CR4
      92bafd4b1bfc mt76: mt7615: fix MT_INT_TX_DONE_ALL definition for MT7622
      13a4269a1bfa mt76: mt7615: add dma and tx queue initialization for MT7622
      ab94a85efb18 mt76: mt7615: add eeprom support for MT7622
      f0b02d8115b0 mt76: mt7615: add calibration free support for MT7622
      fd3ae9a342ae mt76: mt7615: disable 5 GHz on MT7622
      80d3681b404d mt76: mt7615: implement probing and firmware loading on MT7622
      79808e62324e mt76: mt7615: implement DMA support for MT7622
      bddcbb25cd0e mt76: mt7615: decrease rx ring size for MT7622
      6cd5c381eaee mt76: mt7615: disable DBDC on MT7622
      f66b480434e9 mt76: mt7615: add Kconfig entry for MT7622
      68f38eea39b5 firmware: add firmware for MT7622 built-in WiFi
      7882bbd25c38 mt76: mt7615: fix and rework tx power handling
      0f06914acfb4 mt76: mt7615: implement hardware reset support
      db97358df47e mt76: mt7615: add support for testing hardware reset
      b9d9f91b1522 mt76: mt7615: fix adding active monitor interfaces
      fd216cb5b2f9 mt76: mt7615: fix monitor mode on second PHY
      269de7c22957 firmware: fix version number for upcoming mt7615 mcu v2 support patches
      9f8c6c4a20b4 mt76: mt7615: simplify mcu_set_bmc flow
      ff32af25f83e mt76: mt7615: simplify mcu_set_sta flow
      f16433cd7889 mt76: mt7615: add a helper to encapsulate sta_rec operation
      77b9d8586307 mt76: mt7615: add starec operating flow for firmware v2
      170b21f9ec78 mt76: mt7615: use new tag sta_rec_wtbl
      648ce1aaa493 mt76: mt7615: switch mt7615_mcu_set_tx_ba to v2 format
      721673759d82 mt76: mt7615: switch mt7615_mcu_set_rx_ba to v2 format
      
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      8216766a
    • John Crispin's avatar
      mediatek: add wmac devicetree node for MT7622 · a0678625
      John Crispin authored
      
      Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      a0678625
    • Hans Dedecker's avatar
      uci: update to version 2020-01-27 · f6e07c82
      Hans Dedecker authored
      
      e8d8373 file: fix segfault in uci_parse_option
      aa5e77a file: fix segfault in uci_parse_config
      
      Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
      f6e07c82
    • Daniel Golle's avatar
      kernel: hwmon: package mcp3021 module · 2699ccd0
      Daniel Golle authored
      
      Package kernel module for Linear Technology MCP3021/3221 I2C connected
      current and voltage monitor chips.
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      2699ccd0
    • Adrian Schmutzler's avatar
      ath79: add common definition for Device/tplink-v2 · 4897bf0c
      Adrian Schmutzler authored
      
      This adds a shared definition Device/tplink-v2 to common-tp-link.mk.
      Though currently only one device in ath79 uses it, putting it in
      the common file seems more organized. The definitions are based
      on the implementation in ramips target, where a lot of devices
      is using tplink-v2-* commands already.
      
      The '-V "ver. 2.0"' suffix for Archer D50 v1 can be removed because
      it's default in Build/tplink-v2-image anyway.
      
      While at it, add TPLINK_HWREVADD and TPLINK_HVERSION to DEVICE_VARS,
      which seems to have been overlooked when adding Archer D50 v1.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      4897bf0c
    • Adrian Schmutzler's avatar
      ath79: rename tplink-loader-okli to tplink-safeloader-okli · 8a6994eb
      Adrian Schmutzler authored
      
      This renames Device/tplink-loader-okli to Device/tplink-safeloader-okli
      since the latter more accurately describes the combination of
      tplink-safeloader and loader-okli use there. The old version might
      be confused with other uses of the okli loader.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      8a6994eb
    • Adrian Schmutzler's avatar
      ath79: rename Device/tplink to Device/tplink-v1 · 9c37c5ef
      Adrian Schmutzler authored
      
      As we have tplink-v2-header and tplink-v2-image recipes as well,
      this patch renames the Device/tplink definition to Device/tplink-v1,
      as it's using the tplink-v1-* commands. This should provide easier
      distinction in the future.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      9c37c5ef
  4. Feb 01, 2020
  5. Jan 31, 2020
    • Kevin Darbyshire-Bryant's avatar
      kernel: connmark set-dscpmark follow upstreamimg attempt · a1cfe0dc
      Kevin Darbyshire-Bryant authored
      
      I'm having another attempt at trying to getting the 'store dscp into
      conntrack connmark' functionality into upstream kernel, since the
      restore function (act_ctinfo) has been accepted.
      
      The syntax has changed from 'savedscp' to 'set-dscpmark' since that
      conforms more closely with existing functionality.
      
      4.14 backport is more of a hack since the structure versioning
      mechanism isn't in place.
      
      Signed-off-by: default avatarKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
      a1cfe0dc
    • Kevin Darbyshire-Bryant's avatar
      iptables: set-dscpmark follow upstreamimg attempt · e481df07
      Kevin Darbyshire-Bryant authored
      
      I'm having another attempt at trying to getting the 'store dscp into
      conntrack connmark' functionality into upstream kernel, since the
      restore function (act_ctinfo) has been accepted.
      
      The syntax has changed from 'savedscp' to 'set-dscpmark' since that
      conforms more closely with existing functionality.
      
      Signed-off-by: default avatarKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
      e481df07
    • Roger Pueyo Centelles's avatar
      ath79: add support for Ubiquiti NanoStation Loco M (XW) · 633c4304
      Roger Pueyo Centelles authored
      
      This commit adds support for the NanoStation Loco M2/M5 XW devices
      on the ath79 target (support was long ago available on ar71xx).
      
      Specifications:
      
       - AR9342 SoC @ 535 MHz
       - 64 MB RAM
       - 8 MB SPI flash
       - 1x 10/100 Mbps Ethernet, 24 Vdc PoE-in
       - AR8032 switch
       - 2T2R 5 GHz radio, 22 dBm
       - 13 dBi built-in antenna
       - POWER/LAN green LEDs
       - 4x RSSI LEDs (red, orange, green, green)
       - UART (115200 8N1) on PCB
      
      Flashing via TFTP:
      
       - Use a pointy tool (e.g., pen cap, paper clip) and keep the reset
         button on the device or on the PoE supply pressed
       - Power on the device via PoE (keep reset button pressed)
       - Keep pressing until LEDs flash alternatively LED1+LED3 =>
         LED2+LED4 => LED1+LED3, etc.
       - Release reset button
       - The device starts a TFTP server at 192.168.1.20
       - Set a static IP on the computer (e.g., 192.168.1.21/24)
       - Upload via tftp the factory image:
         $ tftp 192.168.1.20
         tftp> bin
         tftp> trace
         tftp> put openwrt-ath79-generic-xxxxx-ubnt_nanostation-loco-m-xw-squashfs-factory.bin
      
      Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
      633c4304
    • Adrian Schmutzler's avatar
      ath79: do not set inherited phy-mode/status properties again · 6c407fb5
      Adrian Schmutzler authored
      
      There are several cases where phy-mode and status properties are
      set again in DTS(I) files although those were set to the same values
      in parent DTSI files already. Remove those cases (and thus also stop
      their proliferation by copy/paste).
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      6c407fb5
    • Adrian Schmutzler's avatar
      ath79: harmonize ethernet-phy naming scheme · c8190713
      Adrian Schmutzler authored
      
      A minority of ethernet-phy definitions seems to use numbers in label,
      name and reg property relatively random. This patch aligns their
      use to have the same numeric value for all of them.
      
      While at it, improve order of properties/add newlines for the ethX
      nodes where necessary.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      c8190713
  6. Jan 30, 2020
  7. Jan 29, 2020
    • Adrian Schmutzler's avatar
      ramips: remove duplicate DEVICE_PACKAGES for TP-Link Archer C20i · 4ecd6510
      Adrian Schmutzler authored
      
      DEVICE_PACKAGES is specified twice for the same device. Remove the
      first (=older) assignment.
      
      Fixes: 40692f0f ("ramips: mt7620: select only the matching mt76 driver")
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      4ecd6510
    • Adrian Schmutzler's avatar
      ath79: add support for GL.iNet 6408/6416 (GL.iNet V1) · b4d3110a
      Adrian Schmutzler authored
      
      This ports the GL.iNet 6408/6416 from ar71xx.
      
      The GL-Connect GL.iNet v1 routers are basically a TP-Link TL-WR710N with
      more DRAM/Flash and console/GPIO header in the same small form-factor.
      
      Specifications:
       - SoC: Atheros AR9331
       - CPU: 400 MHz
       - Flash: 8/16 MiB
       - RAM: 64 MiB
       - WiFi: 2.4 GHz b/g/n (SoC)
       - Ethernet: 2x 100M ports (LAN/WAN)
       - USB: 1x 2.0
      
      The difference between 6408 and 6416 is just the flash size. It looks like
      only the 16 MiB version has been advertised, while the 6408 is a modified
      version. There are also 1-port versions sold by third parties.
      
      Installation:
      Install the sysupgrade image via stock firmware GUI or upload it via uboot
      (web-based). The device will be available at 192.168.1.1.
      
      Attention: In ar71xx, the same board name is used for both flash versions.
      So, please make sure you flash the correct ath79 image when upgrading.
      
      This has been device-tested on a GL.iNet 6416.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      b4d3110a
    • Jo-Philipp Wich's avatar
      opkg: update to latest Git HEAD · c69c20c6
      Jo-Philipp Wich authored
      
      80d161e opkg: Fix -Wformat-overflow warning
      c09fe20 libopkg: fix skipping of leading whitespace when parsing checksums
      
      Fixes: CVE-2020-7982
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      c69c20c6
    • David Bauer's avatar
      ramips: fix NETGEAR R6260 EEPROM offset · 4716c843
      David Bauer authored
      
      The EEPROM offset for the NETGEAR R6260 is incorrect, thus no valid
      calibration data is used.
      
      Fix this only for the NETGEAR R6260, as it's currently unknown whether
      or not other boards are affected.
      
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      4716c843
    • David Bauer's avatar
      ramips: add support for GL.iNet microuter-N300 · b30f2281
      David Bauer authored
      
      The GL.iNet microuter-N300 (internally referred as MT300N-v4) is a
      pocket-size travel router. It is essentially identical to the VIXMINI
      (internally referred as MT300N-v3) but with double the RAM and
      SPI-flash.
      
      Additionally, set the label-mac for both the VIXMINI as well as the
      microuter-N300.
      
      Hardware
      --------
      SoC:   MediaTek MT7628NN
      RAM:   128M DDR2
      FLASH: 16M
      LED:   Power - WLAN
      BTN:   Reset
      UART:  115200 8N1
             TX and RX are labled on the board as pads next to the SoC
      
      Installation via web-interface
      ------------------------------
      1. Visit the web-interface at 192.168.8.1
         Note: The ethernet port is by default WAN. So you need to connect to
         the router via WiFi
      
      2. Navigate to the Update tab on the left side.
      
      3. Select "Local Update"
      
      4. Upload the OpenWrt sysupgrade image.
         Note: Make sure you select not to preserve the configuration.
      
      Installation via U-Boot
      -----------------------
      1. Hold down the reset button while powering on the device.
         Wait for the LED to flash 5 times.
      
      2. Assign yourself a static IPv4 in 192.168.1.0/24
      
      3. Upload the OpenWrt sysupgrade image at 192.168.1.1.
      
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      b30f2281
Loading