Commit Graph

5611 Commits

Author SHA1 Message Date
Christian Marangi
92fbd549a3 generic: fix wrong PTR_ERR use in of net mac address ascii patch
nvmem_cell_read return a pointer error when an error occurs. Currently
we convert the pointer error to an int while the rest of the function
return a void* and expcet an error pointer. Fix this PTR_ERR msuse
fixing compilation warning.

Fixes the following compilation warning:
net/ethernet/eth.c: In function 'nvmem_cell_get_mac_address':
net/ethernet/eth.c:547:24: warning: returning 'long int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
  547 |                 return PTR_ERR(mac);
      |                        ^~~~~~~~~~~~
net/ethernet/eth.c: In function 'nvmem_cell_get_mac_address_ascii':
net/ethernet/eth.c:564:24: warning: returning 'long int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
  564 |                 return PTR_ERR(mac_ascii);
      |                        ^~~~~~~~~~~~~~~~~~

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-12-22 19:45:20 +08:00
Felix Fietkau
98fc706c95 mediatek: filogic: enable maxlinear PHY support
Needed for the 7986 RFB1 board, refresh config

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-22 19:43:30 +08:00
Daniel Golle
01a0580c6e mediatek: remove obsolete patch
The patch enabling hardware flow offloading support on the MT7623 SoC
has been merged upstream as of Linux 5.13. Remove our local patch which
wrongly got forward-ported and now actually enables hardware flow
offloading for the MT2701 SoC family (unsupported in OpenWrt).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-12-22 19:39:29 +08:00
lovehackintosh
c267a13cee
kernel: bump to 5.10.161, 5.15.85, 6.1.1 (#10666)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-12-22 11:25:10 +08:00
AmadeusGhost
c4be33b792 rockchip: force enable rk3568 msi interrupt
Since the interrupt of RK3568 has hardware bug,
we need a workaround to enable msi interrupt.
Without this, the r8125 will not be stable.
2022-12-21 19:30:24 +08:00
AmadeusGhost
f24975f2c5 rockchip: update rk3568 pcie2x1 dts part
Fixes: #10626
2022-12-21 19:19:14 +08:00
Koen Vandeputte
32d7126c9e kernel: package mhi pci driver
This driver provides MHI PCI controller driver for devices

Fixes: #10660

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2022-12-21 19:15:19 +08:00
Robert Marko
6b10e5f27f linux-firmware: package ath11k consumer cards firmware
Package firmware for ath11k supported QCA consumer cards from linux-firmware.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2022-12-21 11:59:55 +08:00
Nick Hainke
b5bcdf726d linux-firmware: update to 20221109
Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-12-21 11:56:14 +08:00
coolsnowwolf
d3e16f203a Revert "tools/upx: remove (#10622)"
This reverts commit 71b4500ff3.
2022-12-20 23:14:22 +08:00
lovehackintosh
e32969d6bc
Kernel: bump to 5.4.228, 5.10.160, 5.15.84 (#10656)
* kernel: bump 5.10 to 5.10.160

No patches affected by this update.

Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.15 to 5.15.84

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.4 to 5.4.228

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-12-20 23:13:01 +08:00
coolsnowwolf
07423281c6 mt76: update to the latest version 2022-12-20 23:11:06 +08:00
coolsnowwolf
a45ed09431 mac80211: backport some new API from v6.1 2022-12-20 22:38:35 +08:00
coolsnowwolf
6710357cce mac80211: revert to linux 5.15 2022-12-20 14:57:32 +08:00
coolsnowwolf
710cba24d7 nftables: bump version 2022-12-20 11:47:25 +08:00
coolsnowwolf
9c97511b89 mac80211: add ath11k PCI support 2022-12-20 11:43:45 +08:00
coolsnowwolf
6d397cf174 generic: backport API from linux 6.10 for mac80211 v6.1-rc8 2022-12-20 01:18:50 +08:00
coolsnowwolf
3d38995ca2 dnsmasq: fix filter_aaaa option 2022-12-19 23:21:34 +08:00
Albert Xu
b45566e90d
package: Sync with upstream (#10641)
* firmware-utils: bump to git HEAD

Adds support for building TP-Link CPE605v1 factory images

    bd856eff4850 tplink-safeloader: add TP-Link CPE605 v1 Support

Signed-off-by: Sander Vanheule <sander@svanheule.net>

* firmware-utils: fix archive checksum

PKG_SOURCE_DATE was modified after updating PKG_MIRROR_HASH, causing the
latter to change. This results in a warning during builds and rejected
downloads.

Fixes: 232879a7b7f8 ("firmware-utils: bump to git HEAD")
Signed-off-by: Sander Vanheule <sander@svanheule.net>

* libtracefs: update to 1.6.2

378a9dd libtracefs: version 1.6.2
e6daa60 libtracefs: Add unit test to test mounting of tracefs_{tracing,debug}_dir()
32acbbf libtracefs: Have tracefs_{tracing,debug}_dir() mount {tracefs,debugfs} if not mounted

Signed-off-by: Nick Hainke <vincent@systemli.org>

* ethtool: add PKG_CPE_ID

Add CPE ID for tracking CVEs.

Signed-off-by: Nick Hainke <vincent@systemli.org>

* ethtool: update to 6.0

Release Notes:
https://lwn.net/Articles/910841/

Signed-off-by: Nick Hainke <vincent@systemli.org>

* strace: update to 6.1

Release Notes:
https://github.com/strace/strace/releases/tag/v6.1

Signed-off-by: Nick Hainke <vincent@systemli.org>

* trace-cmd: update to v3.1.5

Update to latest release.

Signed-off-by: Nick Hainke <vincent@systemli.org>

* libtraceevent: update to 1.7.0

Update to latest release.

Signed-off-by: Nick Hainke <vincent@systemli.org>

* libtracefs: update to 1.6.3

Update to latest release.

Signed-off-by: Nick Hainke <vincent@systemli.org>

* tools/bash: update to 5.2.15

Update to the latest released version.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* tools/ccache: update to 4.7.4

Release Notes:
    https://ccache.dev/releasenotes.html#_ccache_4_7_3
    https://ccache.dev/releasenotes.html#_ccache_4_7_4

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* tools/libressl: update to 3.7.0

Release notes:
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.0-relnotes.txt
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.1-relnotes.txt
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.7.0-relnotes.txt

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* tools/mpc: update to 1.3.1

Version 1.3.1 new features:
	Bug fix: It is again possible to include mpc.h without including stdio.h.
Version 1.3.0 new features:
    New function: mpc_agm
    New rounding modes "away from zero", indicated by the letter "A" and corresponding to MPFR_RNDA on the designated real or imaginary part.
    New experimental ball arithmetic.
    New experimental function: mpc_eta_fund
    Bug fixes:
        mpc_asin for asin(z) with small |Re(z)| and tiny |Im(z)|
        mpc_pow_fr: sign of zero part of result when the base has up to sign the same real and imaginary part, and the exponent is an even positive integer
        mpc_fma: the returned int value was incorrect in some cases (indicating whether the rounded real/imaginary parts were smaller/equal/greater than the exact values), but the computed complex value was correct.
    Remove the unmaintained Makefile.vc; build files for Visual Studio are maintained independently by Brian Gladman.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* tools/patchelf: update to 0.17.0

Update to the latest released version.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Nick Hainke <vincent@systemli.org>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Co-authored-by: Sander Vanheule <sander@svanheule.net>
Co-authored-by: Nick Hainke <vincent@systemli.org>
Co-authored-by: Linhui Liu <liulinhui36@gmail.com>
2022-12-19 12:45:05 +08:00
lovehackintosh
bc3e54a83d
tools/sed: Fix handling of symlinks of 128 chars (#10642)
If the absolute path a symlink is pointing to is 128 bytes long sed
failed with an error message like this: "<path>/sedstbU8O: Not a directory"

This fixes a problem building python seen in the build bot.

This patch is on its way into upstream sed.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-19 12:44:49 +08:00
lovehackintosh
71b4500ff3
tools/upx: remove (#10622)
upx is already in package/lean/upx
save a bit of compilation time.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-12-18 22:59:13 +08:00
coolsnowwolf
b0e3285bf0 dnsmasq: set a cachesize default value 8192 2022-12-18 22:52:26 +08:00
AmadeusGhost
d5298b0769 ath10k: add missing 256qam patch 2022-12-18 21:50:14 +08:00
Felix Fietkau
3f8f00b491 mt76: update to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-18 21:33:21 +08:00
Felix Fietkau
0aac47f815 ath9k: add missing dependency on random core
Reported-by: Hartmut Birr <e9hack@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-18 21:32:24 +08:00
Felix Fietkau
bdb6a31ce2 mac80211: update to linux 6.1-rc8
This should help stay in sync with upstream development

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-18 21:30:21 +08:00
Felix Fietkau
e8b525f43c mac80211: remove old legacy legacy drivers
Get rid of drivers that are either limited to 802.11b/g or don't even support
cfg80211/mac80211. Most of these are either limited to boards that we don't even
support anymore because of firmware size, or were only used for custom hacks by
a really small number of users in the past.
Let's get rid of those to reduce the maintenance effort and the number of useless
packages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-18 20:25:07 +08:00
AmadeusGhost
82a059873f mediatek: drop useless files 2022-12-18 12:24:30 +08:00
Hauke Mehrtens
61c54ee563 gdb: Do not link against xxhash
libxxhash is now available in the OpenWrt package feed and gdb will link
against it if gdb finds this library. Explicitly deactivate the usage
of xxhash.

This should fix the build of gdb in build bots.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-18 12:20:13 +08:00
Hauke Mehrtens
b533cb3266 kernel: Make KERNEL_MAKEOPTS recursively expanded
KERNEL_MAKEOPTS will get expanded when it is used and not when it is
defined in the kernel.mk file now. This fixes problems finding dependent
kernel modules when it is used by a kernel module package.

Without this change the build of packages which depend on other out of
tree modules failed when they used KERNEL_MAKE because some symbols could
not be found. This happened because KERNEL_MAKE_FLAGS which contains a
"if $(__package_mk)" was  evaluated where KERNEL_MAKEOPTS was defined
and not when the KERNEL_MAKE was used. For packages which included
kernel.mk before package.mk we saw this problem. One workaround
was to use the correct include order and the other one was to not
use KERNEL_MAKE_FLAGS, but copy its content.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-18 12:19:56 +08:00
Furong Xu
2569dc001c mediatek: add LED support for Xiaomi Redmi AX6000
add DT nodes and default package for the LEDs on Redmi AX6000

Signed-off-by: Furong Xu <xfr@outlook.com>
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2022-12-17 11:24:24 +08:00
Furong Xu
8563a8117b mediatek: enable sel_clk for spi-mt65xx
Without explicitly enabling sel_clk, clk_disable_unused() will disable
it when boot is done, causing CPU hang on SPI1 register access on MT7986.
Explicitly enable sel_clk to make SPI1 functional.

Signed-off-by: Furong Xu <xfr@outlook.com>
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2022-12-17 11:22:54 +08:00
Chuanhong Guo
599d5ef309 kernel: add driver package for WS2812B LEDs
Two WS2812B (NeoPixel) clones are used in Xiaomi Redmi AX6000 as
indicator lights. Add a driver for controlling it using SPI MOSI.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2022-12-17 11:21:23 +08:00
Tony Butler
450a7a3686 kernel: modules/lib-lz4: add lz4hc_compress
enable option `CONFIG_CRYPTO_LZ4HC` to match default kernel config

this only adds the `lz4hc_compress` module, and has no effect on the
`lz4_decompress` module which already supports any flavor

Signed-off-by: Tony Butler <spudz76@gmail.com>
2022-12-17 11:20:09 +08:00
Stijn Tintel
a70fb090cd kernel: add missing symbol to 5.10 config
Kernel 5.10.158 added a prompt for the FUNCTION_ERROR_INJECTION symbol.
This is exposed in builds with CONFIG_KERNEL_KPROBES enabled, causing
those builds to fail due to a missing symbol. Add the symbol to fix
this.

Fixes: 6801c460b6a7 ("kernel: bump 5.10 to 5.10.158")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-12-17 11:19:05 +08:00
Stijn Tintel
68023f2712 kernel: add missing symbol to 5.15 config
Kernel 5.15.82 added a prompt for the FUNCTION_ERROR_INJECTION symbol.
This is exposed in builds with CONFIG_KERNEL_KPROBES enabled, causing
those builds to fail due to a missing symbol. Add the symbol to fix
this.

Fixes: 68426e54eda4 ("kernel: bump 5.15 to 5.15.82")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-12-17 11:18:39 +08:00
AmadeusGhost
72d0e2b562 linux-firmware: add rtl8723du-firmware 2022-12-16 12:38:16 +08:00
AmadeusGhost
09c81d9274 rtw88: move usb part out of backport tree
Create a useless driver to avoid affecting the
backport tree.
2022-12-16 12:09:00 +08:00
coolsnowwolf
9364fa6e6c firewall: fix locking issue when running racing condition 2022-12-16 11:32:41 +08:00
Albert Xu
4952f51d17
tools/dosfstools: fix PKG_SOURCE (#10620)
Both mirrors provided in the Makefile only serve gzipped tarballs.

Fixes: #10871
Fixes: 9edfe7dd13d9 ("source: Switch to xz for packages and tools where possible")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-12-15 18:26:27 +08:00
lovehackintosh
7660f97fb6
kernel: bump to 5.4.227, 5.10.159, 5.15.83 (#10619)
* kernel: bump 5.15 to 5.15.83

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* kernel: bump 5.10 to 5.10.159

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* kernel: bump 5.4 to 5.4.227

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-12-15 13:14:31 +08:00
coolsnowwolf
afb7eaa4bb dnsmasq: drop mini_ttl option 2022-12-15 13:13:15 +08:00
coolsnowwolf
8c172cc7bf dnsmasq: add support for filter-AAAA/A 2022-12-15 12:18:02 +08:00
coolsnowwolf
a1b503c6ad dnsmasq: add logfacility file to jail mounts 2022-12-15 12:09:41 +08:00
coolsnowwolf
e50a86b90f firewall: set default fullcone to high performance mode 2022-12-15 03:59:10 +08:00
coolsnowwolf
418a674f86 generic: fix linux 6.1 flowoffload support 2022-12-15 03:56:39 +08:00
Hauke Mehrtens
557fbb82b6 kernel: kmod-ipt-ulog: Remove package
The ulog iptables target was removed with kernel 3.17, remove the kernel
and also the iptables package in OpenWrt too.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-15 01:47:28 +08:00
coolsnowwolf
6b480374fd rockchip: fix opc-h68k tf boot fail on some cards 2022-12-15 00:53:32 +08:00
coolsnowwolf
830bc8e815 dnsmasq: bump to v2.8.7 2022-12-15 00:44:58 +08:00
coolsnowwolf
4a5a6e637e silicon: fix kernel target 2022-12-14 18:35:35 +08:00