Commit Graph

4722 Commits

Author SHA1 Message Date
CN_SZTL
9daa977cac
target/x86: add Kernel 5.4 (Testing) 2020-04-14 07:03:36 +08:00
Jeffery To
8b57e6e520
cryptodev-linux: Fix error when compiling with 5.4 kernel
Currently, cryptodev-linux fails to compile with a
'"crypto_givcipher_type" undefined' error for targets on the 5.4 kernel,
e.g. armvirt[1].

This backports an upstream patch[2] that fixes this error.

[1]: https://downloads.openwrt.org/snapshots/faillogs/aarch64_generic/base/cryptodev-linux/compile.txt
[2]: f971e0cd4a

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-14 05:46:51 +08:00
CN_SZTL
468ae867b8
target/ipq40xx: init kernel 5.4 support 2020-04-14 05:19:58 +08:00
CN_SZTL
8853e1aa06
kernel/video: fix dependency 2020-04-14 04:19:28 +08:00
CN_SZTL
d3f103f38b
target/x86: zen: copy kernel 4.19 config to 5.4 2020-04-14 04:16:07 +08:00
CN_SZTL
0df7c96021
x86_64: add kernel config 2020-04-14 04:12:53 +08:00
Adrian Schmutzler
4ebd92c226
kernel: use older kernel for explicitly setting dependencies
It is generally more desirable to use older kernel versions for
dependencies, as this will require less changes when newer kernels
are added (they will by default select the newer packages).

Since we currently only have two kernels (4.14 and 4.19) in master,
this patch applies this logic by converting all LINUX_4_19 symbols
to their inverted LINUX_4_14 equivalents.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-14 04:09:17 +08:00
Luiz Angelo Daros de Luca
2ce89e258d
kernel: load rtl8366_smi and rtl8367b on boot
This external switch driver should be loaded on boot for network support
in failsafe mode.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
[alter commit message]
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2020-04-14 03:59:07 +08:00
Tim Harvey
f71e92e373
kernel: fix lib-xor for ARM64
use LINUX_KARCH in directory path to avoid failures in non-arm targets.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2020-04-14 03:57:02 +08:00
Eneas U de Queiroz
d9aea0982c
kernel: add @IPV6 dependency to ipv6 modules
IPv6 modules should all depend on @IPV6, to avoid circular dependencies
problems, especially if they select a module that depends on IPV6 as
well.  In theory, if a package A depends on IPV6, any package doing
'select A' (DEPENDS+= A) should also depend on IPV6; otherwise selecting
A will fail.  Sometimes the build system is forgiving this, but
eventually, and unexpectedly, it may blow up on some other commit.

Alternatively one can conditionally add IPv6 dependencies only if
CONFIG_IPV6 is selected: (DEPENDS+= +IPV6:package6).

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-04-14 03:56:47 +08:00
Mathias Kresin
adab38ed12
generic: make all phy drivers kernel 5.0 compatible
It adjusts the code to upstream changes from the commit 3c1bcc8614db
("net: ethernet: Convert phydev advertize and supported from u32 to link
 mode")

Signed-off-by: Mathias Kresin <dev@kresin.me>
2020-04-14 03:55:42 +08:00
Hauke Mehrtens
6642f92907
kernel: Add of_touchscreen.ko to kmod-input-touchscreen-ads7846
kmod-input-touchscreen-ads7846 depends on of_touchscreen.ko since
kernel 5.4.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-04-14 03:54:16 +08:00
Koen Vandeputte
11e9533e23
kernel: mode_beet mode_transport mode_tunnel xfram modules
This adds the new xfrm4_mode_beet, xfrm4_mode_transport,
xfrm4_mode_tunnel and their IPv6 versions on kernel 5.4. These modules
were newly added in kernel 5.2.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-04-14 03:53:04 +08:00
Norbert van Bolhuis
732fc5e9cd
linux-atm: Include linux/sockios.h for SIOCGSTAMP
Since linux kernel commit 0768e17073dc527ccd18ed5f96ce85f9985e9115
(2019-04-19) the asm-generic/sockios.h header no longer defines
SIOCGSTAMP. Instead it provides only SIOCGSTAMP_OLD.

The linux/sockios.h header now defines SIOCGSTAMP using either
SIOCGSTAMP_OLD or SIOCGSTAMP_NEW as appropriate. This linux only
header file is not included so we get a build failure.

Signed-off-by: Norbert van Bolhuis <nvbolhuis@aimvalley.nl>
2020-04-14 03:52:54 +08:00
Chen Minqiang
7b93b863e8
x86: make crashdump works
1. KERNEL_CRASH_DUMP should depends on KERNEL_PROC_KCORE (kexec use it)
2. select crashkernel mem size by totalmem
   mem <= 256M disable crashkernel by default
   mem >= 4G use 256M for crashkernel
   mem >= 8G use 512M for crashkernel
   default use 128M
3. set BOOT_IMAGE in kdump.init
4. resolve a "Unhandled rela relocation: R_X86_64_PLT32" error

Tested on x86_64

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2020-04-14 03:51:40 +08:00
Hauke Mehrtens
af18655142
kernel: Adapt moved crodic.ko module
The module was moved in the kernel, adapt OpenWrt.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-04-14 03:51:27 +08:00
Koen Vandeputte
8ea57eb6d2
kernel: Include xt_MASQUERADE for kernel 5.2 and later
Instead of ip6t_MASQUERADE, include xt_MASQUERADE on kernel >= 5.2.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-04-14 03:50:14 +08:00
CN_SZTL
b83e6fc529
kernel/fs: exFAT: fix dependency 2020-04-14 03:44:32 +08:00
CN_SZTL
37ebeddeca
kernel/usb: adjust dependency 2020-04-14 03:41:15 +08:00
CN_SZTL
070cc9bdfd
kernel/fs: init exFAT fs driver for Kernel 5.4 2020-04-14 03:38:32 +08:00
Mathias Kresin
2111c6e03f
kernel: swconfig: make compatible with kernel 5.2
Since kernel 5.2 within netlink messages the NLA_F_NESTED nested flag is
validated. But swconfig/swlib doesn't set the flag for
SWITCH_ATTR_OP_VALUE_PORTS related netlink messages and assigning ports
to vlans via

  swconfig dev switch0 vlan 1 set ports '0 1 2 3 4 6t'

Errors put with "Failed to set attribute: Invalid input data or
parameter".

Relax the validation rules and use the deprecated functions, to use the
same level of validation as it was till kernel 5.1. Depending on who has
swconfig related netlink messages implemented, there might be more
broken tools out there and we should keep backward compatibility if
possible.

Signed-off-by: Mathias Kresin <dev@kresin.me>
Tested-by: Rafał Miłecki <rafal@milecki.pl>
2020-04-14 02:59:41 +08:00
Hauke Mehrtens
04f18e584d
kernel: Remove chash.ko from kmod-drm-amdgpu
This module was added with kernel 4.15, but is was removed again with
kernel version 5.3. OpenWrt does not support specifying a kernel version
range so just break it with kernel 4.14 and only support recent kernel
versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-04-14 02:56:11 +08:00
Adrian Schmutzler
ae10bb2273
broadcom-wl: fix compilation with kernel >= 4.15
Since kernel 4.15, init_timer is not available anymore, and has been
replaced by timer_setup. The fixes compilation of wl_linuc.c, which
returned the following errors beforehand (line-wrapped manually):

.../broadcom-wl-5.10.56.27.3/driver/wl_linux.c: In function 'wl_init_timer':
.../broadcom-wl-5.10.56.27.3/driver/wl_linux.c:2576:2: error: implicit
	declaration of function 'init_timer'; did you mean 'init_timers'?
	[-Werror=implicit-function-declaration]
  init_timer(&t->timer);
  ^~~~~~~~~~
  init_timers
.../broadcom-wl-5.10.56.27.3/driver/wl_linux.c:2577:10: error:
	'struct timer_list' has no member named 'data'
  t->timer.data = (ulong) t;
          ^
.../broadcom-wl-5.10.56.27.3/driver/wl_linux.c:2578:20: error: assignment
	to 'void (*)(struct timer_list *)' from incompatible pointer type
	'void (*)(ulong)' {aka 'void (*)(long unsigned int)'}
	[-Werror=incompatible-pointer-types]
  t->timer.function = wl_timer;

This should fix build of several devices on bcm63xx with testing
kernel (4.19).

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-14 02:55:38 +08:00
Martin Blumenstingl
21d1be2d07
lantiq: ltq-deu: fix compatibility with Linux 5.3+
Upstream commit 84ede58dfcd1d ("crypto: hash - remove
CRYPTO_ALG_TYPE_DIGEST") drops the CRYPTO_ALG_TYPE_DIGEST define because
it has the same value as CRYPTO_ALG_TYPE_HASH. This was the case for
earlier kernels as well. Switch to CRYPTO_ALG_TYPE_HASH to fix building
against Linux 5.4.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2020-04-14 02:54:21 +08:00
Koen Vandeputte
f5f2193e3f
kernel: Make kmod-rtc-pcf2123 depend on kmod-regmap-spi
In kernel 5.4 kmod-rtc-pcf2123 depends on kmod-regmap-spi, add this missing
dependency.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-04-14 02:52:32 +08:00
Mathias Kresin
0cc005294a
ltq-atm: add Linux 5.0+ compatibility
Upstream commit 96d4f267e40f95 ("Remove 'type' argument from access_ok()
function") removes the first argument to access_ok.
Adjust the code so it builds with Linux 5.4.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
2020-04-14 02:52:08 +08:00
Hauke Mehrtens
1fb04b0c7e
kernel: Add roles.ko to kmod-usb-chipidea
kmod-usb-chipidea depends on roles.ko since kernel 5.4.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-04-14 02:51:26 +08:00
Hauke Mehrtens
9b6bfe6e35
kernel: Make kmod-gpio-pca953x depend on kmod-regmap-i2c
In kernel 5.4 kmod-gpio-pca953x depends on kmod-regmap-i2c.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-04-14 02:42:57 +08:00
Hauke Mehrtens
b5f1fb38f9
kernel: module v4l2-common.ko was removed
The content of v4l2-common.ko was merged into videodev.ko and it was
removed in kernel 5.4.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-04-14 02:42:51 +08:00
Hauke Mehrtens
fd921218ba
kernel: Make kmod-fs-f2fs depend on kmod-nls-base
Since kernel 5.4 kmod-fs-f2fs is depending on kmod-nls-base.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-04-14 02:41:29 +08:00
Hauke Mehrtens
b94070de6f
nat46: Fix compile with kernel 5.4
nf_reset() was renamed to nf_reset_ct() in upstream Linux commit
895b5c9f206e ("netfilter: drop bridge nf reset from nf_reset)"

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-04-14 02:41:14 +08:00
CN_SZTL
2d1746ff2b
kernel/linux: netfilter: adjust dependency 2020-04-14 02:20:04 +08:00
CN_SZTL
e179005f27
kernel/linux: adjust dependency 2020-04-14 02:14:05 +08:00
Hauke Mehrtens
01d9db21c1
kernel: Remove kmod-gigaset for kernel 5.4
gigaset was moved to staging in kernel 5.4, just deactivate it on
recent kernel versions instead of adapting it.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-04-14 00:34:49 +08:00
Hauke Mehrtens
dff7db7060
kernel: Make kmod-ixgbe depend on kmod-libphy
With kernel 5.4 kmod-ixgbe is depending on kmod-libphy, add this
missing dependency.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-04-14 00:31:59 +08:00
AmadeusGhost
87eff41c80
i40e: adjust dependency 2020-04-14 00:30:32 +08:00
ElonH
f121547284
i40evf: driver has been merged in iavf
drivers/net/ethernet/intel/iavf/iavf_main.c
56:MODULE_ALIAS("i40evf");
2020-04-14 00:29:08 +08:00
CN_SZTL
c91df68a6c
r8125: do not support kernel5.4 2020-04-14 00:18:52 +08:00
CN_SZTL
9cbd449674
kernel: init kernel 5.4 support 2020-04-14 00:08:05 +08:00
Tomasz Maciej Nowak
387c09fb6f
kernel: replace SUBDIRS with M in package recipes
The SUBDIRS variable has been removed in kernel 5.4, and was deprecated
since the beginnig of kernel git history in favour of M or KBUILD_EXTMOD.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
2020-04-14 00:04:04 +08:00
Rafał Miłecki
a1aeb10921
kernel: backport mtd partition address fix sent upstream
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2020-04-13 23:43:08 +08:00
CN_SZTL
eb020983ca
target/generic: add missing config 2020-04-13 22:21:52 +08:00
Álvaro Fernández Rojas
9284193fd9
cypress-firmware: update to v5.4.18-2020_0402
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2020-04-13 21:50:36 +08:00
CN_SZTL
0d892c9d48
KoolProxy: drop garbage software from garbage KoolShare 2020-04-13 19:37:16 +08:00
AmadeusGhost
e225cb6e02 package: disable duplicate packages 2020-04-13 09:05:10 +08:00
CN_SZTL
b0056a52ae
luci-app-k3usb: sort out files 2020-04-13 02:38:54 +08:00
CN_SZTL
011a228085
luci-theme-opentomcat: sort out files 2020-04-13 02:34:56 +08:00
CN_SZTL
acb287567e
luci-app-smstool: sort out files 2020-04-13 02:30:50 +08:00
CN_SZTL
73cb01c877
luci-app-chinadns: sort out files 2020-04-13 02:27:40 +08:00
CN_SZTL
2aee1f3f15
luci-app-k3screenctrl: sort out files 2020-04-13 02:21:38 +08:00