1. 24 Oct, 2019 9 commits
    • Jeff Kletsky's avatar
      kernel: mtd: spinand: Backport chip definitions · b9d58f7e
      Jeff Kletsky authored
      generic: Add/rename patches for upstream consistency
      
      ipq40xx: generic-level patch replaces same-source patches-4.19/
               082-v4.20-mtd-spinand-winbond-Add-support-for-W25N01GV.patch
      
      The SPI-NAND framework from Linux uses common driver code that is then
      "tuned" by a tiny struct of chip-specific data that describes
      available commands, timing, and layout (data and OOB data). Several
      manufacturers and chips have been added since 4.19, several of which
      are used in devices already supported by OpenWrt (typically with no or
      "legacy" access to their NAND memory). This commit catches up the
      supported-chip definitions through Linux 5.2-rc6 and linux/next.
      
      The driver is only compiled for platforms with CONFIG_MTD_SPI_NAND=y.
      This presently includes ipq40xx and pistachio, with the addition of
      ath79-nand in these commits (and not ath79-generic or ath79-tiny).
      
      Upstream patches refreshed against 4.19.75
      
      Build-tested-on: ipq40xx
      Run-tested-on: ath79-nand
      Signed-off-by: default avatarJeff Kletsky <git-commits@allycomm.com>
      b9d58f7e
    • Jeff Kletsky's avatar
      ath79: uboot-envtools: Add GL-AR300M-Lite · 29b4f084
      Jeff Kletsky authored
      Add the GL.iNet GL-AR300M-Lite to the list of supported boards.
      Signed-off-by: default avatarJeff Kletsky <git-commits@allycomm.com>
      29b4f084
    • Jeff Kletsky's avatar
      ath79: Refactor GL.iNet GL-AR300M-series generic.mk · 18848312
      Jeff Kletsky authored
      Rework DEVICE_VENDOR, DEVICE_MODEL, and DEVICE_VARIANT
      for the GL-AR300M series on the ath79-generic target.
      
      Changes GL-AR300M-Lite to the current form with
      DEVICE_VARIANT := Lite (board name is unchanged)
      Signed-off-by: default avatarJeff Kletsky <git-commits@allycomm.com>
      18848312
    • Jeff Kletsky's avatar
      ath79: GL-AR750S: Add I2C Support · 1f748df0
      Jeff Kletsky authored
      The GL-AR750S has an internal header for I2C.
      
      Provide DTS definitions for the i2c-gpio driver.
      
      The I2C drivers; kmod-i2c-core, kmod-i2c-gpio
      consume ~20 kB of flash and can be loaded as modules,
      
      Default clock measured ~11.2 ms period, ~89 kHz
      
      The board has well-labeled (unpopulated) headers for serial and I2C
      along the front edge of the board (the edge with the LEDs). Looking
      from the top, rear of the unit (behind Ethernet jacks)
      
        -------------------------------------------
             5G_LED        2G_LED      PWR_LED
      
                       O O O O O O O
      
                       3 S S G T R G
                       V C D N X X N
                       3 L A D     D
      Signed-off-by: default avatarJeff Kletsky <git-commits@allycomm.com>
      1f748df0
    • Jeff Kletsky's avatar
      ath79: GL-AR300M series: Add I2C Support · 736d16ba
      Jeff Kletsky authored
      The GL-AR300M series have an internal header for I2C.
      
      Provide DTS definitions for the i2c-gpio driver.
      
      The I2C drivers; kmod-i2c-core, kmod-i2c-gpio
      consume ~20 kB of flash and can be loaded as modules,
      
      Default clock measured ~11.4 ms period, ~88 kHz
      
      The board has two sets of (unpopulated) headers.  While facing the
      back of the board (looking into the Ethernet jacks), and looking from
      the top, the one on the left edge of the baord with four holes is the
      I2C header. It appears to be labeled J8 on "GL-AR300M-V1.4.0" boards.
      
          | (Patch antenna)
          |
          |
          |  O   GND
          |  O   SDA / GPIO 17
          |  O   SCL / GPIO 16
          |  ⊡   3V3 (square land)
          |
          | (Ethernet jacks)
      
      https://docs.gl-inet.com/en/3/hardware/ar300m/#pcb-pinout states
      "Note: I2C is not working in some early version of the router."
      Signed-off-by: default avatarJeff Kletsky <git-commits@allycomm.com>
      736d16ba
    • Gabor Varga's avatar
      ramips: add support for Asus RT-AC65P · 7c5f712e
      Gabor Varga authored
      The Asus RT-AC65P router is identical with the RT-AC85P, but better to make separate images for it.
      
      On both routers the installation can be done also via SSH:
      
      Note: The 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 factory image via scp:
       > scp openwrt-ramips-mt7621-asus_rt-ac65p-squashfs-factory.bin admin@192.168.50.1:/tmp
      4. Connect via SSH to the router.
       > ssh admin@192.168.50.1
      5. Write the OpenWrt image to flash.
       > mtd-write -i
      /tmp/openwrt-ramips-mt7621-asus_rt-ac65p-squashfs-factory.bin -d linux
      6. Reboot the router
       > reboot
      
      Changelog:
      
      v3: removed [] from filename, rebased to latest master
      v2: Rebased to latest master
      v1: Initial release
      Signed-off-by: default avatarGabor Varga <vargagab@gmail.com>
      7c5f712e
    • Yousong Zhou's avatar
      kernel: netfilter: reuse kconfig and files info from include dir · 49db2026
      Yousong Zhou authored
      Less chance of missing out kconfig symbols at least
      Signed-off-by: default avatarYousong Zhou <yszhou4tech@gmail.com>
      49db2026
    • Yousong Zhou's avatar
    • Yousong Zhou's avatar
      ed6ba280
  2. 23 Oct, 2019 1 commit
  3. 22 Oct, 2019 14 commits
    • David Bauer's avatar
      ipq40xx: add support for AVM FRITZ!Repeater 1200 · 7f187229
      David Bauer authored
      Hardware
      --------
      SoC:   Qualcomm IPQ4019
      RAM:   256M DDR3
      FLASH: 128M NAND
      WiFi:  2T2R IPQ4019 bgn
             2T2R IPQ4019 a/n/ac
      ETH:   Atheros AR8033 RGMII PHY
      BTN:   1x Connect (WPS)
      LED:   Power (green/red/yellow)
      
      Installation
      ------------
      
      1. Grab the uboot for the Device from the 'u-boot-fritz1200'
         subdirectory. Place it in the same directory as the 'eva_ramboot.py'
         script. It is located in the 'scripts/flashing' subdirectory of the
         OpenWRT tree.
      
      2. Assign yourself the IP address 192.168.178.10/24. Connect your
         Computer to one of the boxes LAN ports.
      
      3. Connect Power to the Box. As soon as the LAN port of your computer
         shows link, load the U-Boot to the box using following command.
      
         > ./eva_ramboot.py --offset 0x85000000 192.168.178.1 uboot-fritz1200.bin
      
      4. The U-Boot will now start. Now assign yourself the IP address
         192.168.1.70/24. Copy the OpenWRT initramfs (!) image to a TFTP
         server root directory and rename it to 'FRITZ1200.bin'.
      
      5. The Box will now boot OpenWRT from RAM. This can take up to two
         minutes.
      
      6. Copy the U-Boot and the OpenWRT sysupgrade (!) image to the Box using
         scp. SSH into the Box and first write the Bootloader to both previous
         kernel partitions.
      
         > mtd write /path/to/uboot-fritz1200.bin uboot0
         > mtd write /path/to/uboot-fritz1200.bin uboot1
      
      7. Remove the AVM filesystem partitions to make room for our kernel +
         rootfs + overlayfs.
      
         > ubirmvol /dev/ubi0 --name=avm_filesys_0
         > ubirmvol /dev/ubi0 --name=avm_filesys_1
      
      8. Flash OpenWRT peristently using sysupgrade.
      
         > sysupgrade -n /path/to/openwrt-sysupgrade.bin
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      7f187229
    • David Bauer's avatar
      ipq-wifi: add AVM FRITZ!Repeater 1200 bdf · c0f40781
      David Bauer authored
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      c0f40781
    • David Bauer's avatar
      uboot-fritz4040: update to latest HEAD · 36f43b61
      David Bauer authored
      f92be9d add support for AVM FRITZ!Repeater 1200
      d651302 enable support for Atheros AR8033 PHY
      e4c857c add machtype override hack
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      36f43b61
    • David Bauer's avatar
      ipq40xx: add missing backslash in 11-ath10k-caldata · 6fd9eeee
      David Bauer authored
      This adds a missing backslash in the caldata-extraction script. Without
      this fix, caldata extraction fails for every device.
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      6fd9eeee
    • David Bauer's avatar
      ipq40xx: fix ethernet probe abort on missing phy-reset · 7be79a3a
      David Bauer authored
      This commit completely fixes the abortion of the ipq40xx ethernet driver
      probe in case no phy-reset is defined.
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      7be79a3a
    • Moritz Warning's avatar
      brcm63xx: split up DEVICE_TITLE · d2638837
      Moritz Warning authored
      DEVICE_TITLE is split up into DEVICE_VENDOR, DEVICE_MODEL and DEVICE_VARIANT
      Uses DEVICE_ALT* variables for alternative vendor/retailer names.
      Signed-off-by: default avatarMoritz Warning <moritzwarning@web.de>
      d2638837
    • Hans Dedecker's avatar
      procd: update to latest git HEAD · bf4ffa3c
      Hans Dedecker authored
      258aa04 procd: Add cached and available to memory table
      Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
      bf4ffa3c
    • Jonas Gorski's avatar
      brcm63xx: fix build with GCC 8.3 · 4f863970
      Jonas Gorski authored
      Fixes the following build error when building when using GCC 8.3:
      
      In file included from ./include/linux/string.h:19,
                       from ./include/linux/bitmap.h:9,
                       from ./include/linux/cpumask.h:12,
                       from ./arch/mips/include/asm/processor.h:15,
                       from ./arch/mips/include/asm/thread_info.h:16,
                       from ./include/linux/thread_info.h:38,
                       from ./include/asm-generic/preempt.h:5,
                       from ./arch/mips/include/generated/asm/preempt.h:1,
                       from ./include/linux/preempt.h:81,
                       from ./include/linux/spinlock.h:51,
                       from ./include/linux/mmzone.h:8,
                       from ./include/linux/bootmem.h:8,
                       from arch/mips/bcm63xx/prom.c:10:
      arch/mips/bcm63xx/prom.c: In function 'prom_init':
      ./arch/mips/include/asm/string.h:162:11: error: '__builtin_memcpy' forming offset [2, 32] is out of the bounds [0, 1] of object 'bmips_smp_movevec' with type 'char' [-Werror=array-bounds]
         __ret = __builtin_memcpy((dst), (src), __len); \
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      arch/mips/bcm63xx/prom.c:97:3: note: in expansion of macro 'memcpy'
         memcpy((void *)0xa0000200, &bmips_smp_movevec, 0x20);
         ^~~~~~
      In file included from arch/mips/bcm63xx/prom.c:14:
      ./arch/mips/include/asm/bmips.h:80:13: note: 'bmips_smp_movevec' declared here
       extern char bmips_smp_movevec;
      Reported-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      Signed-off-by: default avatarJonas Gorski <jonas.gorski@gmail.com>
      4f863970
    • David Bauer's avatar
      mac80211: fix build of rtw88 · 2dd1755f
      David Bauer authored
      This commit fixes failing builds because of an incorrect configuration
      for the kmod-rtw88 package.
      
      RTW88_8822BE as well as RTW88_8822CE have to bes selected as "y" even
      when building the driver as a module.
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      2dd1755f
    • Adrian Schmutzler's avatar
      ramips: fix LAN/WAN MAC addresses of Xiaomi MiWiFi Mini board · fd1d03f8
      Adrian Schmutzler authored
      Based on stock firmware tests, both LAN and WAN ports use the
      MAC address from 0x28 on factory partition.
      
      In OpenWrt, this one is already set in DTS. This patch removes the
      local bit set in 02_network previously, and adjusts LAN/WAN
      addresses as on stock firmware.
      
      Note that in tests we found a MAC address in 0x2e that is the one
      in 0x28 plus 1. Since stock firmware does not use it though, we
      do not use it either.
      
      Thanks to Chih-Wei Chen for testing this on his device.
      
      ref: https://github.com/openwrt/openwrt/pull/2497Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      fd1d03f8
    • Roman Yeryomin's avatar
      base-files: uci-defaults: do config flush in one shot · 940844e0
      Roman Yeryomin authored
      Moving a file between tmpfs and other fs is neither
      faster nor safer, thus no point in doing it in two steps.
      Use new jshn option to write output directly to file.
      
      Originally discussed here:
      http://lists.openwrt.org/pipermail/openwrt-devel/2017-December/010127.htmlSigned-off-by: default avatarRoman Yeryomin <roman@advem.lv>
      940844e0
    • Roman Yeryomin's avatar
      libubox: update to latest git HEAD · c0e7ec91
      Roman Yeryomin authored
      eb30a03 libubox, jshn: add option to write output to a file
      Signed-off-by: default avatarRoman Yeryomin <roman@advem.lv>
      c0e7ec91
    • David Bauer's avatar
      firmware: add Realtek RTL8822BE/RTL8822CE firmware · 7a577e9a
      David Bauer authored
      This commit adds packages for the Realtek RTl8822BE/RTL8822CE firmware
      to be used with the rtw88 driver.
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      7a577e9a
    • David Bauer's avatar
      mac80211: add rtw88 driver · bb84bbe8
      David Bauer authored
      This commits adds packaging for the new RTW88 driver from Realtek.
      It supports the Realtek 8822BE/8822CE PCIe wireless chips.
      
      For operation, the complementary firmware has to be loaded.
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      bb84bbe8
  4. 21 Oct, 2019 16 commits