Commit Graph

7155 Commits

Author SHA1 Message Date
coolsnowwolf
68d77afcac ddns-scripts_aliyun: update with luci upstream 2024-10-29 03:23:43 +08:00
Daniel Golle
b1684789ed mediatek: mt7988: add DT entries for WED
Add memory regions and devices used for wireless offloading to the
device tree for MT7988.

This allows using WED on devices with MT7988 SoC and MT7995E, MT7996E or
MT7992E wireless controllers.

Devices with 4 GiB of RAM (or more) will still need ajustments to avoid
running out of swiotlb entries.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-10-28 10:06:12 +08:00
Daniel Golle
e1b895b3cb generic: mtk_wed: fix path of MT7988 WO firmware
commit eee3c695f3 ("linux-firmware: add offloading firmware for MT7988")
added mt7988_wo_{0,1}.bin in the 'mediatek/mt7988' directory while driver
currently expects the files in the 'mediatek' directory.

Import pending patch which changes the path in the driver header now
that the firmware has been added.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-10-28 10:05:19 +08:00
Daniel Golle
e0f6d6b7ea kernel: add MultiPath TCP diag kernel module
Add INET diag socket monitoring interface module for MultiPath TCP.
It allows using native Linux socket diagnostic tools such as 'ss' for
Multipath TCP connections.

Co-authored-by: Rodrigo B. de Sousa Martins <rodrigo.sousa.577@gmail.com>
Signed-off-by: sKy King <29267720+sKyissKy@users.noreply.github.com>
Link: https://github.com/openwrt/openwrt/pull/12884
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-10-27 06:52:18 +08:00
Daniel Golle
33cec3d343 kernel: enable Multi-Path TCP for !SMALL_FLASH targets
Expose Kernel's CONFIG_MPTCP option and enable it by default for
!SMALL_FLASH targets.

The idea behind enabling it by default is to allow users of the binary
distribution to make use of MPTCP tunneling for link aggregation.

Using MPTCP for link aggregation is an often discussed topic in the
forum and there is even a whole OpenWrt fork (MPTCPRouter) just for that.

Enabling the kernel-side of the story by default will allow using MPTCP
on vanilla OpenWrt without having to build anything from source.

See also https://openwrt.org/docs/guide-user/network/mptcp

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-10-27 06:51:53 +08:00
coolsnowwolf
b84bb53053 luci-app-leigod-acc: fix zh_Hans with luci js i18n 2024-10-27 06:48:17 +08:00
coolsnowwolf
17e8a30dbc Version: Celebrate 24/1024 Programmers Day 2024-10-27 06:22:32 +08:00
coolsnowwolf
e5706cfa80 linux-firmware: add offloading firmware for MT7988 2024-10-27 05:19:28 +08:00
coolsnowwolf
2f58aa6006 Version update to R24.10.1 2024-10-26 18:40:06 +08:00
Stefan Lippers-Hollmann
6969af9b5e linux-firmware: Update to version 20241017
Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-10-26 18:36:06 +08:00
Tianling Shen
02c320a0cf
mediatek: minor fixes for openembed som7981 (#12598)
Signed-off-by: Tianling Shen <i@cnsztl.eu.org>
2024-10-25 21:20:26 +08:00
aiamadeus
972664bd05 Revert "kernel: bump 6.1 to 6.1.111"
This reverts commit 718ac376b9.
2024-10-25 21:00:16 +08:00
Beginner
ce88975693
kernel: bump 6.6 to 6.6.58 (#12593) 2024-10-24 22:16:05 +08:00
aiamadeus
3a4c5001b3 rockchip: move rk3328 dmc node to dtsi 2024-10-23 21:20:08 +08:00
coolsnowwolf
9a93c4cc0c rockchip: add OrangePi 5 Plus support 2024-10-23 00:05:28 +08:00
coolsnowwolf
cf4723548d rockchip: add OrangePi 5 support 2024-10-22 23:53:51 +08:00
coolsnowwolf
f0f8f53e51 rockchip: add FriendlyElec NanoPi R3S support 2024-10-22 23:41:31 +08:00
aiamadeus
9f65b6fb9e rockchip: add seewo srcm3588/expand support 2024-10-22 23:26:26 +08:00
coolsnowwolf
2eb18369f8 rockchip: add FriendlyARM NanoPi/PC devices 2024-10-22 10:36:06 +08:00
aiamadeus
2c463fa4fb uboot-rockchip: update to version 2024.10
Fixes: #12572
2024-10-22 10:18:10 +08:00
coolsnowwolf
d1ef46c5dd autocore: add getCPUUsage for ubus reading 2024-10-21 21:26:18 +08:00
coolsnowwolf
cb77f7a857 ipq-wifi: update to latest version 2024-10-08 2024-10-21 10:14:24 +08:00
Beginner
e325c0a2db
kernel: bump 6.6 to 6.6.57 (#12556) 2024-10-20 18:20:19 +08:00
coolsnowwolf
f1b0e6c52e qualcommax: net: QCA NSS MCS support 2024-10-20 15:12:48 +08:00
Daniel Golle
b3eded6f1c generic: phy: aquantia: move accepted patches to backport-6.6
Move patches accepted upstream from pending-6.6 to backport-6.6.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-10-19 21:29:16 +08:00
Daniel Golle
151296d52b generic: phy: aquantia: add pending patch to force MDI pair order
Import pending patch to force MDI pair order.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-10-19 21:28:07 +08:00
coolsnowwolf
eaa043c4cf mediatek: Add support for GL.iNet X3000 (Spitz AX) and XE3000 (Puli AX) 2024-10-18 17:33:52 +08:00
喵二
b9910de8d9
luci-app-leigod-acc: add scheduled pause (#12404)
* Leigod-Acc: Add Scheduled Pause

* luci-app-leigod-acc: add scheduled pause

---------

Co-authored-by: 喵二 <2860950766@qq.com>
2024-10-18 16:44:42 +08:00
coolsnowwolf
28e2e4d04a autocore: fix tempinfo path 2024-10-18 15:10:00 +08:00
coolsnowwolf
e2ebf13c36 Version update to R24.10.24 2024-10-17 21:24:12 +08:00
coolsnowwolf
3f4f0ccac9 autocore: implement tempinfo display for luci js 2024-10-17 19:26:28 +08:00
coolsnowwolf
b7cf62b3a8 base-files: improve Luci2 js support 2024-10-17 19:05:31 +08:00
Hauke Mehrtens
8f378b3297 base-files: failsafe: Remove the VLAN modifier from interface name
Some interfaces have a VLAN modifier like :t in lan1:t, this modifier
should be removed from the interface before calling preinit_ip_config().

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-10-17 17:22:09 +08:00
Arınç ÜNAL
05979aadf6 base-files: add protocol ncm support for ucidef_set_interface()
Make it possible to set up a default network (interface) for devices with
cellular modems using NCM.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
2024-10-17 17:19:39 +08:00
coolsnowwolf
2757124d34 procd: move service command to procd 2024-10-17 17:12:14 +08:00
coolsnowwolf
9f40de14ca base-files: simplify restorecon logic 2024-10-17 17:04:21 +08:00
coolsnowwolf
8527c75281 base-files: ipcalc.sh: check for params before calculating start/end 2024-10-17 16:51:29 +08:00
coolsnowwolf
864e344469 base-files: stage2: add 'tail' to sysupgrade environment 2024-10-17 16:46:31 +08:00
coolsnowwolf
1175c829e6 base-files: rework mtd_get_mac_text() 2024-10-17 16:34:38 +08:00
Luiz Angelo Daros de Luca
1627fd2c74 base-files: bring up vlan interface too
Vlan subinterface was never brought up when using vlan-based preinit network.
Tested forcing ifname="" before preinit_ip() on a Tp-Link Archer C5v4.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2024-10-17 16:09:49 +08:00
Mark Baker
508dd96b84 base-files: add support for retrieving IPv6 assignments
In DHCPv6-PD enabled environments, addresses are assigned to interfaces.
These new functions retrieve the IPv6 assigned prefix(es).

Signed-off-by: Mark Baker <mark@vpost.net>
2024-10-17 16:06:09 +08:00
Karel Kočí
1c2a7462df base-files: fix enabled for services with only STOP
There are services that have only STOP value set. They are executed only
on shutdown and it is common to use them for system cleanup. There is
one such service shipped directly with base-files, it is 'umount'. Those
work the same way as those with START but enabled does not report them
as enabled although it should have as they can be enabled and disabled
as any other service.

This also changes check from check for executable to check for symbolic
link. The implementation depends on those being links to service file
and it is much cleaner and direct to check for them being links.

Signed-off-by: Karel Kočí <karel.koci@nic.cz>
2024-10-17 16:03:37 +08:00
Florian Eckert
bd8d34909d base-files: fix service_running check
The following command checks if a instance of a service is running.
/etc/init.d/<service> running <instance>

 In the variable `$@`, which is passed to the function
`service_running`, the first argument is always the `instance` which
should be checked. Because all other variables where removed from `$@`
with `shift`.

Before this change the first argument of `$@` was set to the `$service`
Variable. So the function does not work as expected. The `$service`
variable was always the instance which should be checked. This is not
what we want.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Reviewed-by: Sungbo Eo <mans0n@gorani.run>
2024-10-17 16:02:48 +08:00
Florian Eckert
b498e0ac33 base-files: add wrapper for procd service list command
A service managed by procd does have a json object with usefull information.
This information could by dumped with the following command.

ubus call service list "{ 'verbose':true, 'name': '<service-name>)'". }"

This line is long and complicated to enter. This commit adds a wrapper
call to the procd service section tool to simplify the input and get the
output faster.

We could now enter the command /etc/initd/<service> info to get the info
faster.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-10-17 16:01:07 +08:00
Alexey Smirnov
98b97c58f2 base-files: add support for heartbeat led trigger
This patch adds support for creation heartbeat led trigger with,
for example, this command:

	ucidef_set_led_heartbeat "..." "..." "..."

from /etc/board.d/01_leds.

Signed-off-by: Alexey Smirnov <s.alexey@gmail.com>
2024-10-17 15:42:50 +08:00
Olliver Schinagl
8f7e660d4d base-files: LED/trigger/heartbeat: Add support for inversion
The heartbeat trigger has the option to be inverted, however
openwrt/uci/luci have no way to set this.

This patch adds this support.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2024-10-17 15:39:53 +08:00
Olliver Schinagl
cf0d45e534 base-files: LED/gpio: Ensure inverted is read as a boolean
The sysfs interface for the GPIO takes a boolean value. Ensure we get
one from uci.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2024-10-17 15:39:13 +08:00
Mark Mentovai
a4c100df52 failsafe: run on all consoles listed in /proc/cmdline
On x86, when both CONFIG_GRUB_CONSOLE and CONFIG_GRUB_SERIAL are set (as
they are by default), the kernel command line will have two console=
entries, such as

    console=tty0 console=ttyS0,115200n8

Failsafe was only running a shell on the first defined console, the VGA
console. This is a problem for devices like apu2, where there is only a
serial console and it appears on ttyS0.

Moreover, the console prompt to enter failsafe during boot was delivered
to, and its input read from, the last console= on the kernel command
line. So while the failsafe shell was on the first defined console, only
the last defined console could be used to enter failsafe during boot.

In contrast, the x86 bootloader (GRUB) operates on both the serial
console and the VGA console by virtue of "terminal_{input,output}
console serial". GRUB also provided an alternate means to enter failsafe
from either console. The presence of two console= kernel command line
parameters causes kernel messages to be delivered to both. Under normal
operation (not failsafe), procd runs login in accordance with inittab,
which on x86 specifies ttyS0, hvc0, and tty1, allowing login through any
of serial, hypervisor, or VGA console. Thus, serial access was
consistently available on x86 devices with serial consoles under normal
operation, except for shell access in failsafe mode (without editing the
kernel command line).

By presenting the failsafe prompt, reading failsafe prompt input, and
running failsafe shells on all consoles listed in /proc/cmdline,
failsafe mode will work correctly on devices with a serial console (like
apu2), and the same image without any need for reconfiguration can be
shared by devices with the more traditional (for x86) VGA console. This
improvement should benefit any system with multiple console= arguments,
including x86 and bcm27xx (Raspberry Pi).

Signed-off-by: Mark Mentovai <mark at moxienet.com>
2024-10-17 15:07:03 +08:00
Matthias Schiffer
75663fdd70 base-files: fix merge of passwd/shadow/group lines with trailing colons
Empty trailing fields get lost when the lines are split and merged again
at colons, resulting in unparsable entries. Only use the split fields for
matching against the other file, but emit the original line unchanged
to fix the issue.

Fixes: de7ca7dafadf ("base-files: merge /etc/passwd et al at sysupgrade config restore")
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2024-10-17 15:03:52 +08:00
Shiji Yang
a4b597b221 base-files: support parse DT LED color and function
The 'label' property in led node has been deprecated and we'd better
to avoid using it. This patch allows us to extract DT OF LED name
from the newly introduced LED properties "color", "function" and
"function-enumerator".

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2024-10-17 15:00:48 +08:00