Commit Graph

3066 Commits

Author SHA1 Message Date
lean
db9659b5db Version update to R22.8.2 2022-08-04 19:36:06 +08:00
Nick Hainke
690ee8c181 libcap: update to 2.65
Changes:
a47d86d Up the release version to 2.65
fc99e56 Include more signatures in pgp.keys.asc.
52288cc Close out this comment in the go/Makefile
eb0f1df Prevent 'capsh --user=xxx --' from generating a bash error.
9a95791 Improve documentation for cap_get_pid and cap_reset_ambient.
21d08b0 Fix syntax error in DEBUG protected setcap.c code.
9425048 More useful captree usage string and man page.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-04 10:16:44 +08:00
Nick Hainke
fab893c9d6 libcap: update to 2.64
Changes:
38cfa2e Up the release version to 2.64
7617af6 Avoid a deadlock in forked psx thread exit.
fc029cb Include LIBCAP_{MAJOR,MINOR} #define's in sys/capability.h
ceaa591 Clarify how the cap_get_pid() argument is interpreted.
15cacf2 Fix prctl return code/errno handling in libcap.
aae9374 Be explicit about CGO_ENABLED=1 for compare-cap build.
66a8a14 psx: free allocated memory at exit.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-04 10:16:15 +08:00
Mark Mentovai
985365da45 libmnl: fix build when bash is not located at /bin/bash
This fixes the libmnl build on macOS, which ships with an outdated bash
at /bin/bash. During the OpenWrt build, a modern host bash is built and
made available at staging_dir/host/bin/bash, which is present before
/bin/bash in the build's PATH.

This is similar to 8f7ce3aa6dda, presently appearing at
package/kernel/mac80211/patches/build/001-fix_build.patch.

Signed-off-by: Mark Mentovai <mark@mentovai.com>
2022-08-03 10:33:16 +08:00
Stalker
975e0f70ca
Fix modules in kernel 5.19 (#9883)
Signed-off-by: xiangfeidexiaohuo <jsjson@163.com>
2022-08-02 13:38:52 +08:00
John Audia
bb2079b959 wolfssl: fix math library build
Apply upstream patch[1] to fix breakage around math libraries.
This can likely be removed when 5.5.0-stable is tagged and released.

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

1. https://github.com/wolfSSL/wolfssl/pull/5390

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-08-02 10:01:15 +08:00
Eneas U de Queiroz
90e8e6fac8 wolfssl: bump to 5.4.0
This version fixes two vulnerabilities:
-CVE-2022-34293[high]: Potential for DTLS DoS attack
-[medium]: Ciphertext side channel attack on ECC and DH operations.

The patch fixing x86 aesni build has been merged upstream.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-08-02 10:00:57 +08:00
Daniel Golle
8457bf1691 kernel: add kmod-nvme package
Add driver for NVM Express block devices, ie. PCIe connected SSDs.

Targets which allow booting from NVMe (x86, maybe some mvebu boards come
to mind) should have it built-in, so rootfs can be mounted from there.
For targets without NVMe support in bootloader or BIOS/firmware it's
sufficient to provide the kernel module package.

On targets having the NVMe driver built-in the resulting kmod package
is an empty dummy. In any case, depending on or installing kmod-nvme
results in driver support being available (either because it was already
built-in or because the relevant kernel modules are added and loaded).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-08-01 09:55:20 +08:00
Jo-Philipp Wich
f690041682 wolfssl: make shared again
Disable the usage of target specific CPU crypto instructions by default
to allow the package being shared again. Since WolfSSL does not offer
a stable ABI or a long term support version suitable for OpenWrt release
timeframes, we're forced to frequently update it which is greatly
complicated by the package being nonshared.

People who want or need CPU crypto instruction support can enable it in
menuconfig while building custom images for the few platforms that support
them.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-08-01 09:54:36 +08:00
Hauke Mehrtens
c7ce44ab41 wolfssl: Do not activate HW acceleration on armvirt by default
The armvirt target is also used to run OpenWrt in lxc on other targets
like a Raspberry Pi. If we set WOLFSSL_HAS_CPU_CRYPTO by default the
wolfssl binray is only working when the CPU supports the hardware crypto
extension.

Some targets like the Raspberry Pi do not support the ARM CPU crypto
extension, compile wolfssl without it by default. It is still possible
to activate it in custom builds.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-07-25 10:10:05 +08:00
骷髅头
eb3ebc4fc0
rockchip:add doornet2 lpddr4 4gb (#9817)
* 添加DN2 LPDDR4 4GB

* 添加DN2 LPDDR4 4GB

* rockchip: Complement missing configuration for other kernels

Co-authored-by: hejiawencc <hjw0415@outlook.com>
2022-07-24 15:43:55 +08:00
lean
7af074fd1d Revert "uboot-rockchip:doornet2 detaches from evb rk (#9812)"
This reverts commit cdad02d028.
2022-07-21 16:58:40 +08:00
骷髅头
cdad02d028
uboot-rockchip:doornet2 detaches from evb rk (#9812)
* add CONFIG_TARGET_DOORNET2_RK3399=y

* uboot-rockchip:doornet2 out of evb rk patch

* uboot-rockchip:cancel doornet2 to use rkbin

* Update armv8.mk

* rockchip:add  kernel5.15 rk3399-nanopi-r4se.dts

* rockchip:add kernel 5.18 rk3399-nanopi-r4se
2022-07-21 16:12:52 +08:00
Catalin Toda
64d53bd4b6 kernel: netconsole: add network console logging support
Accessing the console on many devices is difficult.
netconsole eases debugging on devices that crash
after the network is up.

Reference to the netconsole documentation in upstream Linux:
<https://www.kernel.org/doc/html/latest/networking/netconsole.html>
|
|netconsole=[+][src-port]@[src-ip]/[<dev>],[tgt-port]@<tgt-ip>/[tgt-macaddr]
|
| where
|  +            if present, enable extended console support
|  src-port     source for UDP packets (defaults to 6665)
|  src-ip       source IP to use (interface address)
|  dev          network interface (eth0)
|  tgt-port     port for logging agent (6666)
|  tgt-ip       IP address for logging agent
|  tgt-macaddr  ethernet MAC address for logging agent (broadcast)

OpenWrt specific notes:

OpenWrt's device userspace scripts are attaching the network
interface (i.e. eth0) to a (virtual) bridge (br-lan) device.
This will cause netconsole to report:
|network logging stopped on interface eth0 as it is joining a master device
(and unfortunately the traffic/logs to stop at this point)

As a workaround, the netconsole module can be manually loaded
again after the bridge has been setup with:

 insmod netconsole netconsole=@/br-lan,@192.168.1.x/MA:C...

One way of catching errors before the handoff, try to
append the /etc/modules.conf file with the following extra line:
 options netconsole netconsole=@/eth0,@192.168.1.x/MA:C...

and install the kmod-netconsole (=y) into the base image.

Signed-off-by: Catalin Toda <catalinii@yahoo.com>
(Added commit message from PR, added links to documentation)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-07-20 17:45:24 +08:00
Christian Lamparter
9f1069a59d sdk: add spidev-test to the bundle of userspace sources
moves and extends the current facilities, which have been
added some time ago for the the usbip utility, to support
more utilites that are shipped with the Linux kernel tree
to the SDK.

this allows to drop all the hand-waving and code for
failed previous attempts to mitigate the SDK build failures.

Fixes: bdaaf66e28bd ("utils/spidev_test: build package directly from Linux")
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-07-20 17:42:22 +08:00
Rosen Penev
51f606ec99 mbedtls: build with PIC
Fixes compilation with GCC12 and dependent packages for some reason.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-20 17:38:06 +08:00
lean
6d79ece4c2 modules: fix 5.18 vxlan support 2022-07-19 14:51:16 +08:00
lean
41a400d5f8 Revert "wolfssl: bump to 5.4.0 (#9795)"
This reverts commit 1399c99229.
2022-07-19 12:57:50 +08:00
Beginner
1399c99229
wolfssl: bump to 5.4.0 (#9795)
This version fixes two vulnerabilities:
-CVE-2022-34293[high]: Potential for DTLS DoS attack
-[medium]: Ciphertext side channel attack on ECC and DH operations.

The patch fixing x86 aesni build has been merged upstream.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>

Co-authored-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-07-19 01:28:42 +08:00
lean
2347b04b60 luci-app-qbittorrent-simple: add luci for qbittorrent simple UI 2022-07-18 14:04:35 +08:00
lean
4f98c23f5e r8125: remove uneeded 5.18 support patch 2022-07-18 11:19:05 +08:00
lean
2082f4604a r8125: bump to 9.009.02 2022-07-18 11:09:45 +08:00
Beginner
8bb65fc710
n2n: dynamic link to libcap (#9779)
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-07-18 00:12:24 +08:00
zhusir
ce12ca653e
Update fast-classifier.c (#9777)
Fix #9767
2022-07-17 17:03:35 +08:00
Christian Lamparter
79b5e1dd51 module/firmware: remove intersil PRISM54 support
the legacy driver was dropped in linux 5.14-rc3:
commit d249ff28b1d8 ("intersil: remove obsolete prism54 wireless driver")

Quoting Lukas Bulwahn:
"p54 replaces prism54 so users should be unaffected."

Reported-by: Marius Dinu <m95d+git@psihoexpert.ro>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-07-17 00:17:41 +08:00
Christian Lamparter
3adfa2ab8d utils/spidev_test: side-step build-system woes
The spidev_test is build in phase2 even though it should be disabled.
My best guess is that we hit the same issue that I had with nu801.
The build-system thinks it's a tool that is necessary for
building the kernel.

In this case, the same fix (adding a dependency on the presence of
the module) could work in this case as well?

Fixes: bdaaf66e28bd ("utils/spidev_test: build package directly from Linux")
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-07-17 00:17:02 +08:00
Christian Lamparter
2d293367e9 linux-firmware: Update to version 20220610
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-07-17 00:16:16 +08:00
Christian Lamparter
1e3364ba5d firmware: intel-microcode: update to 20220510
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-07-17 00:15:36 +08:00
lean
f876224408 crypto.mk : add backport config 2022-07-14 15:47:10 +08:00
lean
9ae4851e10 autocore: fix arm eth port seq 2022-07-14 15:08:46 +08:00
Tianling Shen
8b24921ba0
igb-intel: fix typo error (#9751)
`CONFLICT` -> `CONFLICTS`.

Fixes: 471976c7d9 ("igb-intel: mark conflict with kmod-igb")

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-07-14 00:16:15 +08:00
lean
7d04525dda igb-intel: using KERNEL_MAKE compile 2022-07-13 23:44:49 +08:00
Tianling Shen
471976c7d9
igb-intel: mark conflict with kmod-igb (#9750)
Fixes: #9742

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-07-13 23:37:03 +08:00
Tianling Shen
bd522ba3a1
uboot-rockchip: remove prebuilt of-platdata (#9747)
With this change you need have swig and libpython3-dev installed on
your host, which should be done already.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-07-13 23:30:37 +08:00
lean
53686de196 uboot-rockchip: add support for FriendlyElec NanoPi R4SE emmc boot 2022-07-12 22:46:00 +08:00
lean
faf4476659 kernel: Make QMI Helpers user selectable in 5.18 2022-07-12 18:54:05 +08:00
lean
5d92792d40 mt76: update to the latest version 2022-07-12 11:51:06 +08:00
lean
b6a99d33e1 uboot-rockchip: bump to v2022.07 RTM release 2022-07-12 11:09:47 +08:00
lean
c50a2c3261 uboot-rockchip: update with 2022.07-rc2 to support RK3566/RK3568 2022-07-11 16:42:10 +08:00
lean
954990d137 kmod-ata-ahci-platform: add rockchip RK3566/RK3568 sata support 2022-07-11 14:45:48 +08:00
AmadeusGhost
e4d5e7769b Revert "arm-trusted-firmware-rockchip-vendor: add RK3566/RK3568 support"
The rk356x SoC does not have Rockchip miniloader at all.
However, it has following features (hope you can enjoy):
 -- Support boot Android format image only
 -- Support gpt/misc compulsory verification
 -- Full-closed binary and uboot can't ntr it

This reverts commit 2c340abaf1.
2022-07-11 12:03:14 +08:00
lean
86ea102156 mac80211: add rtl8723bs for kernel 5.18 support for Ryan 2022-07-11 02:43:03 +08:00
Beginner
9e550e488a
wolfssl: WOLFSSL_HAS_WPAS requires WOLFSSL_HAS_DH (#9735)
Without this, WOLFSSL_HAS_DH can be disabled even if WOLFSSL_HAS_WPAS is
enabled, resulting in an "Anonymous suite requires DH" error when trying
to compile wolfssl.

Signed-off-by: Pascal Ernster <git@hardfalcon.net>
Reviewed-by: Eneas U de Queiroz <cotequeiroz@gmail.com>

Co-authored-by: Pascal Ernster <git@hardfalcon.net>
2022-07-11 00:56:13 +08:00
Beginner
4497dbb9b5
r8168: fix typo error (#9734)
Switched to use KERNEL_MAKE while at it.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-07-11 00:46:35 +08:00
lean
ae8709dce7 igb-intel: add igb oot version from Intel to support 82575/82576/82580/I350/I354/I210/I211 2022-07-10 18:13:31 +08:00
lean
870bae6520 usb net: fix usb-net-asix in 5.18 2022-07-10 17:54:49 +08:00
lean
f350b11ff2 fs: fix ntfs3 in kernel 5.18 2022-07-10 17:51:38 +08:00
lean
14e109d0b9 mt76: bypass warnings being treated as errors 2022-07-09 19:37:51 +08:00
lean
c6734e6cdb mac80211: backport APIs to support kernel 5.18 2022-07-09 19:19:54 +08:00
lean
d638ccd10a kmod-fs-cifs: fix dependence in 5.18 2022-07-09 16:28:20 +08:00