Skip to content

Commit

Permalink
Merge pull request #102 from openwrt/main
Browse files Browse the repository at this point in the history
sync 10/4
  • Loading branch information
rmandrad authored Apr 10, 2024
2 parents 47aa0e9 + d668c74 commit f4a5153
Show file tree
Hide file tree
Showing 18 changed files with 120 additions and 20 deletions.
15 changes: 15 additions & 0 deletions package/kernel/linux/modules/hwmon.mk
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,21 @@ endef
$(eval $(call KernelPackage,hwmon-drivetemp))


define KernelPackage/hwmon-emc2305
TITLE:=Microchip EMC2301/2/3/5 fan controller
KCONFIG:=CONFIG_SENSORS_EMC2305
FILES:=$(LINUX_DIR)/drivers/hwmon/emc2305.ko
AUTOLOAD:=$(call AutoProbe,emc2305)
$(call AddDepends/hwmon,+kmod-i2c-core +PACKAGE_kmod-thermal:kmod-thermal +kmod-regmap-i2c @LINUX_6_1||LINUX_6_6)
endef

define KernelPackage/hwmon-emc2305/description
Kernel module for Microchip EMC2301/EMC2302/EMC2303/EMC2305 fan controllers
endef

$(eval $(call KernelPackage,hwmon-emc2305))


define KernelPackage/hwmon-gsc
TITLE:=Gateworks System Controller support
KCONFIG:=CONFIG_MFD_GATEWORKS_GSC \
Expand Down
6 changes: 3 additions & 3 deletions package/utils/ucode/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=https://github.com/jow-/ucode.git
PKG_SOURCE_DATE:=2024-02-21
PKG_SOURCE_VERSION:=ba3855ae3775197f3594fc2615cac539075bd2fb
PKG_MIRROR_HASH:=f585447ebbb5ef56ada3a9f8dbe71d5310cc8185d0e90676b512849eaf60f77c
PKG_SOURCE_DATE:=2024-04-07
PKG_SOURCE_VERSION:=5507654a498a339c44b642f62e203e1d5fb1f725
PKG_MIRROR_HASH:=40d3df5308faaf3cddfca4ebbcd9ee7fff98cf7e7d406dc177972a7abf0ca16b
PKG_MAINTAINER:=Jo-Philipp Wich <[email protected]>
PKG_LICENSE:=ISC

Expand Down
4 changes: 1 addition & 3 deletions scripts/dl_github_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ def tar(path, subdir, into=None, ts=None):
if ts is not None:
args.append('--mtime=@%d' % ts)
if into.endswith('.zst'):
envs['ZSTD_CLEVEL'] = '20'
envs['ZSTD_NBTHREADS'] = '0'
args.append('--zstd')
args.append('-I zstd -T0 --ultra -20')
elif into.endswith('.xz'):
envs['XZ_OPT'] = '-7e'
args.append('-J')
Expand Down
13 changes: 13 additions & 0 deletions target/linux/generic/hack-5.15/781-usb-net-rndis-support-asr.patch
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
From 9fabf60187f1fa19e6f6bb5441587d485bd534b0 Mon Sep 17 00:00:00 2001
From: Daniel Golle <[email protected]>
Date: Tue, 9 Apr 2024 17:06:38 +0100
Subject: [PATCH] rndis_host: add a bunch of USB IDs

Add a bunch of USB IDs found in various places online to the
RNDIS USB network driver.

Signed-off-by: Daniel Golle <[email protected]>
---
drivers/net/usb/rndis_host.c | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)

--- a/drivers/net/usb/rndis_host.c
+++ b/drivers/net/usb/rndis_host.c
@@ -630,6 +630,16 @@ static const struct driver_info zte_rndi
Expand Down
13 changes: 13 additions & 0 deletions target/linux/generic/hack-6.1/781-usb-net-rndis-support-asr.patch
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
From 9fabf60187f1fa19e6f6bb5441587d485bd534b0 Mon Sep 17 00:00:00 2001
From: Daniel Golle <[email protected]>
Date: Tue, 9 Apr 2024 17:06:38 +0100
Subject: [PATCH] rndis_host: add a bunch of USB IDs

Add a bunch of USB IDs found in various places online to the
RNDIS USB network driver.

Signed-off-by: Daniel Golle <[email protected]>
---
drivers/net/usb/rndis_host.c | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)

--- a/drivers/net/usb/rndis_host.c
+++ b/drivers/net/usb/rndis_host.c
@@ -630,6 +630,16 @@ static const struct driver_info zte_rndi
Expand Down
13 changes: 13 additions & 0 deletions target/linux/generic/hack-6.6/781-usb-net-rndis-support-asr.patch
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
From 9fabf60187f1fa19e6f6bb5441587d485bd534b0 Mon Sep 17 00:00:00 2001
From: Daniel Golle <[email protected]>
Date: Tue, 9 Apr 2024 17:06:38 +0100
Subject: [PATCH] rndis_host: add a bunch of USB IDs

Add a bunch of USB IDs found in various places online to the
RNDIS USB network driver.

Signed-off-by: Daniel Golle <[email protected]>
---
drivers/net/usb/rndis_host.c | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)

--- a/drivers/net/usb/rndis_host.c
+++ b/drivers/net/usb/rndis_host.c
@@ -630,6 +630,16 @@ static const struct driver_info zte_rndi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
From d7943c31d57c11e1a517aa3ce2006fca44866870 Mon Sep 17 00:00:00 2001
From: Jianhui Zhao <[email protected]>
Date: Sun, 24 Sep 2023 22:15:00 +0800
Subject: [PATCH] net: phy: realtek: add interrupt support for RTL8221B

This commit introduces interrupt support for RTL8221B.

Signed-off-by: Jianhui Zhao <[email protected]>
---
drivers/net/phy/realtek.c | 47 +++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)

--- a/drivers/net/phy/realtek.c
+++ b/drivers/net/phy/realtek.c
@@ -971,6 +971,51 @@ static int rtl8221b_config_init(struct p
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
From d7943c31d57c11e1a517aa3ce2006fca44866870 Mon Sep 17 00:00:00 2001
From: Jianhui Zhao <[email protected]>
Date: Sun, 24 Sep 2023 22:15:00 +0800
Subject: [PATCH] net: phy: realtek: add interrupt support for RTL8221B

This commit introduces interrupt support for RTL8221B.

Signed-off-by: Jianhui Zhao <[email protected]>
---
drivers/net/phy/realtek.c | 47 +++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)

--- a/drivers/net/phy/realtek.c
+++ b/drivers/net/phy/realtek.c
@@ -981,6 +981,51 @@ static int rtl8221b_config_init(struct p
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
From d7943c31d57c11e1a517aa3ce2006fca44866870 Mon Sep 17 00:00:00 2001
From: Jianhui Zhao <[email protected]>
Date: Sun, 24 Sep 2023 22:15:00 +0800
Subject: [PATCH] net: phy: realtek: add interrupt support for RTL8221B

This commit introduces interrupt support for RTL8221B.

Signed-off-by: Jianhui Zhao <[email protected]>
---
drivers/net/phy/realtek.c | 47 +++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)

--- a/drivers/net/phy/realtek.c
+++ b/drivers/net/phy/realtek.c
@@ -1026,6 +1026,51 @@ static int rtl8221b_config_init(struct p
Expand Down
11 changes: 10 additions & 1 deletion target/linux/mediatek/dts/mt7986a-tplink-tl-xdr-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
};

chosen {
bootargs = "root=/dev/fit0 rootwait";
rootdisk = <&ubi_rootdisk>;
stdout-path = "serial0:115200n8";
};

Expand Down Expand Up @@ -217,8 +219,15 @@
};

partition@580000 {
label = "ubi";
compatible = "linux,ubi";
reg = <0x580000 0x7800000>;
label = "ubi";

volumes {
ubi_rootdisk: ubi-volume-fit {
volname = "fit";
};
};
};
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ platform_do_upgrade() {
bananapi,bpi-r3|\
bananapi,bpi-r3-mini|\
bananapi,bpi-r4|\
tplink,tl-xdr4288|\
tplink,tl-xdr6086|\
tplink,tl-xdr6088|\
xiaomi,redmi-router-ax6000-ubootmod)
[ -e /dev/fit0 ] && fitblk /dev/fit0
[ -e /dev/fitrw ] && fitblk /dev/fitrw
Expand Down Expand Up @@ -132,9 +135,6 @@ platform_do_upgrade() {
mediatek,mt7981-rfb|\
netcore,n60|\
qihoo,360t7|\
tplink,tl-xdr4288|\
tplink,tl-xdr6086|\
tplink,tl-xdr6088|\
xiaomi,mi-router-ax3000t-ubootmod|\
xiaomi,mi-router-wr30u-ubootmod)
CI_KERNPART="fit"
Expand Down
2 changes: 1 addition & 1 deletion target/linux/mediatek/image/filogic.mk
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ define Device/tplink_tl-xdr-common
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
IMAGE/sysupgrade.itb := append-kernel | \
fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-with-rootfs | append-metadata
DEVICE_PACKAGES := kmod-usb3 kmod-mt7986-firmware mt7986-wo-firmware
DEVICE_PACKAGES := fitblk kmod-usb3 kmod-mt7986-firmware mt7986-wo-firmware
ARTIFACTS := preloader.bin bl31-uboot.fip
ARTIFACT/preloader.bin := mt7986-bl2 spim-nand-ddr3
endef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,7 @@ platform_do_upgrade_emmc() {
v "Writing new UUID to /dev/$diskdev..."
get_image_dd "$1" of="/dev/$diskdev" bs=1 skip=440 count=4 seek=440 conv=fsync

dd if=/dev/zero of=$(find_mmc_part rootfs_data) bs=512 count=8

sleep 1
}
2 changes: 1 addition & 1 deletion target/linux/qualcommax/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARCH:=aarch64
BOARD:=qualcommax
BOARDNAME:=Qualcomm Atheros 802.11ax WiSoC-s
FEATURES:=squashfs ramdisk fpu nand rtc emmc
KERNELNAME:=Image dtbs
KERNELNAME:=Image
CPU_TYPE:=cortex-a53
SUBTARGETS:=ipq807x ipq60xx

Expand Down
4 changes: 4 additions & 0 deletions target/sdk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ KERNEL_FILES_ARCH = \
kernel/asm-offsets.s \
kernel/module.lds

ifeq ($(LINUX_KARCH),powerpc)
KERNEL_FILES_ARCH += lib/crtsavres.o
endif

KERNEL_FILES_BASE := \
.config \
Makefile \
Expand Down
5 changes: 0 additions & 5 deletions toolchain/gcc/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ choice
bool "gcc 13.x"
endchoice

config GCC_USE_DEFAULT_VERSION
bool
default y if !TOOLCHAINOPTS || GCC_USE_VERSION_13
imply KERNEL_WERROR

config GCC_USE_GRAPHITE
bool
prompt "Compile in support for the new Graphite framework in GCC 4.4+" if TOOLCHAINOPTS
Expand Down
5 changes: 5 additions & 0 deletions toolchain/gcc/Config.version
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ config GCC_VERSION
default "11.3.0" if GCC_VERSION_11
default "12.3.0" if GCC_VERSION_12
default "13.2.0"

config GCC_USE_DEFAULT_VERSION
bool
default y if !TOOLCHAINOPTS || GCC_USE_VERSION_13
imply KERNEL_WERROR
3 changes: 0 additions & 3 deletions tools/zstd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ include $(INCLUDE_DIR)/host-build.mk

HOSTCC:= $(HOSTCC_NOCACHE)

HOST_CFLAGS += \
-DZSTDCLI_CLEVEL_MAX=20

HOST_MAKE_FLAGS += \
BACKTRACE=0 \
HAVE_THREAD=1 \
Expand Down

0 comments on commit f4a5153

Please sign in to comment.