1. 15 Jul, 2019 2 commits
  2. 14 Jul, 2019 9 commits
    • ynezz's avatar
      fstools: add direct dependencies on libblobmsg-json and libjson-c · cbae3068
      ynezz authored
      The OpenWrt buildroot ABI version rebuild tracker does not handle
      transient dependencies, therefore add all libraries linked by
      block-mount and blockd as direct dependencies to the corresponding
      binary package definition.
      
      This ensures that block-mount and blockd is automatically rebuilt and
      relinked if any of these libraries has its ABI_VERSION updated in the
      future.
      
      Fixes: FS#2373
      [jow: similar fix for procd and 98.42% of commit message]
      Signed-off-by: default avatarJo-Philip Wich <jow@mein.io>
      Signed-off-by: ynezz's avatarPetr Štetiar <ynezz@true.cz>
      cbae3068
    • David Bauer's avatar
      ath79: add support for devolo WiFi pro 1750x · cb3cd526
      David Bauer authored
      Hardware
      --------
      CPU:   Qualcomm Atheros QCA9558
      RAM:   128M DDR2
      FLASH: 16MiB
      ETH:   1x Atheros AR8035 (PoE in)
      WiFi2: QCA9558 3T3R
      WiFi5: QCA9880 3T3R
      BTN:   1x Reset
      LED:   1x LED Power (non-controllable)
             1x LED Status (internal)
             1x LED LAN (controlled by PHY)
             1x LED WLAN
      BEEP:  1x GPIO attached piezo beeper
      UART:  3.3V GND TX RX (115200-N-8) (3.3V is square pad)
             Header is located next to external-LED header.
      
      Installation
      ------------
      Make sure you set a password for the root user as prompted on first
      setup!
      
      1. Upload OpenWRT sysupgrade image via SSH to the device.
      Use /tmp as the destination folder on the device.
      User is root, password the one set in the web interface.
      
      2. Install OpenWRT with
      
      > sysupgrade -n -F /tmp/<openwrt-image-name>
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      cb3cd526
    • Linus Walleij's avatar
      gemini: Stop enforcing command line · ea44ed5f
      Linus Walleij authored
      The command line enforced by the kernel is harmful, we want to
      use the command line passed from the device tree. This is
      especially important for the SQ201, Teltonika RUT and WBD111
      which has a console set to 115200n8 and not 19200n8 like all
      the others, so their consoles will be confusingly changing
      baudrate between boot loader and kernel. The setting in the
      device tree corresponds to what the boot loader is using.
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      ea44ed5f
    • David Bauer's avatar
      gpio-button-hotplug: unify polled and interrupt code · 27f3f493
      David Bauer authored
      This patch unifies the polled and interrupt-driven gpio_keys code
      paths as well implements consistent handling of the debounce
      interval set for the GPIO buttons and switches.
      
      Hotplug events will only be fired if
      
      1. The input changes its state and remains stable for the duration
         of the debounce interval (default is 5 ms).
      
      2. In the initial stable (no state-change for duration of the
         debounce interval) state once the driver module gets loaded.
      
         Switch type inputs will always report their stable state.
         Unpressed buttons will not trigger an event for the initial
         stable state. Whereas pressed buttons will trigger an event.
         This is consistent with upstream's gpio-key driver that uses
         the input subsystem (and dont use autorepeat).
      
      Prior to this patch, this was handled inconsistently for interrupt-based
      an polled gpio-keys. Hence this patch unifies the shared logic into the
      gpio_keys_handle_button() function and modify both implementations to
      handle the initial state properly.
      
      The changes described in 2. ) . can have an impact on the
      failsafe trigger. Up until now, the script checked for button
      state changes. On the down side, this allowed to trigger the
      failsafe by releasing a held button at the right time. On the
      plus side, the button's polarity setting didn't matter.
      
      Now, the failsafe will only engage when a button was pressed
      at the right moment (same as before), but now it can
      theoretically also trigger when the button was pressed the
      whole time the kernel booted and well into the fast-blinking
      preinit phase. However, the chances that this can happen are
      really small. This is because the gpio-button module is usually
      up and ready even before the preinit state is entered. So, the
      initial pressed button event gets lost and most devices behave
      as before.
      
      Bisectors: If this patch causes a device to permanently go into
      failsafe or experience weird behavior due to inputs, please
      check the following:
       - the GPIO polarity setting for the button
       - the software-debounce value
      
      Run-tested for 'gpio-keys' and 'gpio-keys-polled' on
      
       - devolo WiFi pro 1200e
       - devolo WiFi pro 1750c
       - devolo WiFi pro 1750x
       - Netgear WNDR4700
       - Meraki MR24
       - RT-AC58U
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [further
      cleanups, simplification and unification]
      27f3f493
    • Álvaro Fernández Rojas's avatar
      brcm2708: Add Raspberry Pi 4 support · f7815828
      Álvaro Fernández Rojas authored
      - Support added to bcm2709 subtarget (32 bit).
      - 64 bit kernel still requires many hacks on RPi 4B.
      Signed-off-by: default avatarÁlvaro Fernández Rojas <noltari@gmail.com>
      f7815828
    • Álvaro Fernández Rojas's avatar
    • Álvaro Fernández Rojas's avatar
    • Álvaro Fernández Rojas's avatar
    • Álvaro Fernández Rojas's avatar
      brcm2708: add linux 4.19 support · 42954857
      Álvaro Fernández Rojas authored
      Boot tested on Raspberry Pi B+ (BCM2708) and Raspberry Pi 2 (BCM2709)
      Signed-off-by: default avatarÁlvaro Fernández Rojas <noltari@gmail.com>
      42954857
  3. 13 Jul, 2019 2 commits
  4. 12 Jul, 2019 1 commit
    • Felix Fietkau's avatar
      mt76: update to the latest version · ba5878f0
      Felix Fietkau authored
      8fc3e6e mt76: mt7615: fix using VHT STBC rates
      b21b991 mt76: mt7615: fix PS buffering of action frames
      3d43dd8 mt76: mt7615: fix invalid fallback rates
      0ce4682 mt76: mt7603: fix invalid fallback rates
      3b08966 Revert "mt76: usb: use full intermediate buffer in mt76u_copy"
      48800e7 Revert "mt76: usb: remove unneeded {put,get}_unaligned"
      439354d Revert "mt76: usb: fix endian in mt76u_copy"
      8c1da93 mt76: usb: fix endian in mt76u_copy
      307be50 mt76: usb: remove unneeded {put,get}_unaligned
      5d29829 mt76: mt76x02: use params->ssn value directly
      f74d117 mt76: mt7603: use params->ssn value directly
      649f2e8 mt76: mt7615: use params->ssn value directly
      b647180 mt76: mt7615: unlock dfs bands
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      ba5878f0
  5. 11 Jul, 2019 8 commits
    • Hauke Mehrtens's avatar
      mac80211: Do not build b43legacy on BRCM47xx mips74 subtarget · e05310b9
      Hauke Mehrtens authored
      b43legacy needs ssb support and we do not compile the mips74 subtarget
      of the brcm47xx target with SSB support. This causes a build failure in
      the mac80211 package and only some of the kernel modules are being
      created.
      
      I am not aware of any device with a BRCM47xx mips74 CPU which uses a
      b43legacy compatible device.
      
      Fixes: FS#2334
      Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      e05310b9
    • David Bauer's avatar
      ramips: add support for ASUS RT-AC57U · 14e0e4f1
      David Bauer authored
      SoC:   MediaTek MT7621AT
      RAM:   128M (Winbond W631GG6KB-15)
      FLASH: 16MB (Spansion S25FL128SA)
      WiFi:  MediaTek MT7603EN bgn 2SS
      WiFi:  MediaTek MT7612EN nac 2SS
      BTN:   Reset - WPS
      LED:    - Power
              - LAN {1-4}
              - WAN
              - WiFi 2.4 GHz
              - WiFi 5 GHz
              - USB
      UART:  UART is present next to the Power LED.
             TX - RX - GND - 3V3 / 57600-8N1
             3V3 is the nearest one to the Power LED.
      
      Installation
      ------------
      Via TFTP:
      1. Set your computers IP-Address to 192.168.1.75.
      2. Power up the Router with the Reset button pressed.
      3. Release the Reset button after 5 seconds.
      4. Upload OpenWRT sysupgrade image via TFTP:
       > tftp -4 -v -m binary 192.168.1.1 -c put <IMAGE>
      
      Via SSH:
      Note: User/password for SSH is identical with the one used in the
      Web-interface.
      1. Complete the initial setup wizard.
      2. Activate SSH under "Administration" -> "System".
      3. Transfer the OpenWrt sysupgrade image via scp:
       > scp owrt.bin admin@192.168.1.1:/tmp
      4. Connect via SSH to the router.
       > ssh admin@192.168.1.1
      5. Write the OpenWrt image to flash.
       > mtd-write -i /tmp/owrt.bin -d linux
      6. Reboot the router
       > reboot
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      14e0e4f1
    • Colby Whitney's avatar
      lua5.3: build shared library · c52ca08d
      Colby Whitney authored
      Update the lua5.3 package to build a shared object just like the old lua
      package. Ported / recreated the same patch number as the other lua
      package. Built and tested library / interpreter on BCM5301X.
      Signed-off-by: default avatarColby Whitney <colby.whitney@luxul.com>
      c52ca08d
    • Chuanhong Guo's avatar
      ramips: fix mqmaker witi case in fixup-mac-address · 53daa51c
      Chuanhong Guo authored
      This commit fixes a forgotten case in previous commit.
      
      Fixes: 087e14ab ("ramips: mt7621: merge two variants of MQmaker WiTi together")
      Signed-off-by: default avatarChuanhong Guo <gch981213@gmail.com>
      53daa51c
    • Rafał Miłecki's avatar
      base-files: move stage2 upgrade to separated file · f7edd94a
      Rafał Miłecki authored
      do_upgrade_stage2() isn't really any common code. It isn't used anywhere
      except for /sbin/sysupgrade that passes it to the stage2.
      
      Moving its code to separated file also simplifies COMMAND variable.
      Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
      f7edd94a
    • Chuanhong Guo's avatar
      ramips: mt7621: merge two variants of MQmaker WiTi together · 087e14ab
      Chuanhong Guo authored
      Since we can auto-detect memory now, we don't need 2 dts for two
      memory variants.
      Signed-off-by: default avatarChuanhong Guo <gch981213@gmail.com>
      087e14ab
    • Chuanhong Guo's avatar
      ramips: dts: drop memory nodes · a2c19f1d
      Chuanhong Guo authored
      mt7621 and mt7628 now have the ability to detect memory size
      automatically.
      Drop memory nodes and let kernel determine memory size.
      Signed-off-by: default avatarChuanhong Guo <gch981213@gmail.com>
      a2c19f1d
    • Chuanhong Guo's avatar
      ramips: mt7621: add support for memory detection · 6d91ddf5
      Chuanhong Guo authored
      mt7621 has the following memory map:
      0x0-0x1c000000: lower 448m memory
      0x1c000000-0x2000000: peripheral registers
      0x20000000-0x2400000: higher 64m memory
      
      detect_memory_region in arch/mips/kernel/setup.c only add the first
      memory region and isn't suitable for 512m memory detection because
      it may accidentally read the memory area for peripheral registers.
      
      This commit adds memory detection capability for mt7621:
      1. add the highmem area when 512m is detected.
      2. guard memcmp from accessing peripheral registers:
           This only happens when some weird user decided to change
           kernel load address to 256m or higher address. Since this
           is a quite unusual case, we just skip 512m testing and return
           256m as memory size.
      Signed-off-by: default avatarChuanhong Guo <gch981213@gmail.com>
      6d91ddf5
  6. 10 Jul, 2019 18 commits