From 20ebcf8ce8d9e42fbcc6b30989154d581f69fa6f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 6 Dec 2023 16:17:21 +0100 Subject: [PATCH 1/6] udebug: update to Git HEAD (2023-12-06) 6d3f51f9fda7 ucode: check for errors in ftruncate() Signed-off-by: Felix Fietkau --- package/libs/udebug/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/libs/udebug/Makefile b/package/libs/udebug/Makefile index e7ce8383f1..0a54515e74 100644 --- a/package/libs/udebug/Makefile +++ b/package/libs/udebug/Makefile @@ -11,9 +11,9 @@ PKG_NAME:=udebug CMAKE_INSTALL:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=$(PROJECT_GIT)/project/udebug.git -PKG_MIRROR_HASH:=f995d320fecaef3a149810b804c2428668552764a6828d323fef035f2211f2f4 -PKG_SOURCE_DATE:=2023-12-05 -PKG_SOURCE_VERSION:=a296f1bac4302c2102a0d2fd1e825c4dadddf0f4 +PKG_MIRROR_HASH:=553a58a14b59dc7b22755557acbc74f0655a431442a4faca56d28cdb1ef14fb4 +PKG_SOURCE_DATE:=2023-12-06 +PKG_SOURCE_VERSION:=6d3f51f9fda706f0cf4732c762e4dbe8c21e12cf PKG_ABI_VERSION:=$(call abi_version_str,$(PKG_SOURCE_DATE)) PKG_LICENSE:=GPL-2.0 From b1fd4b35bf784a9b5619e17c07389e79af113953 Mon Sep 17 00:00:00 2001 From: Luis Mita Date: Wed, 6 Dec 2023 09:30:10 -0400 Subject: [PATCH 2/6] mediatek: add SPDX header for Confiabits MT7981 DTS Fixing ambiguous licensing. Signed-off-by: Luis Mita --- target/linux/mediatek/dts/mt7981b-confiabits-mt7981.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/mediatek/dts/mt7981b-confiabits-mt7981.dts b/target/linux/mediatek/dts/mt7981b-confiabits-mt7981.dts index 2824bbfc84..520b8494ee 100644 --- a/target/linux/mediatek/dts/mt7981b-confiabits-mt7981.dts +++ b/target/linux/mediatek/dts/mt7981b-confiabits-mt7981.dts @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT /dts-v1/; #include "mt7981.dtsi" From 8c2df654ad41ad7933984e823d5ab2f0f7c80130 Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Wed, 6 Dec 2023 14:49:42 +0200 Subject: [PATCH 3/6] ipq806x: Fix nighthawk R7800/XR450/XR500 wan MAC Correct the NVMEM mac-base field usage to read the wan MAC correctly from flash. Reference to discussion at https://github.com/openwrt/openwrt/pull/13952#issuecomment-1842749122 Fixes: d264d3a60 ("ipq806x: remove mac-address-increment") Signed-off-by: Hannu Nyman --- .../ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nighthawk.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nighthawk.dtsi b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nighthawk.dtsi index 4662e2843c..902df23501 100644 --- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nighthawk.dtsi +++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nighthawk.dtsi @@ -427,7 +427,7 @@ pinctrl-0 = <&rgmii2_pins>; pinctrl-names = "default"; - nvmem-cells = <&macaddr_art_6>; + nvmem-cells = <&macaddr_art_6 0>; nvmem-cell-names = "mac-address"; fixed-link { From ffa40fcc7fe1aee041775e097bccecb9be83cd21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Jo=C5=84ca?= Date: Sun, 5 Nov 2023 14:49:01 +0100 Subject: [PATCH 4/6] ramips: add TP-LINK TL-WR902AC v4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Seems to be very similar to: https://openwrt.org/toh/tp-link/tl-wr902ac_v3 1 x usb 1 x eth Powered by mini usb port. Installation: Can use TFTP method to install: 1. establish TFTP server at 192.168.0.66 2. provide tp_recover.bin file to the TFTP server 3. turn on router with reset button pressed 4. wait for led blinking, then release reset Specification based on dmesg from already flashed device: SoC Type: MediaTek MT7628AN ver:1 eco:2 CPU0 revision is: 00019655 (MIPS 24KEc) Memory: 56028K/65536K available CPU Clock: 580MHz WiFi: MT7613BE MAC addresses are all the same, except wifi5g which last part is decrement by one, ie.: eth0 40:ed:00:cf:b9:9b br-lan 40:ed:00:cf:b9:9b phy0-ap0 40:ed:00:cf:b9:9b phy1-ap0 40:ed:00:cf:b9:9a Signed-off-by: Kamil Jońca --- .../dts/mt7628an_tplink_tl-wr902ac-v4.dts | 113 ++++++++++++++++++ target/linux/ramips/image/mt76x8.mk | 16 +++ .../mt76x8/base-files/etc/board.d/01_leds | 3 + .../mt76x8/base-files/etc/board.d/02_network | 1 + 4 files changed, 133 insertions(+) create mode 100644 target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v4.dts diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v4.dts new file mode 100644 index 0000000000..a41e87edf7 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v4.dts @@ -0,0 +1,113 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "mt7628an_tplink_8m.dtsi" +#include + +/ { + compatible = "tplink,tl-wr902ac-v4", "mediatek,mt7628an-soc"; + model = "TP-Link TL-WR902AC v4"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + keys { + compatible = "gpio-keys"; + + button-reset { + label = "reset"; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-sw1 { + label = "sw1"; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-sw2 { + label = "sw2"; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-wps { + label = "wps"; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: led-0 { + color = ; + function = LED_FUNCTION_POWER; + gpios = <&gpio 46 GPIO_ACTIVE_LOW>; + }; + + led-1 { + color = ; + function = LED_FUNCTION_USB; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + + led-2 { + color = ; + function = LED_FUNCTION_WAN; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; + }; + + led-3 { + color = ; + function = LED_FUNCTION_WLAN; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + led-4 { + function = LED_FUNCTION_WPS; + color = ; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&eeprom_factory_28000 { + /* tl-wr902ac-v4 has different eeprom size '0x4da8' for MT7613 */ + reg = <0x28000 0x4da8>; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + compatible = "mediatek,mt76"; + reg = <0x0000 0 0 0 0>; + ieee80211-freq-limit = <5000000 6000000>; + nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>; + nvmem-cell-names = "eeprom", "mac-address"; + }; +}; + +&state_default { + gpio { + groups = "i2c", "i2s", "p0led_an", "p2led_an", "p4led_an", "uart1", "wdt", "wled_an"; + function = "gpio"; + }; +}; + +&wmac { + status = "okay"; + nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 0>; + nvmem-cell-names = "eeprom", "mac-address"; +}; diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index fd90c7bac9..8a6bccfba6 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -855,6 +855,22 @@ define Device/tplink_tl-wr902ac-v3 endef TARGET_DEVICES += tplink_tl-wr902ac-v3 +define Device/tplink_tl-wr902ac-v4 + $(Device/tplink-v2) + IMAGE_SIZE := 7808k + DEVICE_MODEL := TL-WR902AC + DEVICE_VARIANT := v4 + TPLINK_FLASHLAYOUT := 8Mmtk + TPLINK_HWID := 0x000dc88f + TPLINK_HWREV := 0x89 + TPLINK_HWREVADD := 0x1 + DEVICE_PACKAGES := kmod-mt7615e kmod-mt7663-firmware-ap kmod-usb2 kmod-usb-ohci \ + kmod-usb-ledtrig-usbport + IMAGES := sysupgrade.bin tftp-recovery.bin + IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin) +endef +TARGET_DEVICES += tplink_tl-wr902ac-v4 + define Device/unielec_u7628-01-16m IMAGE_SIZE := 16064k DEVICE_VENDOR := UniElec diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds index 0b109feb6c..c4301737b2 100644 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds @@ -124,6 +124,9 @@ tplink,tl-wr902ac-v3) ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x10" ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" ;; +tplink,tl-wr902ac-v4) + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" + ;; unielec,u7628-01-16m) ucidef_set_led_switch "lan1" "lan1" "green:lan1" "switch0" "0x2" ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x4" diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network index 2ec41fe254..fe3ac9193f 100644 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network @@ -29,6 +29,7 @@ ramips_setup_interfaces() tplink,re305-v3|\ tplink,tl-wr802n-v4|\ tplink,tl-wa801nd-v5|\ + tplink,tl-wr902ac-v4|\ widora,neo-16m|\ widora,neo-32m) ucidef_add_switch "switch0" From 2963e1687bcc6b54737f8fd519726eb45c17abb9 Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Mon, 4 Dec 2023 17:03:21 +0100 Subject: [PATCH 5/6] libxml2: update to 2.12.1 Release Notes: - https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.0 - https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.1 Remove patch: - 010-iconv.patch Signed-off-by: Nick Hainke --- package/libs/libxml2/Makefile | 4 ++-- package/libs/libxml2/patches/010-iconv.patch | 12 ------------ 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 package/libs/libxml2/patches/010-iconv.patch diff --git a/package/libs/libxml2/Makefile b/package/libs/libxml2/Makefile index b13e875de7..d65085c9c1 100644 --- a/package/libs/libxml2/Makefile +++ b/package/libs/libxml2/Makefile @@ -1,12 +1,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libxml2 -PKG_VERSION:=2.11.6 +PKG_VERSION:=2.12.1 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@GNOME/libxml2/$(basename $(PKG_VERSION)) -PKG_HASH:=c90eee7506764abbe07bb616b82da452529609815aefef423d66ef080eb0c300 +PKG_HASH:=8982b9ccdf7f456e30d8f7012d50858c6623e495333b6191def455c7e95427eb PKG_LICENSE:=MIT PKG_LICENSE_FILES:=COPYING diff --git a/package/libs/libxml2/patches/010-iconv.patch b/package/libs/libxml2/patches/010-iconv.patch deleted file mode 100644 index 92b09685c5..0000000000 --- a/package/libs/libxml2/patches/010-iconv.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -469,6 +469,9 @@ if(LIBXML2_WITH_PROGRAMS) - add_executable(LibXml2::${PROGRAM} ALIAS ${PROGRAM}) - target_compile_definitions(${PROGRAM} PRIVATE SYSCONFDIR="${CMAKE_INSTALL_FULL_SYSCONFDIR}") - target_link_libraries(${PROGRAM} LibXml2) -+ if(LIBXML2_WITH_ICONV AND NOT Iconv_IS_BUILT_IN) -+ target_link_libraries(${PROGRAM} iconv) -+ endif() - if(HAVE_LIBHISTORY) - target_link_libraries(${PROGRAM} history) - endif() From 230a2b8a5e0f512d9ec5c5eb818991c1b6580cdb Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Mon, 4 Dec 2023 16:48:00 +0100 Subject: [PATCH 6/6] tools/cmake: update to 3.27.9 Release Notes: - https://www.kitware.com/cmake-3-27-7-available-for-download/ - https://www.kitware.com/cmake-3-27-9-available-for-download/ Signed-off-by: Nick Hainke --- tools/cmake/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cmake/Makefile b/tools/cmake/Makefile index 19c4a5b8b8..f05654b5c5 100644 --- a/tools/cmake/Makefile +++ b/tools/cmake/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=cmake -PKG_VERSION:=3.27.7 +PKG_VERSION:=3.27.9 PKG_VERSION_MAJOR:=$(word 1,$(subst ., ,$(PKG_VERSION))).$(word 2,$(subst ., ,$(PKG_VERSION))) PKG_RELEASE:=1 PKG_CPE_ID:=cpe:/a:kitware:cmake @@ -15,7 +15,7 @@ PKG_CPE_ID:=cpe:/a:kitware:cmake PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/Kitware/CMake/releases/download/v$(PKG_VERSION)/ \ https://cmake.org/files/v$(PKG_VERSION_MAJOR)/ -PKG_HASH:=08f71a106036bf051f692760ef9558c0577c42ac39e96ba097e7662bd4158d8e +PKG_HASH:=609a9b98572a6a5ea477f912cffb973109ed4d0a6a6b3f9e2353d2cdc048708e HOST_BUILD_PARALLEL:=1 HOST_CONFIGURE_PARALLEL:=1