Skip to content
Snippets Groups Projects
  1. Oct 15, 2019
    • David Bauer's avatar
      mpc85xx: correct TP-LINK TL-WDR4900 MAC addresses · 07e555d8
      David Bauer authored
      
      This commit fixes TP-Link TL-WDR4900 v1 MAC address assignment.
      Previously, the MAC addrss was read for the ethernet from the "config"
      partition. However, the content of this partition is dependent on the
      firmware which was previously installed on the device.
      
      Switch the MAC address source to the U-Boot partition, where the MAC
      address is always present at a fixed partition. The partition was
      previously already used for the WiFi MAC-addresses.
      
      Reviewed-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      07e555d8
    • Andreas Ziegler's avatar
      ath79: add support for UniFi AC-LR · 07c1ddf5
      Andreas Ziegler authored
      
      The Unifi AC-LR has identical hardware to the Unifi AC-Lite.
      The antenna setup is different according to the vendor,
      which explains the thicker enclosure.
      
      Therefore, it is helpful to know the exact device variant,
      instead of having "Ubiquiti UniFi-AC-LITE/LR".
      
      Signed-off-by: default avatarAndreas Ziegler <dev@andreas-ziegler.de>
      [fix legacy name in commit message; add old boardname to
      SUPPORTED_DEVICES]
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      07c1ddf5
    • Koen Vandeputte's avatar
      gdb: bump to 8.3.1 · 089b4f16
      Koen Vandeputte authored
      
      GDB 8.3.1 brings the following fixes and enhancements over GDB 8.3:
      
      PR c++/20020 (GDB segfault on printing objects)
      PR gdb/24454 (nat/x86-linux-dregs.c failed assertion)
      PR breakpoints/24541 (Incorrect evaluation of systemtap probes due to register being signed and probe expression assuming unsigned)
      PR symtab/24545 (Symbol loading performance regression with cc1)
      PR gdb/24592 (amd64->i386 linux syscall restart problem)
      PR gdb/25009 (terminate called after throwing an instance of 'srchilite::ParserException')
      PR gdb/25010 (Calls to error () can cause SIGTTOU to send gdb to the background)
      PR breakpoints/25011 (Breakpoints on file reloads broken for PIE binaries)
      
      This corrective release also brings the following testsuite fixes and
      enhancements:
      
      PR testsuite/25005 (gdb-caching-proc.exp takes a lot of time on skip_opencl_tests)
      PR testsuite/25016 (Test-case failures for -pie)
      
      GDB 8.3 includes the following changes and enhancements:
      
      * Support for new native configurations (also available as a target configuration):
           - RISC-V GNU/Linux (riscv*-*-linux*)
           - RISC-V FreeBSD (riscv*-*-freebsd*)
      
      * Support for new target configurations:
           - CSKY ELF (csky*-*-elf)
           - CSKY GNU/Linux (csky*-*-linux)
           - NXP S12Z ELF (s12z-*-elf)
           - OpenRISC GNU/Linux (or1k*-*-linux*)
      
      * Native Windows debugging is only supported on Windows XP or later.
      
      * The Python API in GDB now requires Python 2.6 or later.
      
      * GDB now supports terminal styling for the CLI and TUI.
        Source highlighting is also supported by building GDB with GNU
        Highlight.
      
      * Experimental support for compilation and injection of C++ source
        code into the inferior (requires GCC 7.1 or higher, built with
        libcp1.so).
      
      * GDB and GDBserver now support IPv6 connections.
      
      * Target description support on RISC-V targets.
      
      * Various enhancements to several commands:
           - "frame", "select-frame" and "info frame" commands
           - "info functions", "info types", "info variables"
           - "info thread"
           - "info proc"
           - System call alias catchpoint support on FreeBSD
           - "target remote" support for Unix Domain sockets.
      
      * Support for displaying all files opened by a process
      
      * DWARF index cache: GDB can now automatically save indices of DWARF
        symbols on disk to speed up further loading of the same binaries.
      
      * Various GDB/MI enhancements.
      
      * GDBserver on PowerPC GNU/Linux now supports access to the PPR,
        DSCR, TAR, EBB/PMU, and HTM registers.
      
      * Ada task switching support when debugging programs built with
        the Ravenscar profile added to aarch64-elf.
      
      * GDB in batch mode now exits with status 1 if the last executed
        command failed.
      
      * Support for building GDB with GCC's Undefined Behavior Sanitizer.
      
      Signed-off-by: default avatarKoen Vandeputte <koen.vandeputte@ncentric.com>
      089b4f16
    • Koen Vandeputte's avatar
      toolchain/gdb: bump to 8.3.1 · 68c50e1c
      Koen Vandeputte authored
      
      GDB 8.3.1 brings the following fixes and enhancements over GDB 8.3:
      
      PR c++/20020 (GDB segfault on printing objects)
      PR gdb/24454 (nat/x86-linux-dregs.c failed assertion)
      PR breakpoints/24541 (Incorrect evaluation of systemtap probes due to register being signed and probe expression assuming unsigned)
      PR symtab/24545 (Symbol loading performance regression with cc1)
      PR gdb/24592 (amd64->i386 linux syscall restart problem)
      PR gdb/25009 (terminate called after throwing an instance of 'srchilite::ParserException')
      PR gdb/25010 (Calls to error () can cause SIGTTOU to send gdb to the background)
      PR breakpoints/25011 (Breakpoints on file reloads broken for PIE binaries)
      
      This corrective release also brings the following testsuite fixes and
      enhancements:
      
      PR testsuite/25005 (gdb-caching-proc.exp takes a lot of time on skip_opencl_tests)
      PR testsuite/25016 (Test-case failures for -pie)
      
      GDB 8.3 includes the following changes and enhancements:
      
      * Support for new native configurations (also available as a target configuration):
           - RISC-V GNU/Linux (riscv*-*-linux*)
           - RISC-V FreeBSD (riscv*-*-freebsd*)
      
      * Support for new target configurations:
           - CSKY ELF (csky*-*-elf)
           - CSKY GNU/Linux (csky*-*-linux)
           - NXP S12Z ELF (s12z-*-elf)
           - OpenRISC GNU/Linux (or1k*-*-linux*)
      
      * Native Windows debugging is only supported on Windows XP or later.
      
      * The Python API in GDB now requires Python 2.6 or later.
      
      * GDB now supports terminal styling for the CLI and TUI.
        Source highlighting is also supported by building GDB with GNU
        Highlight.
      
      * Experimental support for compilation and injection of C++ source
        code into the inferior (requires GCC 7.1 or higher, built with
        libcp1.so).
      
      * GDB and GDBserver now support IPv6 connections.
      
      * Target description support on RISC-V targets.
      
      * Various enhancements to several commands:
           - "frame", "select-frame" and "info frame" commands
           - "info functions", "info types", "info variables"
           - "info thread"
           - "info proc"
           - System call alias catchpoint support on FreeBSD
           - "target remote" support for Unix Domain sockets.
      
      * Support for displaying all files opened by a process
      
      * DWARF index cache: GDB can now automatically save indices of DWARF
        symbols on disk to speed up further loading of the same binaries.
      
      * Various GDB/MI enhancements.
      
      * GDBserver on PowerPC GNU/Linux now supports access to the PPR,
        DSCR, TAR, EBB/PMU, and HTM registers.
      
      * Ada task switching support when debugging programs built with
        the Ravenscar profile added to aarch64-elf.
      
      * GDB in batch mode now exits with status 1 if the last executed
        command failed.
      
      * Support for building GDB with GCC's Undefined Behavior Sanitizer.
      
      Signed-off-by: default avatarKoen Vandeputte <koen.vandeputte@ncentric.com>
      68c50e1c
    • Koen Vandeputte's avatar
      kernel: bump 4.19 to 4.19.79 · e5445333
      Koen Vandeputte authored
      
      Refreshed all patches.
      
      Remove upstreamed (superseded):
      - 950-0726-can-mcp251x-Allow-more-time-after-a-reset.patch
      
      Compile-tested on: brcm2708, cns3xxx
      Runtime-tested on: cns3xxx
      
      Signed-off-by: default avatarKoen Vandeputte <koen.vandeputte@ncentric.com>
      e5445333
    • Koen Vandeputte's avatar
      kernel: bump 4.14 to 4.14.149 · 1cfe412d
      Koen Vandeputte authored
      
      Refreshed all patches.
      
      Altered patches:
      - 820-sec-support-layerscape.patch
      
      Compile-tested on: cns3xxx, layerscape
      Runtime-tested on: cns3xxx
      
      Signed-off-by: default avatarKoen Vandeputte <koen.vandeputte@ncentric.com>
      1cfe412d
    • Koen Vandeputte's avatar
      toolchain/musl: bump to version 1.1.24 · 4d5b6226
      Koen Vandeputte authored
      
      1.1.24 release notes
      
      new features:
      - GLOB_TILDE extension to glob
      - non-stub catgets localization API, using netbsd binary catalog format
      - posix_spawn file actions for [f]chdir (extension, pending future standard)
      - secure_getenv function (extension)
      - copy_file_range syscall wrapper (Linux extension)
      - header-level support for new linux features in 5.2
      
      performance:
      - new fast path for lrint (generic C version) on 32-bit archs
      
      major internal changes:
      - functions involving time are overhauled to be time64-ready in 32-bit archs
      - x32 uses the new time64 code paths to replace nasty hacks in syscall glue
      
      compatibility & conformance:
      - support for powerpc[64] unaligned relocation types
      - powerpc[64] and sh sys/user.h no longer clash with kernel asm/ptrace.h
      - select no longer modifies timeout on failure (or at all)
      - mips64 stat results are no longer limited to 32-bit time range
      - optreset (BSD extension) now has a public declaration
      - support for clang inconsistencies in wchar_t type vs some 32-bit archs
      - mips r6 syscall asm no longer has invalid lo/hi register clobbers
      - vestigial asm declarations of __tls_get_new are removed (broke some tooling)
      - riscv64 mcontext_t mismatch glibc's member naming is corrected
      
      bugs fixed:
      - glob failed to match broken symlinks consistently
      - invalid use of interposed calloc to allocate initial TLS
      - various dlsym symbol resolution logic errors
      - semctl with SEM_STAT_ANY didn't work
      - pthread_create with explicit scheduling was subject to priority inversion
      - pthread_create failure path had data race for thread count
      - timer_create with SIGEV_THREAD notification had data race getting timer id
      - wide printf family failed to support l modifier for float formats
      
      arch-specific bugs fixed:
      - x87 floating point stack imbalance in math asm (i386-only CVE-2019-14697)
      - x32 clock_adjtime, getrusage, wait3, wait4 produced junk (struct mismatches)
      - lseek broken on x32 and mipsn32 with large file offsets
      - riscv64 atomics weren't compiler barriers
      - riscv64 atomics had broken asm constraints (missing earlyclobber flag)
      - arm clone() was broken when compiled as thumb if start function returned
      - mipsr6 setjmp/longjmp did not preserve fpu register state correctly
      
      Refreshed all patches.
      Removed upstreamed.
      
      Signed-off-by: default avatarKoen Vandeputte <koen.vandeputte@ncentric.com>
      4d5b6226
    • Jo-Philipp Wich's avatar
      iwinfo: update to latest Git HEAD · 57b83428
      Jo-Philipp Wich authored
      
      a29b7d4 nl80211: align path to phy mapping logic with mac80211.sh
      
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      57b83428
  2. Oct 14, 2019
  3. Oct 13, 2019
    • Adrian Schmutzler's avatar
      treewide: move calibration data extraction function to library · 5b6a8090
      Adrian Schmutzler authored
      
      This moves the almost identical calibration data extraction
      functions present multiple times in several targets to a single
      library file /lib/functions/caldata.sh.
      
      Functions are renamed with more generic names to merge different
      variants that only differ in their names.
      
      Most of the targets used find_mtd_chardev, while some used
      find_mtd_part inside the extraction code. To merge them, the more
      abundant version with find_mtd_chardev is used in the common code.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      [rebase on latest master; add mpc85xx]
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      5b6a8090
    • Adrian Schmutzler's avatar
      base-files: move xor() from caldata extraction to functions.sh · c1388a2d
      Adrian Schmutzler authored
      
      The xor() function is defined in each of the caldata extraction
      scripts for several targets. Move it to functions.sh to reduce
      duplicate code.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      c1388a2d
    • Roger Pueyo Centelles's avatar
      ath79: add support for COMFAST CF-E313AC · bba6646b
      Roger Pueyo Centelles authored
      This patch adds support for the COMFAST CF-E313AC, an  outdoor wireless
      CPE with two Ethernet ports and a 802.11ac radio.
      
      Specifications:
      
       - QCA9531 SoC
       - 650/400/216 MHz (CPU/DDR/AHB)
       - 1x 10/100 Mbps WAN Ethernet, 48V PoE-in
       - 1x 10/100 Mbps LAN Ethernet, pass-through 48V PoE-out
       - 1x manual pass-through PoE switch
       - 64 MB RAM (DDR2)
       - 16 MB FLASH
       - QCA9886 2T2R 5 GHz 802.11ac, 23 dBm
       - 12 dBi built-in antenna
       - POWER/LAN/WAN/WLAN green LEDs
       - 4x RSSI LEDs (2x red, 2x green)
       - UART (115200 8N1)
      
      Flashing instructions:
      
       The original firmware is based on OpenWrt so a sysupgrade image can be
       installed via the stock web GUI. Settings from the original firmware
       will be saved and restored on the new one, so a factory reset will be
       needed. To do so, once the new firmware is flashed, enter into failsafe
       mode by pressing the reset button several times during the boot
       process, while the WAN LED flashes, until it starts flashing faster.
       Once in failsafe mode, perform a factory reset as usual.
      
       Alternatively, the U-boot bootloader contains a recovery HTTP server
       to upload the  firmware. Push the reset button while powering the
       device on and keep it pressed for >10 seconds. The device's LEDs will
       blink several times and the recovery page will be at
       http://192.168.1.1;
      
       use it to upload the sysupgrade image.
      
      Note:
      
       Four MAC addresses are stored in the "art" partition (read-only):
        - 0x0000: 40:A5:EF:AA:AA:A0
        - 0x0006: 40:A5:EF:AA:AA:A2
        - 0x1002: 40:A5:EF:AA:AA:A1
        - 0x5006: 40:A5:EF:AA.AA:A3 (inside the 5 GHz calibration data)
      
       The stock firmware assigns MAC addresses to physical and virtual
       interfaces in a very particular way:
        - eth0 corresponds to the physical Ethernet port labeled as WAN
        - eth1 corresponds to the physical Ethernet port labeled as LAN
      
        - eth0 belongs to the bridge interface br-wan
        - eth1 belongs to the bridge interface br-lan
      
        - eth0 is assigned the MAC from 0x0 (*:A0)
        - eth1 is assigned the MAC from 0x1002 (*:A1)
      
        - br-wan is forced to use the MAC from 0x1002 (*:A1)
        - br-lan is forced to use the MAC from 0x0 (*:A0)
      
        - radio0 uses the calibration data from 0x5000 (which contains
          a valid MAC address, *:A3). However, it is overwritten by the
          one at 0x6 (*:A2)
      
       This commit preserves the LAN/WAN roles of the physical Ethernet
       ports (as labeled on the router) and the MAC addresses they expose
       by default (i.e., *:A0 on LAN, *:A1 on WAN), but swaps the position
       of the eth0/eth1 compared to the stock firmware:
        - eth0 corresponds to the physical Ethernet port labeled as LAN
        - eth1 corresponds to the physical Ethernet port labeled as WAN
      
        - eth0 belongs to the bridge interface br-lan
        - eth1 is the interface at @wan
      
        - eth0 is assigned the MAC from 0x0 (*:A0)
        - eth1 is assigned the MAC from 0x1002 (*:A1)
      
        - br-lan inherits the MAC from eth0 (*:A0)
        - @wan inherits the MAC from eth1 (*:A1)
      
        - radio0's MAC is overwritten to the one at 0x6
      
      This way, eth0/eth1's positions differ from the stock firmware, but
      the weird MAC ressignations in br-lan/br-wan are avoided while the
      external behaviour of the router is maintained. Additionally, WAN
      port is connected to the PHY gmac, allowing to monitor the link
      status (e.g., to restart DHCP negotiation when plugging a cable).
      
      Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
      bba6646b
    • Roger Pueyo Centelles's avatar
      ramips: mt7621: Alternative name KE 2P for Phicomm K2P · ac36cca0
      Roger Pueyo Centelles authored
      
      The Phicomm KE 2P is identical to the already supported Phicomm K2P,
      renamed for the European market. Use the ALT0 buildroot tags to show
      both devices.
      
      Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
      ac36cca0
    • Stijn Tintel's avatar
      kernel: add kmod-iio-bme680 · 4b9a0733
      Stijn Tintel authored
      
      This driver supports the Bosch Sensortec BME680 gas, humidity, pressure
      and temperature sensor.
      
      Tested I2C and SPI modes on a Raspberry Pi Zero W.
      
      Signed-off-by: default avatarStijn Tintel <stijn@linux-ipv6.be>
      4b9a0733
  4. Oct 12, 2019
  5. Oct 11, 2019
  6. Oct 10, 2019
    • Felix Fietkau's avatar
      mt76: update to the latest version · 7a8bcf36
      Felix Fietkau authored
      
      71c2ef0420b5 mt76: fix aggregation stop issue
      5b02a078d4a7 mt76: add missing locking around ampdu action
      7d8764d320cf mt76: avoid enabling interrupt if NAPI poll is still pending
      d94cc81d3980 mt76: drop rcu read lock in mt76_rx_aggr_stop
      c11a4ad06d9d mt76: mt76x0: eeprom: add support for MAC address from OF
      01642d8bed33 mt76: mt76x02: fix use-after-free in tx status code handling airtime
      391e1488f885 mt76: add sanity check for a-mpdu rx wcid index
      d3a589586d1b mt76: fix a-mpdu boundary detection issue for airtime reporting
      
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      7a8bcf36
Loading