Skip to content
Snippets Groups Projects
  1. Feb 17, 2018
  2. Feb 16, 2018
  3. Feb 15, 2018
  4. Feb 14, 2018
    • Jo-Philipp Wich's avatar
      ramips: fix reporting effective VLAN ID on MT7621 switches · dc7a1e85
      Jo-Philipp Wich authored
      
      On MT7621, the REG_ESW_VLAN_VTIM reads are undefined, causing swconfig
      to always report `vid: 0` in swconfig show output.
      
      Since a 4K VLAN table is used on this platform, the VLAN ID always
      correponds to the actual VLAN table index so provide a specific MT7621
      implementation of the get_vid callback which returns the table index
      as VLAN ID.
      
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      dc7a1e85
    • Jo-Philipp Wich's avatar
      ramips: properly map pvid for vlans with remapped vid on mt7530/762x switches · 341b1427
      Jo-Philipp Wich authored
      
      Currently, untagged port primary vlan IDs are set to the VLAN table index,
      and not the actual VLAN ID, breaking configurations with IDs deviating from
      the VLAN index.
      
      Fix the issue by resolving the per-port pvid property to the target VLAN ID
      value before committing to the hardware.
      
      Fixes FS#991, FS#1147, FS#1341
      
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      341b1427
    • Jo-Philipp Wich's avatar
      ramips: don't clobber vlans with remapped vid on mt7530/762x switches · bb4002c7
      Jo-Philipp Wich authored
      
      Avoid overwriting vlan entries with remapped vid in later iterations of
      the vlan enumeration loop of mt7530_apply_config().
      
      Fix the problem by refactoring the code to first reset the entire table,
      then reprogram only vlans with members to prevent overwriting configured
      vlans with unconfigured ones.
      
      Fixes FS#1147, FS#1341
      
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      bb4002c7
    • Jo-Philipp Wich's avatar
      at91: fix image building with CONFIG_TARGET_MULTI_PROFILE · b9aca834
      Jo-Philipp Wich authored
      
      The current image build code has a number of race conditions and interface
      contract violations in the custom image build steps:
      
       - Build/install-zImage, solely used by at91, relies on $(PROFILE_SANITIZED)
         which is not available when building with CONFIG_TARGET_MULTI_PROFILE
      
       - Build/at91-sdcard, which may run concurrently, creates scratch files at
         fixed locations and manipulates target files directly which can lead
         to file corruption and other unexpected failures
      
      Rename the install-zImage macro to at91-install-zImage and move it to the
      at91 image Makefile since this target is the sole user. Also utilize "$@"
      as output file name and switch the usage of $(PROFILE_SANITIZED) to
      $(DEVICE_NAME) in order to fix naming under multi profile builds.
      
      Fix the at91-sdcard macro to construct scratch file paths relative to "$@",
      which is guaranteed to be unique and store the final artifact output in "$@"
      as well, instead of inside $(BIN_DIR). The generic image build code takes
      care of moving a build steps "$@" output to the final destination in a
      concurrency-safe manner.
      
      Finally remove the broken install-zImage from the generic image-commands
      Makefile.
      
      Fixes: d7a679a0 ("at91: Install zImage.")
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      b9aca834
    • John Crispin's avatar
      mediatek: bump to v4.14 · 7762c07c
      John Crispin authored
      
      This drops support for all the !emmc EVB and adds banannaPi-R2
      Also drop mtkhnat until the nftables offoad driver is ready
      
      Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
      7762c07c
    • Dongming Han's avatar
      ipq806x: add support for GL.iNet GL-B1300 · 04d3308b
      Dongming Han authored
      This patch adds support for GL.iNet GL-B1300
      
      Specification:
      - SOC:        IPQ4028 / QCA Dakota
      - RAM:        256 MiB
      - FLASH:      32 MiB
      - ETH:        Qualcomm Atheros QCA8075 Gigabit Switch (2 x LAN, 1 x WAN)
      - USB:        1 x 3.0 (via Synopsys DesignWare DWC3 controller in the SoC)
      - WLAN1:      Qualcomm Atheros QCA4028 2.4GHz 802.11bgn 2:2x2
      - WLAN2:      Qualcomm Atheros QCA4028 5GHz 802.11a/n/ac 2:2x2
      - INPUT:      one reset and one WPS button
      - LEDS:       3 leds: Power, WIFI(only for 2.4G currently), and one reserved
      - UART:       1 x UART on PCB (3.3V, TX, RX, GND) - 115200 8N1
      
      Installation:
      Method 1:
      - use serial port to stop uboot
      - uboot command: run lf
      Method 2:
      - push down reset button and power on
      - wait until three leds constantly on then release
      - upgrade by uboot web at http://192.168.1.1
      
      
      Note:
      - the sysupgrade image need to be renamed to lede-gl-b1300.bin in both method.
      - the sysupgrade image can be automatically downloaded if tftp server at
        192.168.1.2 have that file.
      - the wifi led will be flashing when writing image.
      
      Signed-off-by: default avatarDongming Han <handongming@gl-inet.com>
      04d3308b
    • John Crispin's avatar
      ubox: update to latest git HEAD · 88a41074
      John Crispin authored
      
      128bc35 logread: fix reconnect logd logic
      66347ec logread: move the code setting up the request blob out of the main loop
      975a258 logread: move output connection setup code out of main loop
      b81bea7 logread: cleanup pid file handling
      d73e7d2 ubox: Replace strerror(errno) with %m format.
      
      Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
      88a41074
    • Evgeniy Didin's avatar
      archs38: add HSDK board · d55a05fc
      Evgeniy Didin authored
      Synopsys DesignWare HSDK (which stands for ARC HS
      Development Kit) is the latest and greatest development
      platform that sports quad-core ARC HS38 in real silicon.
      
      Most noticeable features of the board are:
       * Quad-core ARC HS38 CPU running at 1GHz
       * 4Gb of DDR
       * Built-in Vivante GPU (well supported via open source
         Etnaviv drivers)
       * Built-in Wi-Fi/Bluetooth module (RedPine RS-9113)
      
      And as usual we have:
       * [micro] SD-card slot
       * 2 USB 2.0 ports
       * 1Gbit Ethernet port
       * Built-in Digilent JTAG probe
       * Serial port accessible via micro-USB port
      
      For more information about HSDK board visit:
      https://www.synopsys.com/dw/ipdir.php?ds=arc-hs-development-kit
      
      
      
      Signed-off-by: default avatarEvgeniy Didin <Evgeniy.Didin@synopsys.com>
      CC: Alexey Brodkin <abrodkin@synopsys.com>
      CC: Hauke Mehrtens <hauke@hauke-m.de>
      CC: John Crispin <john@phrozen.org>
      d55a05fc
    • Evgeniy Didin's avatar
      archs38: switch to kmod-usb2 · 0a1a672e
      Evgeniy Didin authored
      
      We have managed to get USB 2.0 working good enough
      on all archs38 platforms so we're ready to switch
      to much faster USB 2.0.
      
      Signed-off-by: default avatarEvgeniy Didin <Evgeniy.Didin@synopsys.com>
      CC: Alexey Brodkin <abrodkin@synopsys.com>
      CC: Hauke Mehrtens <hauke@hauke-m.de>
      CC: John Crispin <john@phrozen.org>
      0a1a672e
    • Kevin Darbyshire-Bryant's avatar
      generic: swconfig: reduce lock duration on sysfs files · 0b4e3b1b
      Kevin Darbyshire-Bryant authored
      
      sysfs attributes 'port_mask' & 'speed_mask' held locks whilst doing
      mundane tasks such as sprintf.  Refactor code to reduce length of time
      locks are held unnecessarily.
      
      Signed-off-by: default avatarKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
      0b4e3b1b
    • Kevin Darbyshire-Bryant's avatar
      generic: swconfig: add mode led attribute · eb8fbc43
      Kevin Darbyshire-Bryant authored
      
      Add sysfs 'mode' attribute to swconfig controlled LEDs.
      
      swconfig 'link state' LEDs blink in the presence of port traffic.  This
      behaviour becomes more obvious as switches start to support
      get_port_stats() e.g. commits 0369e358,
      3056d09b,
      4ddbc43c,
      4d8a66d9.
      
      This blinking can be confusing/distracting if the switch has other LEDs
      used to indicate traffic.  Provide a 'mode' sysfs attribute that
      controls the blink on traffic behaviour.
      
      mode - either "none" (LED is off) or a space separated list of one or more:
      
      link: LED's normal state reflects whether the link is up (has carrier) or not
      tx:   LED blinks on transmitted data
      rx:   LED blinks on receive data
      
      Note that 'link' considers any port speed mask that may be applicable.
      e.g. if an LED is configured to indicate 1Gbit link speed and mode is
      set to 'link rx tx' but the port is connected at 100Mbit then the LED
      will not light or blink. A mode of 'tx rx' will blink in the presence of
      traffic only if the port matches the rate (if configured)
      This maintains compatibility with existing behaviour.
      
      Attribute is 'link tx rx' by default for backwards compatible behaviour.
      
      Many thanks to Thibaut Varene for providing a more sensible led_event
      routine after I had mangled the original, and other coding style hints.
      
      Signed-off-by: default avatarKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
      Acked-by: default avatarThibaut VARENE <hacks@slashdirt.org>
      eb8fbc43
  5. Feb 13, 2018
Loading