Commit Graph

8807 Commits

Author SHA1 Message Date
Álvaro Fernández Rojas
adcf558e11 bcm27xx-userland: update to latest version
Adds some fixes and removes upstreamed patch.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-19 12:06:55 +08:00
Álvaro Fernández Rojas
0c502d60d1 bcm27xx-gpu-fw: update to latest version
This is needed to add support for CM4 and RPI 400.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-19 12:06:33 +08:00
Álvaro Fernández Rojas
a8dd8b6965 bcm27xx: import latest patches from the RPi foundation
bcm2708: boot tested on RPi B+ v1.2
bcm2709: boot tested on RPi 3B v1.2 and RPi 4B v1.1 4G
bcm2710: boot tested on RPi 3B v1.2
bcm2711: boot tested on RPi 4B v1.1 4G

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-19 12:05:02 +08:00
CN_SZTL
dd4b03a705
Merge Mainline
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-19 03:30:19 +08:00
John Audia
edc53cccbe
kernel: bump 5.4 to 5.4.99
Ran update_kernel.sh in a fresh clone without any existing toolchains.
No manual changes needed.

Build system: x86_64
Build-tested: bcm27xx/bcm2711

Signed-off-by: John Audia <graysky@archlinux.us>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-19 03:30:02 +08:00
Felix Fietkau
2f46ef4d87
build: fix ABI version for PROVIDES symbols
GetABISuffix does not work for intra-package ABI version of provided symbols,
since ABIV_$(provided) is not set.
Fix ABI version by using $(ABIV_$(1)) directly

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-19 03:28:46 +08:00
CN_SZTL
e171b967a6
Revert "package: libs: ncurses/readline use PKG_ABI_VERSION"
This reverts commit f2ee0fb376.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-19 03:28:41 +08:00
CN_SZTL
e99269f8fb
tinyfecVPN: switch git source
As github tarball doesn't include the files of submodules,
so switch to git source to fetch them.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-19 00:12:54 +08:00
CN_SZTL
06531db685
naiveproxy: backport patch to fix building on OpenWrt x86 platform
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 22:52:38 +08:00
CN_SZTL
9109439c37
luci-app-wrtbwmon: update Copyright info
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 20:17:12 +08:00
CN_SZTL
ba32b64140
luci-app-wrtbwmon: sync with upstream source
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 20:05:10 +08:00
Mattraks
8ffe564799
luci-app-ssr-plus: bug fixes
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 19:31:13 +08:00
ShanStone
90544c4c56
luci-app-passwall: sync with upstream source
Co-authored-by: xiaorouji <60100640+xiaorouji@users.noreply.github.com>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 19:28:11 +08:00
CN_SZTL
4320db8586
Merge Mainline
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 19:21:50 +08:00
CN_SZTL
e6bf8a2f00
include/version: set default distribution name to ImmortalWrt
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 19:07:14 +08:00
AmadeusGhost
827094a0c1 rtl_wifi: bump to latest git HEAD
Refresh all patches.

Signed-off-by: AmadeusGhost <amadeus@project-openwrt.eu.org>
2021-02-18 18:30:44 +08:00
AmadeusGhost
818121551d gotop: update to 4.1.1 2021-02-18 18:26:12 +08:00
AmadeusGhost
719d668063 filebrowser: update to 2.11.0 2021-02-18 18:24:58 +08:00
AmadeusGhost
81280a80f3 bpytop: update to 1.0.62 2021-02-18 18:23:04 +08:00
CN_SZTL
cb76771895
image: rename distribution to ImmortalWrt
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 17:44:25 +08:00
Mathias Kresin
371c4ea855
kernel: lantiq: fix Module.symvers handling
If an external module uses exported symbols from another external
module, Kbuild needs to have full knowledge of all symbols to
avoid spitting out warnings about undefined symbols.

Use PKG_EXTMOD_SUBDIRS to point to the build directory which contains
the Module.symvers.

Pass KERNEL_MAKE_FLAGS to the external module build, to inject
KBUILD_EXTRA_SYMBOLS. KBUILD_EXTRA_SYMBOLS holds a space separated list
of Module.symvers, which list all exported symbols.

Signed-off-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 17:18:07 +08:00
Mathias Kresin
5221cec71c
lantiq: fritz7320: enable USB power supply
The USB ports if a FRIZZ!Box 7320 do not supply power to connected
devices.

Add the GPIOs enabling USB power as regulator, to enable USB power
supply as soon as the USB driver is loaded.

Fixes FS#3624

Signed-off-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 17:18:01 +08:00
Mathias Kresin
e3db5c0a53
lantiq: fritz7320: enable USB power supply
The USB ports if a FRIZZ!Box 7320 do not supply power to connected
devices.

Add the GPIOs enabling USB power as regulator, to enable USB power
supply as soon as the USB driver is loaded.

Fixes FS#3624

Signed-off-by: Mathias Kresin <dev@kresin.me>
(cherry picked from commit 6e4e97b2256327bb380ee2a83da9a1ddf657e395)
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 17:17:22 +08:00
CN_SZTL
9a30f65efb
rockchip: apply own patches
Included:
 - Hack for support MTWiFi
 - HWRNG driver for RK3328 & RK3399
 - Fix for hot reboot
 - I2C screen support for NanoPi R2S
 - Overclocking support for RK3328 and NanoPi4 series
 - Ethernet compat node for NanoPi R2S
 - Support for NanoPi R4S

Minor adjustments:
 - Used r8169 driver for NanoPi R4S by default as r8168 is broken on newer kernel

Refreshed all patches.

Reviewed-by: AmadeusGhost <amadeus@project-openwrt.eu.org>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 13:39:19 +08:00
David Bauer
d53ae8c4d1
rockchip: add Kernel 5.10 support
Remove all upstreamed patches and add the kernel configuration for
version 5.10.

The Rock Pi 4 was split in multiple versions. Add a DTS with the old
name in order to keep compatibility while having kernel 5.4 and 5.10 in
parallel. Switch to the Rock Pi 4A DTS once Kernel 5.4 support is
removed.

Tested-on: Nanoi R2S

Signed-off-by: David Bauer <mail@david-bauer.net>

Reviewed-by: AmadeusGhost <amadeus@project-openwrt.eu.org>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 13:39:19 +08:00
Kurt Roeckx
01150c776b
ramips: mark toggle input on EX6150 as a switch
The Netgear EX6150 has an Access Point/Extender switch. Set it as
an EV_SW. Otherwise when it's set to Access Point, it will trigger
failsafe mode during boot.

Fixes: FS#3590
Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
(cherry picked from commit 539966554d)
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 13:07:27 +08:00
Adrian Schmutzler
86eb785feb
ath79: fix USB power GPIO for TP-Link TL-WR810N v1
The TP-Link TL-WR810N v1 is known to cause soft-brick on ath79 and
work fine for ar71xx [1]. On closer inspection, the only apparent
difference is the GPIO used for the USB regulator, which deviates
between the two targets.

This applies the value from ar71xx to ath79.

Tested successfully by a forum user.

[1] https://forum.openwrt.org/t/tp-link-tl-wr810n-v1-ath79/48267

Fixes: cdbf2de777 ("ath79: Add support for TP-Link WR810N")
Fixes: FS#3522

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit 6934d30cf8)
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 13:05:49 +08:00
David Bauer
3c87962495 generic: don't lock when recursively deleting partitions
When recursively deleting partitions, don't acquire the masters
partition lock twice. Otherwise the process endy up in a deadlocked
state.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-02-18 12:07:33 +08:00
David Bauer
ff24cef6bc generic: add various kernel 5.10 config symbols
These symbols were unset when configuring for ath79.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-02-18 12:07:08 +08:00
David Bauer
d90624d341 mediatek: add support for Ubiquiti UniFi 6 LR
Hardware
--------

MediaTek MT7622
512MB DDR3 RAM
64M SPI-NOR Flash (Winbond W25Q512JV)
MediaTek MT7622 802.11bgn 4T4R WMAC
MediaTek MT7915 802.11ax 4T4R
Marvell AQR1112 100/1000/2500 NBase-T PHY
Holtek HT32F52241 LED controller
Reset Switch

UART
----

CPU UART0 at the pinout next to the Holtek MCU.

Pinout (first pin next to SoC / MCU)

0 3V3
1 RX
2 TX
3 GND

Settings are 115200 8N1.

Opening the case
----------------

Opening the case is not a nice task, as itis glued together. Insert a
flat knife between the front and back casing below the ethernet port.
Open up a gap this way and insert a flat scredriver, remove the knife.

Work your way around the casing by applying force to seperate the front
and back casing. This losens the glue and opens the plastic clips. Be
gentle, as these clips are very cheap and break quickly.

Installation
------------

1. Connect to the booted device at 192.168.1.20 using username/password
   "ubnt".

2. Transfer the OpenWrt sysupgrade image to the device using SCP.

3. Check the mtd partition number for bs / kernel0 / kernel1

   $ cat /proc/mtd

4. Set the bootselect flag to boot from kernel0

   $ dd if=/dev/zero bs=1 count=1 of=/dev/mtdblock6

5. Write the OpenWrt sysupgrade image to both kernel0 as well as kernel1

   $ dd if=openwrt.bin of=/dev/mtdblock8
   $ dd if=openwrt.bin of=/dev/mtdblock9

6. Reboot the device. It should boot into OpenWrt.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-02-18 12:06:40 +08:00
David Bauer
bc08e342ad mediatek: add Ubiquiti LED driver
Add a driver for controlling the RGB LED via Ubiquitis own "LEDBAR" LED
controller based on the Holtek HT32F52241 MCU.

This driver is initially used by the Ubiquiti UniFi 6 LR, however
judging from FCC pictures the MCU is also found on the U6-Mesh as well
as the U6-Extender.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-02-18 12:05:28 +08:00
Álvaro Fernández Rojas
ed2ec11555 bcm63xx: add kernel 5.10 support
Runtime-tested on Comtrend AR-5387un.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-18 12:05:04 +08:00
CN_SZTL
157305bedc
r8168: do not build for kernel 5.10
It seems to be broken on 5.10.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 04:46:11 +08:00
CN_SZTL
5304b20b60
linux: usb: r8152: add device-specific firmware
This is needed by newer kernel.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 04:45:04 +08:00
CN_SZTL
87dc029db3
kernel: drop outdated version detection
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 02:24:17 +08:00
thedukesd
d1f2257d3b
ar71xx: disable pdata->use_flow_control for AR7240
Flow control is causing the AR7240 switch to hang.
Fixes: FS#3054

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 02:08:39 +08:00
CN_SZTL
90196fec9d
cryptodev-linux: bump to 1.12
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 00:47:18 +08:00
CN_SZTL
4c0f04048a
kernel: apply hacks on kernel 5.10
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 00:46:19 +08:00
Daniel Golle
8312c31531
kernel: update kernel 5.10 to 5.10.16
Compile and runtime-tested on mediatek/mt7622

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 00:44:38 +08:00
Adrian Schmutzler
827f5aa66a
generic: ar8216: update version switch for of_get_phy_mode fix
Kernel has changed the of_get_phy_mode API in commit 0c65b2b90d13
("net: of_get_phy_mode: Change API to solve int/unit warnings").

This is already included in kernel 5.5, so fix the version switch
(though this will not actually matter for the versions we support).

Similar driver adjustments to account for the API change will
probably be necessary to various other local drivers.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 00:37:14 +08:00
David Bauer
d06c0fd662
generic: ar8216: fix kernel 5.10 compile error
Signed-off-by: David Bauer <mail@david-bauer.net>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 00:37:10 +08:00
Adrian Schmutzler
ba15dd014b
kernel: 5.10: refresh patches
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 00:37:07 +08:00
Adrian Schmutzler
190f92a235
kernel: 5.10: add missing partitions doc syntax commit
This patch has been added to 5.4, but not been copied to 5.10:
7495acb555 ("kernel: backport mtd commit converting partitions doc syntax")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 00:36:59 +08:00
Adrian Schmutzler
2170046cf8
kernel: 5.10: fix busy wait loop in mediatek PPE code
Reapply changes added to 5.4 but not copied to 5.10:
3da4acaa7b ("kernel: fix busy wait loop in mediatek PPE code")

The intention is for the loop to timeout if the body does not succeed.
The current logic calls time_is_before_jiffies(timeout) which is false
until after the timeout, so the loop body never executes.

time_is_after_jiffies(timeout) will return true until timeout is less
than jiffies, which is the intended behavior here.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 00:36:56 +08:00
Adrian Schmutzler
e0bd64f228
kernel: hack-5.10: make UDP tunneling user-selectable
This applies another patch from 5.4 to 5.10 as well:
de09355f74 ("kernel/hack-5.4: make UDP tunneling user-selectable")

UDP tunneling support isn't user-selectable, but it's required by WireGuard
which is, for the time being, an out-of-tree module. We currently work around
this issue by selecting an unrelated module which depends on UDP tunnelling
(VXLAN). This is inconvenient, as it implies this unrelated module needs to be
built-in when doing a monolithic build.

Fix this inconvenience by making UDP tunneling user-selectable in the kernel
configuration.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 00:36:52 +08:00
Felix Fietkau
e00ab26ec5
kernel: add linux 5.10 support
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 00:36:38 +08:00
Felix Fietkau
df1a7c9b04
build: fix build with CONFIG_STRIP_KERNEL_EXPORTS
Only use symtab.h on the final kernel link

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 00:36:24 +08:00
Felix Fietkau
e61c43d57e
build: build kernel image before building modules/packages
This is needed for linux 5.10, where modules.builtin is generated from
vmlinux.o

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Tianling Shen <cnsztl@project-openwrt.eu.org>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-18 00:36:19 +08:00
CN_SZTL
400288d50f
r8125: bump to 9.005.01
Enabled RSS support for performance.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-17 22:14:16 +08:00
CN_SZTL
60e043ab40
Revert "rockchip: use LZMA compressed FIT image for NanoPi R2S"
This reverts commit 0f57324f48.
Prepare for the upcoming kernel 5.10 support.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-17 21:58:38 +08:00