From c0ef48814ea6dbd8c60b31af622c9ff4b163959f Mon Sep 17 00:00:00 2001 From: Linhui Liu Date: Fri, 19 May 2023 23:06:08 +0800 Subject: [PATCH 01/26] pcre2: switch to Github Releases and bump to 10.42 The mirror at SourceForge is an unofficial mirror and no longer maintained. ChangeLogs: https://github.com/PCRE2Project/pcre2/blob/pcre2-10.42/ChangeLog Signed-off-by: Linhui Liu --- package/libs/pcre2/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package/libs/pcre2/Makefile b/package/libs/pcre2/Makefile index ca761cc36d..d178e3cd04 100644 --- a/package/libs/pcre2/Makefile +++ b/package/libs/pcre2/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pcre2 -PKG_VERSION:=10.37 -PKG_RELEASE:=2 +PKG_VERSION:=10.42 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_SOURCE_URL:=@SF/pcre/$(PKG_NAME)/$(PKG_VERSION) -PKG_HASH:=4d95a96e8b80529893b4562be12648d798b957b1ba1aae39606bbc2ab956d270 +PKG_SOURCE_URL:=https://github.com/PCRE2Project/pcre2/releases/download/$(PKG_NAME)-$(PKG_VERSION) +PKG_HASH:=8d36cd8cb6ea2a4c2bb358ff6411b0c788633a2a45dabbf1aeb4b701d1b5e840 PKG_MAINTAINER:=Shane Peelar PKG_LICENSE:=BSD-3-Clause From 7a29230752f232487107b2e0d54fe1f63e733b59 Mon Sep 17 00:00:00 2001 From: Jan Forman Date: Sat, 15 May 2021 20:48:12 +0200 Subject: [PATCH 02/26] ath79: Replace reset-button for DIR-859 gpio-export for the switch reset pin replaced with a reset pin definition for the driver, within the phy node. Signed-off-by: Jan Forman Tested-By: Sebastian Schaper --- target/linux/ath79/dts/qca9563_dlink_dir-859-a1.dts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/target/linux/ath79/dts/qca9563_dlink_dir-859-a1.dts b/target/linux/ath79/dts/qca9563_dlink_dir-859-a1.dts index 804f3434c3..140f0b65c6 100644 --- a/target/linux/ath79/dts/qca9563_dlink_dir-859-a1.dts +++ b/target/linux/ath79/dts/qca9563_dlink_dir-859-a1.dts @@ -56,17 +56,6 @@ debounce-interval = <60>; }; }; - - gpio-export { - compatible = "gpio-export"; - #size-cells = <0>; - - gpio_switch_reset { - gpio-export,name = "dir-859-a1:reset:switch"; - gpio-export,output = <1>; - gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; - }; - }; }; &pcie { @@ -133,6 +122,8 @@ phy-mode = "sgmii"; qca,mib-poll-interval = <500>; + reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>; + qca,ar8327-initvals = < 0x04 0x00080080 /* PORT0 PAD MODE CTRL */ 0x10 0x81000080 /* POWER_ON_STRAP */ From 6ea910ab54ffc0640f4e7fc977c1e076f4e86323 Mon Sep 17 00:00:00 2001 From: Jan Forman Date: Sat, 15 May 2021 20:51:14 +0200 Subject: [PATCH 03/26] ath79: Create shared dtsi for DIR-859 Create a shared dtsi for the dir-859 and similarly device, it similarly as it done for the dir-842. Signed-off-by: Jan Forman --- .../ath79/dts/qca9563_dlink_dir-859-a1.dts | 113 +---------------- .../ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi | 118 ++++++++++++++++++ 2 files changed, 119 insertions(+), 112 deletions(-) create mode 100644 target/linux/ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi diff --git a/target/linux/ath79/dts/qca9563_dlink_dir-859-a1.dts b/target/linux/ath79/dts/qca9563_dlink_dir-859-a1.dts index 140f0b65c6..a828f86cb1 100644 --- a/target/linux/ath79/dts/qca9563_dlink_dir-859-a1.dts +++ b/target/linux/ath79/dts/qca9563_dlink_dir-859-a1.dts @@ -1,9 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT -#include "qca956x.dtsi" - +#include "qca9563_dlink_dir-8x9-a1.dtsi" #include -#include / { model = "D-Link DIR-859 A1"; @@ -40,113 +38,4 @@ linux,default-trigger = "phy0tpt"; }; }; - - keys { - compatible = "gpio-keys"; - - wps { - linux,code = ; - gpios = <&gpio 1 GPIO_ACTIVE_LOW>; - debounce-interval = <60>; - }; - - reset { - linux,code = ; - gpios = <&gpio 2 GPIO_ACTIVE_LOW>; - debounce-interval = <60>; - }; - }; -}; - -&pcie { - status = "okay"; -}; - -&spi { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <50000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "bootloader"; - reg = <0x000000 0x40000>; - read-only; - }; - - partition@40000 { - label = "bdcfg"; - reg = <0x040000 0x10000>; - read-only; - }; - - partition@50000 { - label = "devdata"; - reg = <0x050000 0x10000>; - read-only; - }; - - partition@60000 { - label = "devconf"; - reg = <0x060000 0x10000>; - read-only; - }; - - partition@70000 { - compatible = "seama"; - label = "firmware"; - reg = <0x070000 0xf80000>; - }; - - art: partition@ff0000 { - label = "art"; - reg = <0xff0000 0x010000>; - read-only; - }; - }; - }; -}; - -&mdio0 { - status = "okay"; - - phy0: ethernet-phy@0 { - reg = <0>; - phy-mode = "sgmii"; - qca,mib-poll-interval = <500>; - - reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>; - - qca,ar8327-initvals = < - 0x04 0x00080080 /* PORT0 PAD MODE CTRL */ - 0x10 0x81000080 /* POWER_ON_STRAP */ - 0x50 0xcc35cc35 /* LED_CTRL0 */ - 0x54 0xcb37cb37 /* LED_CTRL1 */ - 0x58 0x00000000 /* LED_CTRL2 */ - 0x5c 0x00f3cf00 /* LED_CTRL3 */ - 0x7c 0x0000007e /* PORT0_STATUS */ - >; - }; -}; - -ð0 { - status = "okay"; - - pll-data = <0x03000101 0x00000101 0x00001919>; - - phy-mode = "sgmii"; - phy-handle = <&phy0>; -}; - -&wmac { - status = "okay"; - - qca,no-eeprom; }; diff --git a/target/linux/ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi b/target/linux/ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi new file mode 100644 index 0000000000..65948ecb22 --- /dev/null +++ b/target/linux/ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi @@ -0,0 +1,118 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "qca956x.dtsi" + +#include +#include + +/ { + + keys { + compatible = "gpio-keys"; + + wps { + linux,code = ; + gpios = <&gpio 1 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + + reset { + linux,code = ; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&spi { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "bootloader"; + reg = <0x000000 0x40000>; + read-only; + }; + + partition@40000 { + label = "bdcfg"; + reg = <0x040000 0x10000>; + read-only; + }; + + partition@50000 { + label = "devdata"; + reg = <0x050000 0x10000>; + read-only; + }; + + partition@60000 { + label = "devconf"; + reg = <0x060000 0x10000>; + read-only; + }; + + partition@70000 { + compatible = "seama"; + label = "firmware"; + reg = <0x070000 0xf80000>; + }; + + art: partition@ff0000 { + label = "art"; + reg = <0xff0000 0x010000>; + read-only; + }; + }; + }; +}; + +&mdio0 { + status = "okay"; + + phy0: ethernet-phy@0 { + reg = <0>; + phy-mode = "sgmii"; + qca,mib-poll-interval = <500>; + + reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>; + + qca,ar8327-initvals = < + 0x04 0x00080080 /* PORT0 PAD MODE CTRL */ + 0x10 0x81000080 /* POWER_ON_STRAP */ + 0x50 0xcc35cc35 /* LED_CTRL0 */ + 0x54 0xcb37cb37 /* LED_CTRL1 */ + 0x58 0x00000000 /* LED_CTRL2 */ + 0x5c 0x00f3cf00 /* LED_CTRL3 */ + 0x7c 0x0000007e /* PORT0_STATUS */ + >; + }; +}; + +ð0 { + status = "okay"; + + pll-data = <0x03000101 0x00000101 0x00001919>; + + phy-mode = "sgmii"; + phy-handle = <&phy0>; +}; + +&wmac { + status = "okay"; + + qca,no-eeprom; +}; From 2f4b6d0f89f1e6874a6452962d165884fca3cf3b Mon Sep 17 00:00:00 2001 From: Jan Forman Date: Mon, 31 Oct 2022 22:15:56 +0100 Subject: [PATCH 04/26] ath79: Convert calibration data to nvmem For D-link DIR-859 and DIR-869 Replace the mtd-cal-data by an nvmem-cell. Add the PCIe node for the ath10k radio to the devicetree. Thanks to DragonBlue for this patch Signed-off-by: Jan Forman --- .../ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi | 37 ++++++++++++++++++- .../etc/hotplug.d/firmware/10-ath9k-eeprom | 1 - .../etc/hotplug.d/firmware/11-ath10k-caldata | 4 -- 3 files changed, 35 insertions(+), 7 deletions(-) diff --git a/target/linux/ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi b/target/linux/ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi index 65948ecb22..556ba604a6 100644 --- a/target/linux/ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi +++ b/target/linux/ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi @@ -26,6 +26,14 @@ &pcie { status = "okay"; + + wifi@0,0 { + compatible = "qcom,ath10k"; + reg = <0x0000 0 0 0 0>; + + nvmem-cells = <&calibration_ath10k>, <&macaddr_devdata_94>; + nvmem-cell-names = "calibration", "mac-address-ascii"; + }; }; &spi { @@ -57,6 +65,18 @@ label = "devdata"; reg = <0x050000 0x10000>; read-only; + + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_devdata_94: macaddr@94 { + reg = <0x94 0x11>; + }; + + macaddr_devdata_b0: macaddr@b0 { + reg = <0xb0 0x11>; + }; }; partition@60000 { @@ -71,10 +91,22 @@ reg = <0x070000 0xf80000>; }; - art: partition@ff0000 { + partition@ff0000 { label = "art"; reg = <0xff0000 0x010000>; read-only; + + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + calibration_ath9k: calibration@1000 { + reg = <0x1000 0x440>; + }; + + calibration_ath10k: calibration@5000 { + reg = <0x5000 0x844>; + }; }; }; }; @@ -114,5 +146,6 @@ &wmac { status = "okay"; - qca,no-eeprom; + nvmem-cells = <&calibration_ath9k>, <&macaddr_devdata_b0>; + nvmem-cell-names = "calibration", "mac-address-ascii"; }; diff --git a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom index 022f5e2947..a57479b87c 100644 --- a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom +++ b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom @@ -30,7 +30,6 @@ case "$FIRMWARE" in dlink,dir-842-c1|\ dlink,dir-842-c2|\ dlink,dir-842-c3|\ - dlink,dir-859-a1|\ nec,wf1200cr|\ nec,wg1200cr|\ wd,mynet-n600|\ diff --git a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index 4db311fde0..f0a3755de9 100644 --- a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -68,10 +68,6 @@ case "$FIRMWARE" in caldata_extract "art" 0x5000 0x844 ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) -1) ;; - dlink,dir-859-a1) - caldata_extract "art" 0x5000 0x844 - ath10k_patch_mac $(mtd_get_mac_ascii devdata "wlan5mac") - ;; engenius,ecb1200|\ engenius,ecb1750) caldata_extract "art" 0x5000 0x844 From 8d618a3186e0979bcf4db407cb8dd232200919a8 Mon Sep 17 00:00:00 2001 From: Jan Forman Date: Fri, 28 May 2021 09:45:52 +0200 Subject: [PATCH 05/26] ath79: Add support for D-Link DIR-869-A1 Specifications The D-Link EXO AC1750 (DIR-869) router released in 2016. It is powered by Qualcomm Atheros QCA9563 @ 750 MHz chipset, 64 MB RAM and 16 MB flash. 10/100/1000 Gigabit Ethernet WAN port Four 10/100/1000 Gigabit Ethernet LAN ports Power Button, Reset Button, WPS Button, Mode Switch Flashing 1. Upload factory.bin via D-link web interface (Management/Upgrade). Revert to stock Upload original firmware via OpenWrt sysupgrade interface. Debricking D-Link Recovery GUI (192.168.0.1) Signed-off-by: Jan Forman --- .../ath79/dts/qca9563_dlink_dir-869-a1.dts | 31 +++++++++++++++++++ .../generic/base-files/etc/board.d/02_network | 5 +++ .../etc/uci-defaults/09_fix-checksum | 1 + target/linux/ath79/image/generic.mk | 15 ++++++++- 4 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 target/linux/ath79/dts/qca9563_dlink_dir-869-a1.dts diff --git a/target/linux/ath79/dts/qca9563_dlink_dir-869-a1.dts b/target/linux/ath79/dts/qca9563_dlink_dir-869-a1.dts new file mode 100644 index 0000000000..eab713ea66 --- /dev/null +++ b/target/linux/ath79/dts/qca9563_dlink_dir-869-a1.dts @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "qca9563_dlink_dir-8x9-a1.dtsi" +#include + +/ { + model = "D-Link DIR-869 A1"; + compatible = "dlink,dir-869-a1", "qca,qca9563"; + + aliases { + led-boot = &led_power_orange; + led-failsafe = &led_power_orange; + led-running = &led_power_white; + led-upgrade = &led_power_orange; + }; + + leds { + compatible = "gpio-leds"; + + led_power_orange: power_orange { + label = "orange:power"; + gpios = <&gpio 15 GPIO_ACTIVE_LOW>; + }; + + led_power_white: power_white { + label = "white:power"; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + }; + }; +}; + diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network index 1d89f0b86c..487467cd59 100644 --- a/target/linux/ath79/generic/base-files/etc/board.d/02_network +++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network @@ -291,6 +291,7 @@ ath79_setup_interfaces() dlink,dir-842-c2|\ dlink,dir-842-c3|\ dlink,dir-859-a1|\ + dlink,dir-869-a1|\ engenius,epg5000|\ engenius,esr1200|\ engenius,esr1750|\ @@ -656,6 +657,10 @@ ath79_setup_macs() label_mac=$lan_mac ;; dlink,dir-859-a1|\ + dlink,dir-869-a1) + lan_mac=$(mtd_get_mac_text "devdata" 0xc9) + wan_mac=$(mtd_get_mac_text "devdata" 0x79) + ;; qihoo,c301|\ wd,mynet-n600|\ wd,mynet-n750) diff --git a/target/linux/ath79/generic/base-files/etc/uci-defaults/09_fix-checksum b/target/linux/ath79/generic/base-files/etc/uci-defaults/09_fix-checksum index 4d961f26d2..7f4d6cf428 100644 --- a/target/linux/ath79/generic/base-files/etc/uci-defaults/09_fix-checksum +++ b/target/linux/ath79/generic/base-files/etc/uci-defaults/09_fix-checksum @@ -22,6 +22,7 @@ dlink,dap-3662-a1) fixwrgg ;; dlink,dir-629-a1|\ +dlink,dir-869-a1|\ qihoo,c301) fix_seama_header ;; diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index fc9ffa6de9..d4a419501c 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -1150,11 +1150,24 @@ define Device/dlink_dir-859-a1 DEVICE_MODEL := DIR-859 DEVICE_VARIANT := A1 IMAGE_SIZE := 15872k - DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct + DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct SEAMA_SIGNATURE := wrgac37_dlink.2013gui_dir859 endef TARGET_DEVICES += dlink_dir-859-a1 +define Device/dlink_dir-869-a1 + $(Device/seama) + SOC := qca9563 + DEVICE_VENDOR := D-Link + DEVICE_MODEL := DIR-869 + DEVICE_VARIANT := A1 + IMAGE_SIZE := 15872k + DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct + SEAMA_SIGNATURE := wrgac54_dlink.2015_dir869 + SUPPORTED_DEVICES += dir-869-a1 +endef +TARGET_DEVICES += dlink_dir-869-a1 + define Device/elecom_wrc-1750ghbk2-i SOC := qca9563 DEVICE_VENDOR := ELECOM From 25eead21c5ab3367317051fce4ebc3552c49f86f Mon Sep 17 00:00:00 2001 From: Lech Perczak Date: Tue, 13 Sep 2022 23:40:06 +0200 Subject: [PATCH 06/26] ath79: fix 5GHz on QCA9886 variant of ZTE MF286 Recently, a strange variant of ZTE MF286 was discovered, having QCA9886 radio instead of QCA9882 - like MF286A, but having MF286 flash layout and rest of hardware. To support both variants in one image, bind calibration data at offset 0x5000 both as "calibration" and "pre-calibration" nvmem-cells, so ath10k can load caldata for both at runtime. Signed-off-by: Lech Perczak --- target/linux/ath79/dts/qca9563_zte_mf286.dts | 4 ++-- target/linux/ath79/image/nand.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target/linux/ath79/dts/qca9563_zte_mf286.dts b/target/linux/ath79/dts/qca9563_zte_mf286.dts index 2e528a6b97..877075c769 100644 --- a/target/linux/ath79/dts/qca9563_zte_mf286.dts +++ b/target/linux/ath79/dts/qca9563_zte_mf286.dts @@ -119,8 +119,8 @@ }; &wifi_ath10k { - nvmem-cells = <&macaddr_mac_0>, <&cal_caldata_5000>; - nvmem-cell-names = "mac-address", "calibration"; + nvmem-cells = <&macaddr_mac_0>, <&cal_caldata_5000>, <&cal_caldata_5000>; + nvmem-cell-names = "mac-address", "calibration", "pre-calibration"; mac-address-increment = <1>; }; diff --git a/target/linux/ath79/image/nand.mk b/target/linux/ath79/image/nand.mk index d1bd4feb1f..84a589809f 100644 --- a/target/linux/ath79/image/nand.mk +++ b/target/linux/ath79/image/nand.mk @@ -426,8 +426,8 @@ TARGET_DEVICES += zte_mf282 define Device/zte_mf286 $(Device/zte_mf28x_common) DEVICE_MODEL := MF286 - DEVICE_PACKAGES += ath10k-firmware-qca988x-ct kmod-usb-net-qmi-wwan \ - kmod-usb-serial-option uqmi + DEVICE_PACKAGES += ath10k-firmware-qca988x-ct ath10k-firmware-qca9888-ct \ + kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi endef TARGET_DEVICES += zte_mf286 From eab9de0c9c05e1a057e4c9112c4802c7f8fe9a3d Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Thu, 18 May 2023 22:51:08 +0200 Subject: [PATCH 07/26] ipq40xx: convert EZVIZ CS-W3-WD1200G-EUP to DSA Convert the repeater to DSA. Signed-off-by: Christian Lamparter --- .../ipq40xx/base-files/etc/board.d/02_network | 1 + .../dts/qcom-ipq4018-cs-w3-wd1200g-eup.dts | 36 +++++++++++++++++++ target/linux/ipq40xx/image/generic.mk | 3 +- 3 files changed, 38 insertions(+), 2 deletions(-) diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network index cb318d36a3..28648c0db9 100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network @@ -82,6 +82,7 @@ ipq40xx_setup_interfaces() ucidef_set_interface_lan "sw-eth1 sw-eth2" ;; aruba,ap-303h|\ + ezviz,cs-w3-wd1200g-eup|\ netgear,rbr50|\ netgear,rbs50|\ netgear,srr60|\ diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-cs-w3-wd1200g-eup.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-cs-w3-wd1200g-eup.dts index dea5c2dc36..22a48c12c4 100644 --- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-cs-w3-wd1200g-eup.dts +++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-cs-w3-wd1200g-eup.dts @@ -239,6 +239,42 @@ status = "okay"; }; +&gmac { + status = "okay"; + nvmem-cells = <&macaddr_art_0>; + nvmem-cell-names = "mac-address"; +}; + +&switch { + status = "okay"; +}; + +&swport2 { + status = "okay"; + label = "lan3"; +}; + +&swport3 { + status = "okay"; + label = "lan2"; +}; + +&swport4 { + status = "okay"; + label = "lan1"; +}; + +&swport5 { + status = "okay"; + label = "wan"; + nvmem-cells = <&macaddr_art_6>; + nvmem-cell-names = "mac-address"; +}; + +ðphy0 { + status = "disabled"; +}; + &wifi0 { status = "okay"; qcom,ath10k-calibration-variant = "ezviz-cs-w3-wd1200g-eup"; diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk index c8b8ec936b..59bdd04296 100644 --- a/target/linux/ipq40xx/image/generic.mk +++ b/target/linux/ipq40xx/image/generic.mk @@ -555,8 +555,7 @@ define Device/ezviz_cs-w3-wd1200g-eup DEVICE_COMPAT_MESSAGE := uboot's bootcmd has to be updated (see wiki). \ Upgrade via sysupgrade mechanism is not possible. endef -# Missing DSA Setup -#TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup +TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup define Device/glinet_gl-a1300 $(call Device/FitImage) From 4071398b13aeee873cb5a48b00b6c90074763d5f Mon Sep 17 00:00:00 2001 From: Sven Roederer Date: Thu, 11 May 2023 12:42:12 +0200 Subject: [PATCH 08/26] build: escape whitespaces in VERSION_DIST for Netgear images Prevents subshell commands from failing to parse options when having defined a whitespace in the VERSION_DIST. As the called resulting images unlikely will handle whitespace correctly, we replace them by "-". Signed-off-by: Sven Roederer --- include/image-commands.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/image-commands.mk b/include/image-commands.mk index 0c13f30fef..6c385b85e8 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -410,7 +410,7 @@ endef define Build/netgear-dni $(STAGING_DIR_HOST)/bin/mkdniimg \ - -B $(NETGEAR_BOARD_ID) -v $(VERSION_DIST).$(firstword $(subst -, ,$(REVISION))) \ + -B $(NETGEAR_BOARD_ID) -v $(shell cat $(VERSION_DIST)| sed -e 's/[[:space:]]/-/g').$(firstword $(subst -, ,$(REVISION))) \ $(if $(NETGEAR_HW_ID),-H $(NETGEAR_HW_ID)) \ -r "$(1)" \ -i $@ -o $@.new @@ -423,7 +423,7 @@ define Build/netgear-encrypted-factory --output-file $@ \ --model $(NETGEAR_ENC_MODEL) \ --region $(NETGEAR_ENC_REGION) \ - --version V1.0.0.0.$(VERSION_DIST).$(firstword $(subst -, ,$(REVISION))) \ + --version V1.0.0.0.$(shell cat $(VERSION_DIST)| sed -e 's/[[:space:]]/-/g').$(firstword $(subst -, ,$(REVISION))) \ --encryption-block-size 0x20000 \ --openssl-bin "$(STAGING_DIR_HOST)/bin/openssl" \ --key 6865392d342b4d212964363d6d7e7765312c7132613364316e26322a5a5e2538 \ From 3f99b2b3f7e4567e331fce35c3d27b65c34ea651 Mon Sep 17 00:00:00 2001 From: Tiago Gaspar Date: Wed, 12 Apr 2023 13:53:33 +0100 Subject: [PATCH 09/26] kernel: net: add support for kernel tls Add ktls (Kernel TLS) kmods to enable TLS support in kernel (allowing TLS offload when the network card supports it) Signed-off-by: Tiago Gaspar (added disabled symbols) Signed-off-by: Christian Lamparter --- package/kernel/linux/modules/netsupport.mk | 19 +++++++++++++++++++ target/linux/generic/config-5.15 | 2 ++ 2 files changed, 21 insertions(+) diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index 4653b82565..b739289809 100644 --- a/package/kernel/linux/modules/netsupport.mk +++ b/package/kernel/linux/modules/netsupport.mk @@ -46,6 +46,7 @@ define KernelPackage/bonding SUBMENU:=$(NETWORK_SUPPORT_MENU) TITLE:=Ethernet bonding driver KCONFIG:=CONFIG_BONDING + DEPENDS:=PACKAGE_kmod-tls:kmod-tls FILES:=$(LINUX_DIR)/drivers/net/bonding/bonding.ko AUTOLOAD:=$(call AutoLoad,40,bonding) MODPARAMS.bonding:=max_bonds=0 @@ -1042,6 +1043,24 @@ endef $(eval $(call KernelPackage,tcp-bbr)) +define KernelPackage/tls + SUBMENU:=$(NETWORK_SUPPORT_MENU) + TITLE:=In-kernel TLS Support with HW Offload + KCONFIG:=CONFIG_TLS \ + CONFIG_TLS_DEVICE=y + FILES:=$(LINUX_DIR)/net/tls/tls.ko + AUTOLOAD:=$(call AutoProbe,tls) +endef + +define KernelPackage/tls/description + Kernel module for in-kernel TLS protocol support and hw offload + (to supported interfaces). + This allows symmetric encryption handling of the TLS protocol to + be done in-kernel and it's HW offload when available. +endef + +$(eval $(call KernelPackage,tls)) + define KernelPackage/tcp-hybla SUBMENU:=$(NETWORK_SUPPORT_MENU) diff --git a/target/linux/generic/config-5.15 b/target/linux/generic/config-5.15 index 4c35281b54..f13af8ba26 100644 --- a/target/linux/generic/config-5.15 +++ b/target/linux/generic/config-5.15 @@ -6571,6 +6571,8 @@ CONFIG_TINY_RCU=y # CONFIG_TI_TSC2046 is not set # CONFIG_TLAN is not set # CONFIG_TLS is not set +# CONFIG_TLS_DEVICE is not set +# CONFIG_TLS_TOE is not set # CONFIG_TMD_HERMES is not set # CONFIG_TMP006 is not set # CONFIG_TMP007 is not set From 2afabe677922c5f3a3234985c5a2d7bd2140f6f5 Mon Sep 17 00:00:00 2001 From: Wojciech Dubowik Date: Wed, 12 Apr 2023 11:17:01 +0200 Subject: [PATCH 10/26] ls-rcw: Bump to lf-6.1.1-1.0.0 and switch to github The default location of ls-rcw has been changed from codeuaurora to github. The reason is that the old codeaurora source no longer resolves. Also use the latest tag for Layerscape Linux Development POC from NXP. Tested on: * NXP FRWY-LS1012A * NXP LS1046A-RDB Signed-off-by: Wojciech Dubowik (reset PKG_RELEASE, Mention that previous codeaurora source is no longer available) Signed-off-by: Christian Lamparter --- package/firmware/layerscape/ls-rcw/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package/firmware/layerscape/ls-rcw/Makefile b/package/firmware/layerscape/ls-rcw/Makefile index 10a6593835..1569f1042e 100644 --- a/package/firmware/layerscape/ls-rcw/Makefile +++ b/package/firmware/layerscape/ls-rcw/Makefile @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ls-rcw -PKG_VERSION:=21.08 -PKG_RELEASE:=4 +PKG_VERSION:=lf-6.1.1-1.0.0 +PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/rcw -PKG_SOURCE_VERSION:=LSDK-21.08 -PKG_MIRROR_HASH:=5b6ae3937d8c64f24c2d09d21e892e60b9f60de3573ca64ef19fa71072e6e346 +PKG_SOURCE_URL:=https://github.com/nxp-qoriq/rcw +PKG_SOURCE_VERSION:=lf-6.1.1-1.0.0 +PKG_MIRROR_HASH:=3127285549a0a7dd3cded20c2fbfb67b06943faa8dab529f61936dc1bea177db PKG_FLAGS:=nonshared From 69c430aa2c6505772aa331f6c5c10362565af5e3 Mon Sep 17 00:00:00 2001 From: Wojciech Dubowik Date: Wed, 12 Apr 2023 11:20:37 +0200 Subject: [PATCH 11/26] uboot-layerscape: Bump to lf-6.1.1-1.0.0 and switch to github The default location of uboot-layerscape has been changed from codeuaurora to github. Also use the latest tag for Layerscape Linux Development POC from NXP. Tested on: * NXP FRWY-LS1012A * NXP LS1028A-RDB * NXP LS1046A-RDB V2: Remove ls1028ardb specifix fixups not needed with new uboot Signed-off-by: Wojciech Dubowik (reset PKG_RELEASE) Signed-off-by: Christian Lamparter --- package/boot/uboot-layerscape/Makefile | 10 +++--- ...rmware-get-random-when-no-kaslr-seed.patch | 33 ------------------- ...le-gic-initialization-for-ls1028ardb.patch | 8 ----- 3 files changed, 5 insertions(+), 46 deletions(-) delete mode 100644 package/boot/uboot-layerscape/patches/0003-avoid-calling-sec-firmware-get-random-when-no-kaslr-seed.patch delete mode 100644 package/boot/uboot-layerscape/patches/0004-disable-gic-initialization-for-ls1028ardb.patch diff --git a/package/boot/uboot-layerscape/Makefile b/package/boot/uboot-layerscape/Makefile index 044a788d6e..e255debfeb 100644 --- a/package/boot/uboot-layerscape/Makefile +++ b/package/boot/uboot-layerscape/Makefile @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=uboot-layerscape -PKG_VERSION:=21.08 -PKG_RELEASE:=7 +PKG_VERSION:=lf-6.1.1-1.0.0 +PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/u-boot -PKG_SOURCE_VERSION:=LSDK-21.08 -PKG_MIRROR_HASH:=54909a98bdcc26c7f9b35b35fcae09b977ecbf044be7bffa6dad9306c47cccf6 +PKG_SOURCE_URL:=https://github.com/nxp-qoriq/u-boot +PKG_SOURCE_VERSION:=lf-6.1.1-1.0.0 +PKG_MIRROR_HASH:=f4a3a262fd8923af72dede0348a512c05b756e3925279553eaf1c6667b186fb4 include $(INCLUDE_DIR)/u-boot.mk include $(INCLUDE_DIR)/package.mk diff --git a/package/boot/uboot-layerscape/patches/0003-avoid-calling-sec-firmware-get-random-when-no-kaslr-seed.patch b/package/boot/uboot-layerscape/patches/0003-avoid-calling-sec-firmware-get-random-when-no-kaslr-seed.patch deleted file mode 100644 index 681ec90f1c..0000000000 --- a/package/boot/uboot-layerscape/patches/0003-avoid-calling-sec-firmware-get-random-when-no-kaslr-seed.patch +++ /dev/null @@ -1,33 +0,0 @@ -Index: uboot-layerscape-lf-6.1.1-1.0.0/arch/arm/cpu/armv8/sec_firmware.c -=================================================================== ---- uboot-layerscape-lf-6.1.1-1.0.0.orig/arch/arm/cpu/armv8/sec_firmware.c -+++ uboot-layerscape-lf-6.1.1-1.0.0/arch/arm/cpu/armv8/sec_firmware.c -@@ -473,12 +473,6 @@ int fdt_fixup_kaslr(void *fdt) - return 0; - } - -- ret = sec_firmware_get_random(rand, 8); -- if (ret < 0) { -- printf("WARNING: No random number to set kaslr-seed\n"); -- return 0; -- } -- - err = fdt_check_header(fdt); - if (err < 0) { - printf("fdt_chosen: %s\n", fdt_strerror(err)); -@@ -490,6 +484,15 @@ int fdt_fixup_kaslr(void *fdt) - if (nodeoffset < 0) - return 0; - -+ if (fdt_find_or_add_subnode(fdt, nodeoffset, "kaslr-seed")) -+ return 0; -+ -+ ret = sec_firmware_get_random(rand, 8); -+ if (ret < 0) { -+ printf("WARNING: No random number to set kaslr-seed\n"); -+ return 0; -+ } -+ - err = fdt_setprop(fdt, nodeoffset, "kaslr-seed", rand, - sizeof(rand)); - if (err < 0) { diff --git a/package/boot/uboot-layerscape/patches/0004-disable-gic-initialization-for-ls1028ardb.patch b/package/boot/uboot-layerscape/patches/0004-disable-gic-initialization-for-ls1028ardb.patch deleted file mode 100644 index 72011ae3a9..0000000000 --- a/package/boot/uboot-layerscape/patches/0004-disable-gic-initialization-for-ls1028ardb.patch +++ /dev/null @@ -1,8 +0,0 @@ ---- a/configs/ls1028ardb_tfa_defconfig -+++ b/configs/ls1028ardb_tfa_defconfig -@@ -1,5 +1,4 @@ - CONFIG_ARM=y --CONFIG_GIC_V3_ITS=y - CONFIG_TARGET_LS1028ARDB=y - CONFIG_TFABOOT=y - CONFIG_SYS_MALLOC_F_LEN=0x6000 From 6b5496aef1ad3cb79b0cf38122990fdc7d21cf27 Mon Sep 17 00:00:00 2001 From: Wojciech Dubowik Date: Wed, 12 Apr 2023 11:22:05 +0200 Subject: [PATCH 12/26] fman-ucode: Bump to lf-6.1.1-1.0.0 and switch to github The default location of fman-ucode has been changed from codeuaurora to github. Also use the latest tag for Layerscape Linux Development POC from NXP. Tested on: * NXP LS1046A-RDB Signed-off-by: Wojciech Dubowik (reset PKG_RELEASE) Signed-off-by: Christian Lamparter --- package/firmware/layerscape/fman-ucode/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package/firmware/layerscape/fman-ucode/Makefile b/package/firmware/layerscape/fman-ucode/Makefile index 83d9313ce5..fdd4659851 100644 --- a/package/firmware/layerscape/fman-ucode/Makefile +++ b/package/firmware/layerscape/fman-ucode/Makefile @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fman-ucode -PKG_VERSION:=21.08 -PKG_RELEASE:=3 +PKG_VERSION:=lf-6.1.1-1.0.0 +PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://github.com/NXP/qoriq-fm-ucode.git -PKG_SOURCE_VERSION:=LSDK-21.08 -PKG_MIRROR_HASH:=fc3c249c20b823e9554764f875c3d600b05f2e3659262d79f081e6765e891c96 +PKG_SOURCE_URL:=https://github.com/nxp-qoriq/qoriq-fm-ucode +PKG_SOURCE_VERSION:=lf-6.1.1-1.0.0 +PKG_MIRROR_HASH:=3614200837945460374570a48822a3efb96a64b93724e7f973e61008baeccf3a PKG_FLAGS:=nonshared From f6eae517aed833b4c9ae377a5b0e385f6d1330c0 Mon Sep 17 00:00:00 2001 From: Wojciech Dubowik Date: Wed, 12 Apr 2023 11:33:37 +0200 Subject: [PATCH 13/26] ppfe-firmware: Bump to lf-6.1.1-1.0.0 and switch to github The default location of ppfe-firmware has been changed from codeuaurora to github. Also use the latest tag for Layerscape Linux Development POC from NXP. Tested on: * NXP FRWY-LS1012A Signed-off-by: Wojciech Dubowik (reset PKG_RELEASE) Signed-off-by: Christian Lamparter --- package/firmware/layerscape/ppfe-firmware/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package/firmware/layerscape/ppfe-firmware/Makefile b/package/firmware/layerscape/ppfe-firmware/Makefile index 094d8fecc8..86f6194125 100644 --- a/package/firmware/layerscape/ppfe-firmware/Makefile +++ b/package/firmware/layerscape/ppfe-firmware/Makefile @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ppfe -PKG_VERSION:=21.08 -PKG_RELEASE:=3 +PKG_VERSION:=lf-6.1.1-1.0.0 +PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://github.com/NXP/qoriq-engine-pfe-bin.git -PKG_SOURCE_VERSION:=LSDK-21.08 -PKG_MIRROR_HASH:=f2591b12bc02dbfcf113dcb79cce2fc703d8492b7309ad75b3c4915b76966c64 +PKG_SOURCE_URL:=https://github.com/nxp-qoriq/qoriq-engine-pfe-bin +PKG_SOURCE_VERSION:=lf-6.1.1-1.0.0 +PKG_MIRROR_HASH:=eb1e3efe08980e70594060c84c1620a1dde53e00e96bae63d15dceb236c0bfa8 PKG_FLAGS:=nonshared From 5e91b4507c0010970482099464b44a5404835caa Mon Sep 17 00:00:00 2001 From: Wojciech Dubowik Date: Wed, 19 Apr 2023 08:41:18 +0200 Subject: [PATCH 14/26] tfa-layerscape: Change to github and use the latest tag The default location of tfa-layerscape has been changed from codeuaurora to github. Also use the latest tag for Layerscape Linux Development POC from NXP. v2: * restored ls1021a-afrdm board * added platform defines to fiptool so ls-ddr-phy can be built Signed-off-by: Wojciech Dubowik (reset PKG_RELEASE) Signed-off-by: Christian Lamparter --- package/boot/tfa-layerscape/Makefile | 17 +- .../patches/001-fiptool-hostbuild-fixes.patch | 37 ++- ...ix-create_pbl-and-byte_swap-host-bui.patch | 16 +- ...plat-nxp-restore-ls1012afrdm-support.patch | 232 ++++++++++++++++++ 4 files changed, 265 insertions(+), 37 deletions(-) create mode 100644 package/boot/tfa-layerscape/patches/004-plat-nxp-restore-ls1012afrdm-support.patch diff --git a/package/boot/tfa-layerscape/Makefile b/package/boot/tfa-layerscape/Makefile index 2deea4d83f..c1ef217f47 100644 --- a/package/boot/tfa-layerscape/Makefile +++ b/package/boot/tfa-layerscape/Makefile @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tfa-layerscape -PKG_VERSION:=21.08 -PKG_RELEASE:=6 +PKG_VERSION:=lf-6.1.1-1.0.0 +PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/atf -PKG_SOURCE_VERSION:=LSDK-21.08 -PKG_MIRROR_HASH:=893f2d28a77dcc9d4413a619b4719ca5f1f4dc78dd824a8488e7d543e66bcf95 +PKG_SOURCE_URL:=https://github.com/nxp-qoriq/atf +PKG_SOURCE_VERSION:=lf-6.1.1-1.0.0 +PKG_MIRROR_HASH:=c0e3c7d0cc9ee5f9ae68cd705ce7f07f714c4fe3fd4a5a79de5699e7865b759f PKG_BUILD_DEPENDS:=tfa-layerscape/host include $(INCLUDE_DIR)/host-build.mk @@ -25,18 +25,19 @@ HOST_CFLAGS += -Wall -Werror -pedantic -std=c99 define Host/Compile $(MAKE) -C \ $(HOST_BUILD_DIR)/tools/fiptool \ + PLAT_FIPTOOL_HELPER_MK="$(HOST_BUILD_DIR)/tools/nxp/plat_fiptool/plat_fiptool.mk" CFLAGS="$(HOST_CFLAGS)" \ LDFLAGS="$(HOST_LDFLAGS)" \ HOSTCCFLAGS="$(HOST_CFLAGS)" $(MAKE) -C \ - $(HOST_BUILD_DIR)/tools/nxp \ + $(HOST_BUILD_DIR)/tools/nxp/create_pbl \ CFLAGS="$(HOST_CFLAGS)" endef define Host/Install $(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/fiptool/fiptool $(STAGING_DIR_HOST)/bin/fiptool-layerscape - $(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/nxp/create_pbl $(STAGING_DIR_HOST)/bin/tfa-create-pbl - $(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/nxp/byte_swap $(STAGING_DIR_HOST)/bin/tfa-byte-swap + $(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/nxp/create_pbl/create_pbl $(STAGING_DIR_HOST)/bin/tfa-create-pbl + $(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/nxp/create_pbl/byte_swap $(STAGING_DIR_HOST)/bin/tfa-byte-swap endef define Trusted-Firmware-A/Default diff --git a/package/boot/tfa-layerscape/patches/001-fiptool-hostbuild-fixes.patch b/package/boot/tfa-layerscape/patches/001-fiptool-hostbuild-fixes.patch index 4b74048754..8e7375cfa2 100644 --- a/package/boot/tfa-layerscape/patches/001-fiptool-hostbuild-fixes.patch +++ b/package/boot/tfa-layerscape/patches/001-fiptool-hostbuild-fixes.patch @@ -1,6 +1,6 @@ --- a/Makefile +++ b/Makefile -@@ -801,10 +801,6 @@ CRTTOOL ?= ${CRTTOOLPATH}/cert_create$ +@@ -914,10 +914,6 @@ CRTTOOL ?= ${CRTTOOLPATH}/cert_create$ ENCTOOLPATH ?= tools/encrypt_fw ENCTOOL ?= ${ENCTOOLPATH}/encrypt_fw${BIN_EXT} @@ -11,7 +11,7 @@ # Variables for use with sptool SPTOOLPATH ?= tools/sptool SPTOOL ?= ${SPTOOLPATH}/sptool${BIN_EXT} -@@ -1160,13 +1156,6 @@ endif +@@ -1322,13 +1318,6 @@ endif clean: @echo " CLEAN" $(call SHELL_REMOVE_DIR,${BUILD_PLAT}) @@ -25,7 +25,7 @@ ${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${CRTTOOLPATH} clean ${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${ENCTOOLPATH} clean ${Q}${MAKE} --no-print-directory -C ${ROMLIBPATH} clean -@@ -1175,13 +1164,6 @@ realclean distclean: +@@ -1337,13 +1326,6 @@ realclean distclean: @echo " REALCLEAN" $(call SHELL_REMOVE_DIR,${BUILD_BASE}) $(call SHELL_DELETE_ALL, ${CURDIR}/cscope.*) @@ -39,37 +39,33 @@ ${Q}${MAKE} --no-print-directory -C ${SPTOOLPATH} clean ${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${CRTTOOLPATH} clean ${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${ENCTOOLPATH} realclean -@@ -1238,7 +1220,7 @@ certificates: ${CRT_DEPS} ${CRTTOOL} +@@ -1400,7 +1382,7 @@ certificates: ${CRT_DEPS} ${CRTTOOL} @${ECHO_BLANK_LINE} endif -${BUILD_PLAT}/${FIP_NAME}: ${FIP_DEPS} ${FIPTOOL} +${BUILD_PLAT}/${FIP_NAME}: ${FIP_DEPS} - ${Q}${FIPTOOL} create ${FIP_ARGS} $@ - ${Q}${FIPTOOL} info $@ - @${ECHO_BLANK_LINE} -@@ -1254,7 +1236,7 @@ fwu_certificates: ${FWU_CRT_DEPS} ${CRTT + $(eval ${CHECK_FIP_CMD}) + ${Q}${FIPTOOL} create ${FIP_ARGS} $@ + ${Q}${FIPTOOL} info $@ +@@ -1417,7 +1399,7 @@ fwu_certificates: ${FWU_CRT_DEPS} ${CRTT @${ECHO_BLANK_LINE} endif -${BUILD_PLAT}/${FWU_FIP_NAME}: ${FWU_FIP_DEPS} ${FIPTOOL} +${BUILD_PLAT}/${FWU_FIP_NAME}: ${FWU_FIP_DEPS} - ${Q}${FIPTOOL} create ${FWU_FIP_ARGS} $@ - ${Q}${FIPTOOL} info $@ - @${ECHO_BLANK_LINE} -@@ -1279,24 +1261,10 @@ ${BUILD_PLAT}/${DDR_FIP_NAME}: ${DDR_FIP + $(eval ${CHECK_FWU_FIP_CMD}) + ${Q}${FIPTOOL} create ${FWU_FIP_ARGS} $@ + ${Q}${FIPTOOL} info $@ +@@ -1425,19 +1407,9 @@ ${BUILD_PLAT}/${FWU_FIP_NAME}: ${FWU_FIP @echo "Built $@ successfully" @${ECHO_BLANK_LINE} -fiptool: ${FIPTOOL} fip: ${BUILD_PLAT}/${FIP_NAME} fwu_fip: ${BUILD_PLAT}/${FWU_FIP_NAME} - fip_ddr: ${BUILD_PLAT}/${DDR_FIP_NAME} --.PHONY: ${FIPTOOL} --${FIPTOOL}: -- @${ECHO_BLANK_LINE} -- @echo "Building $@" +-${FIPTOOL}: FORCE -ifdef UNIX_MK - ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" FIPTOOL=${FIPTOOL} --no-print-directory -C ${FIPTOOLPATH} -else @@ -77,14 +73,13 @@ -# to pass the gnumake flags to nmake. - ${Q}set MAKEFLAGS= && ${MSVC_NMAKE} /nologo /f ${FIPTOOLPATH}/Makefile.msvc FIPTOOLPATH=$(subst /,\,$(FIPTOOLPATH)) FIPTOOL=$(subst /,\,$(FIPTOOL)) -endif -- @${ECHO_BLANK_LINE} - sptool: ${SPTOOL} - .PHONY: ${SPTOOL} - ${SPTOOL}: + ${SPTOOL}: FORCE + ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" SPTOOL=${SPTOOL} --no-print-directory -C ${SPTOOLPATH} --- a/tools/fiptool/Makefile +++ b/tools/fiptool/Makefile -@@ -38,7 +38,7 @@ all: ${PROJECT} +@@ -48,7 +48,7 @@ all: ${PROJECT} ${PROJECT}: ${OBJECTS} Makefile @echo " HOSTLD $@" diff --git a/package/boot/tfa-layerscape/patches/003-plat-nxp-tools-fix-create_pbl-and-byte_swap-host-bui.patch b/package/boot/tfa-layerscape/patches/003-plat-nxp-tools-fix-create_pbl-and-byte_swap-host-bui.patch index 167549d55b..73c5c66cae 100644 --- a/package/boot/tfa-layerscape/patches/003-plat-nxp-tools-fix-create_pbl-and-byte_swap-host-bui.patch +++ b/package/boot/tfa-layerscape/patches/003-plat-nxp-tools-fix-create_pbl-and-byte_swap-host-bui.patch @@ -11,14 +11,14 @@ Signed-off-by: Biwen Li tools/nxp/pbl_ch3.mk | 5 ----- 2 files changed, 8 deletions(-) ---- a/tools/nxp/pbl_ch2.mk -+++ b/tools/nxp/pbl_ch2.mk +--- a/tools/nxp/create_pbl/pbl_ch2.mk ++++ b/tools/nxp/create_pbl/pbl_ch2.mk @@ -19,8 +19,6 @@ ifeq ($(RCW),"") else # Generate header for bl2.bin $(Q)$(CST_DIR)/create_hdr_isbc --in ${BUILD_PLAT}/bl2.bin --out ${BUILD_PLAT}/hdr_bl2 ${BL2_INPUT_FILE} - # Compile create_pbl tool -- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${PLAT_TOOL_PATH};\ +- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${CREATE_PBL_TOOL_PATH};\ # Add bl2.bin to RCW ${CREATE_PBL} -r ${RCW} -i ${BUILD_PLAT}/bl2.bin -b ${BOOT_MODE} -c ${SOC_NUM} -d ${BL2_BASE} -e ${BL2_BASE}\ -o ${BUILD_PLAT}/bl2_${BOOT_MODE}.pbl ;\ @@ -26,18 +26,18 @@ Signed-off-by: Biwen Li ${Q}echo "Platform ${PLAT} requires rcw file. Please set RCW to point to the right RCW file for boot mode ${BOOT_MODE}" else # -a option appends the image for Chassis 3 devices in case of non secure boot -- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${PLAT_TOOL_PATH}; +- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${CREATE_PBL_TOOL_PATH}; ${CREATE_PBL} -r ${RCW} -i ${BUILD_PLAT}/bl2.bin -b ${BOOT_MODE} -c ${SOC_NUM} -d ${BL2_BASE} -e ${BL2_BASE} \ -o ${BUILD_PLAT}/bl2_${BOOT_MODE}.pbl ; # Swapping of RCW is required for QSPi Chassis 2 devices ---- a/tools/nxp/pbl_ch3.mk -+++ b/tools/nxp/pbl_ch3.mk +--- a/tools/nxp/create_pbl/pbl_ch3.mk ++++ b/tools/nxp/create_pbl/pbl_ch3.mk @@ -26,9 +26,6 @@ else # Generate header for bl2.bin $(Q)$(CST_DIR)/create_hdr_isbc --in ${BUILD_PLAT}/bl2.bin --out ${BUILD_PLAT}/hdr_bl2 ${BL2_INPUT_FILE} - # Compile create_pbl tool -- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${PLAT_TOOL_PATH};\ +- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${CREATE_PBL_TOOL_PATH};\ - # Add Block Copy command for bl2.bin to RCW ${CREATE_PBL} -r ${RCW} -i ${BUILD_PLAT}/bl2.bin -b ${BOOT_MODE} -c ${SOC_NUM} -d ${BL2_BASE} -e ${BL2_BASE}\ @@ -46,7 +46,7 @@ Signed-off-by: Biwen Li ifeq ($(RCW),"") ${Q}echo "Platform ${PLAT} requires rcw file. Please set RCW to point to the right RCW file for boot mode ${BOOT_MODE}" else -- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${PLAT_TOOL_PATH}; +- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${CREATE_PBL_TOOL_PATH}; - # Add Block Copy command and populate boot loc ptrfor bl2.bin to RCW ${CREATE_PBL} -r ${RCW} -i ${BUILD_PLAT}/bl2.bin -b ${BOOT_MODE} -c ${SOC_NUM} -d ${BL2_BASE} -e ${BL2_BASE} \ diff --git a/package/boot/tfa-layerscape/patches/004-plat-nxp-restore-ls1012afrdm-support.patch b/package/boot/tfa-layerscape/patches/004-plat-nxp-restore-ls1012afrdm-support.patch new file mode 100644 index 0000000000..fc9504f82f --- /dev/null +++ b/package/boot/tfa-layerscape/patches/004-plat-nxp-restore-ls1012afrdm-support.patch @@ -0,0 +1,232 @@ +From 8c6a66feb721f18c930c7df03d1fbb7304107af6 Mon Sep 17 00:00:00 2001 +From: Wojciech Dubowik +Date: Thu, 20 Apr 2023 16:21:25 +0200 +Subject: [PATCH] tfa-layerscape: Restore ls1012afrdm support + +Signed-off-by: Wojciech Dubowik +--- + plat/nxp/soc-ls1012a/ls1012afrdm/ddr_init.c | 34 +++++++ + plat/nxp/soc-ls1012a/ls1012afrdm/plat_def.h | 92 +++++++++++++++++++ + plat/nxp/soc-ls1012a/ls1012afrdm/platform.mk | 25 +++++ + .../soc-ls1012a/ls1012afrdm/platform_def.h | 13 +++ + plat/nxp/soc-ls1012a/ls1012afrdm/policy.h | 16 ++++ + 5 files changed, 180 insertions(+) + create mode 100644 plat/nxp/soc-ls1012a/ls1012afrdm/ddr_init.c + create mode 100644 plat/nxp/soc-ls1012a/ls1012afrdm/plat_def.h + create mode 100644 plat/nxp/soc-ls1012a/ls1012afrdm/platform.mk + create mode 100644 plat/nxp/soc-ls1012a/ls1012afrdm/platform_def.h + create mode 100644 plat/nxp/soc-ls1012a/ls1012afrdm/policy.h + +diff --git a/plat/nxp/soc-ls1012a/ls1012afrdm/ddr_init.c b/plat/nxp/soc-ls1012a/ls1012afrdm/ddr_init.c +new file mode 100644 +index 000000000..8cb518540 +--- /dev/null ++++ b/plat/nxp/soc-ls1012a/ls1012afrdm/ddr_init.c +@@ -0,0 +1,34 @@ ++/* ++ * Copyright 2018-2022 NXP ++ * ++ * SPDX-License-Identifier: BSD-3-Clause ++ */ ++ ++#include ++#include ++ ++#include ++ ++long long init_ddr(void) ++{ ++ static const struct fsl_mmdc_info mparam = { ++ .mdctl = U(0x04180000), ++ .mdpdc = U(0x00030035), ++ .mdotc = U(0x12554000), ++ .mdcfg0 = U(0xbabf7954), ++ .mdcfg1 = U(0xdb328f64), ++ .mdcfg2 = U(0x01ff00db), ++ .mdmisc = U(0x00001680), ++ .mdref = U(0x0f3c8000), ++ .mdrwd = U(0x00002000), ++ .mdor = U(0x00bf1023), ++ .mdasp = U(0x0000003f), ++ .mpodtctrl = U(0x0000022a), ++ .mpzqhwctrl = U(0xa1390003), ++ }; ++ ++ mmdc_init(&mparam, NXP_DDR_ADDR); ++ NOTICE("DDR Init Done\n"); ++ ++ return NXP_DRAM0_SIZE; ++} +diff --git a/plat/nxp/soc-ls1012a/ls1012afrdm/plat_def.h b/plat/nxp/soc-ls1012a/ls1012afrdm/plat_def.h +new file mode 100644 +index 000000000..eb745a0a3 +--- /dev/null ++++ b/plat/nxp/soc-ls1012a/ls1012afrdm/plat_def.h +@@ -0,0 +1,92 @@ ++/* ++ * Copyright 2022 NXP ++ * ++ * SPDX-License-Identifier: BSD-3-Clause ++ */ ++ ++#ifndef PLAT_DEF_H ++#define PLAT_DEF_H ++ ++#include ++/* ++ * Required without TBBR. ++ * To include the defines for DDR PHY ++ * Images. ++ */ ++#include ++ ++#include ++#include ++ ++/* DDR Related definition */ ++#define PLAT_DEF_DRAM0_SIZE 0x20000000 /* 512 MB */ ++ ++#define NXP_SYSCLK_FREQ 125000000 ++#define NXP_DDRCLK_FREQ 100000000 ++ ++/* UART related definition */ ++#define NXP_CONSOLE_ADDR NXP_UART_ADDR ++#define NXP_CONSOLE_BAUDRATE 115200 ++ ++#define NXP_SPD_EEPROM0 0x51 ++ ++/* Size of cacheable stacks */ ++#if defined(IMAGE_BL2) ++#if defined(TRUSTED_BOARD_BOOT) ++#define PLATFORM_STACK_SIZE 0x2000 ++#else ++#define PLATFORM_STACK_SIZE 0x1000 ++#endif ++#elif defined(IMAGE_BL31) ++#define PLATFORM_STACK_SIZE 0x1000 ++#endif ++ ++/* SD block buffer */ ++#define NXP_SD_BLOCK_BUF_SIZE (0x00100000) ++#define NXP_SD_BLOCK_BUF_ADDR ULL(0x80000000) ++ ++#define BL2_LIMIT (NXP_OCRAM_ADDR + NXP_OCRAM_SIZE) ++ ++/* IO defines as needed by IO driver framework */ ++#define MAX_IO_DEVICES 3 ++#define MAX_IO_BLOCK_DEVICES 1 ++#define MAX_IO_HANDLES 4 ++ ++/* ++ * FIP image defines - Offset at which FIP Image would be present ++ * Image would include Bl31 , Bl33 and Bl32 (optional) ++ */ ++#ifdef POLICY_FUSE_PROVISION ++#define MAX_FIP_DEVICES 2 ++#endif ++ ++#ifndef MAX_FIP_DEVICES ++#define MAX_FIP_DEVICES 1 ++#endif ++ ++#ifdef PLAT_FIP_OFFSET ++#undef PLAT_FIP_OFFSET ++#endif ++#ifdef PLAT_FIP_MAX_SIZE ++#undef PLAT_FIP_MAX_SIZE ++#endif ++#define PLAT_FIP_OFFSET 0x60000 ++#define PLAT_FIP_MAX_SIZE 0x170000 ++ ++/* ++ * ID of the secure physical generic timer interrupt used by the BL32. ++ */ ++#define BL32_IRQ_SEC_PHY_TIMER 29 ++ ++/* ++ * Define properties of Group 1 Secure and Group 0 interrupts as per GICv3 ++ * terminology. On a GICv2 system or mode, the lists will be merged and treated ++ * as Group 0 interrupts. ++ */ ++#define PLAT_LS_G1S_IRQ_PROPS(grp) \ ++ INTR_PROP_DESC(BL32_IRQ_SEC_PHY_TIMER, GIC_HIGHEST_SEC_PRIORITY, grp, \ ++ GIC_INTR_CFG_LEVEL) ++ ++#define PLAT_LS_G0_IRQ_PROPS(grp) ++ ++#endif +diff --git a/plat/nxp/soc-ls1012a/ls1012afrdm/platform.mk b/plat/nxp/soc-ls1012a/ls1012afrdm/platform.mk +new file mode 100644 +index 000000000..270e92420 +--- /dev/null ++++ b/plat/nxp/soc-ls1012a/ls1012afrdm/platform.mk +@@ -0,0 +1,25 @@ ++# ++# Copyright 2018-2022 NXP ++# ++# SPDX-License-Identifier: BSD-3-Clause ++# ++ ++# board-specific build parameters ++BOOT_MODE := qspi ++BOARD := ls1012afrdm ++ ++# DDR Compilation Configs ++DDRC_NUM_CS := 1 ++ ++# On-Board Flash Details ++QSPI_FLASH_SZ := 0x4000000 ++ ++BL2_SOURCES += ${BOARD_PATH}/ddr_init.c ++ ++SUPPORTED_BOOT_MODE := qspi ++ ++# Adding platform board build info ++include plat/nxp/common/plat_make_helper/plat_common_def.mk ++ ++# Adding SoC build info ++include plat/nxp/soc-ls1012a/soc.mk +diff --git a/plat/nxp/soc-ls1012a/ls1012afrdm/platform_def.h b/plat/nxp/soc-ls1012a/ls1012afrdm/platform_def.h +new file mode 100644 +index 000000000..7daf1c02c +--- /dev/null ++++ b/plat/nxp/soc-ls1012a/ls1012afrdm/platform_def.h +@@ -0,0 +1,13 @@ ++/* ++ * Copyright 2022 NXP ++ * ++ * SPDX-License-Identifier: BSD-3-Clause ++ */ ++ ++#ifndef PLATFORM_DEF_H ++#define PLATFORM_DEF_H ++ ++#include ++#include ++ ++#endif /* PLATFORM_DEF_H */ +diff --git a/plat/nxp/soc-ls1012a/ls1012afrdm/policy.h b/plat/nxp/soc-ls1012a/ls1012afrdm/policy.h +new file mode 100644 +index 000000000..a782d01c7 +--- /dev/null ++++ b/plat/nxp/soc-ls1012a/ls1012afrdm/policy.h +@@ -0,0 +1,16 @@ ++/* ++ * Copyright 2018-2022 NXP ++ * ++ * SPDX-License-Identifier: BSD-3-Clause ++ */ ++ ++#ifndef POLICY_H ++#define POLICY_H ++ ++/* ++ * Set this to 0x0 to leave the default SMMU page size in sACR ++ * Set this to 0x1 to change the SMMU page size to 64K ++ */ ++#define POLICY_SMMU_PAGESZ_64K 0x0 ++ ++#endif /* POLICY_H */ +-- +2.34.1 + From 7365e6b00a7ab823467b7d92d4f3f0bdbe271f35 Mon Sep 17 00:00:00 2001 From: Aleksander Jan Bajkowski Date: Sun, 14 May 2023 11:43:57 +0200 Subject: [PATCH 15/26] kernel: remove obsolete kernel version switches This removes unneeded kernel version switches from the targets after kernel 5.10 has been dropped. Signed-off-by: Aleksander Jan Bajkowski --- .../ath25/files/drivers/net/phy/mvswitch.c | 8 --- .../net/ethernet/atheros/ag71xx/ag71xx_main.c | 4 -- .../generic/files/block/partitions/fit.c | 4 -- .../generic/files/drivers/net/phy/ar8216.c | 16 ----- .../files/drivers/net/phy/b53/b53_common.c | 6 -- .../files/drivers/net/dsa/qca/qca8k-ipq4019.c | 58 ------------------- .../ipq40xx/files/drivers/net/phy/qca807x.c | 19 ------ .../files/drivers/net/ethernet/ralink/mdio.c | 9 --- .../drivers/net/ethernet/ralink/mdio_rt2880.c | 8 --- .../drivers/net/ethernet/ralink/mtk_eth_soc.c | 4 -- .../drivers/net/ethernet/ralink/soc_mt7620.c | 8 --- .../files/drivers/pinctrl/pinctrl-aw9523.c | 10 ---- 12 files changed, 154 deletions(-) diff --git a/target/linux/ath25/files/drivers/net/phy/mvswitch.c b/target/linux/ath25/files/drivers/net/phy/mvswitch.c index e3550d55ba..29f2f9f0e8 100644 --- a/target/linux/ath25/files/drivers/net/phy/mvswitch.c +++ b/target/linux/ath25/files/drivers/net/phy/mvswitch.c @@ -312,11 +312,7 @@ mvswitch_config_init(struct phy_device *pdev) priv->orig_features = dev->features; #ifdef HEADER_MODE -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0) dev->extra_priv_flags |= IFF_NO_IP_ALIGN; -#else - dev->priv_flags |= IFF_NO_IP_ALIGN; -#endif dev->features |= NETIF_F_HW_VLAN_CTAG_RX | NETIF_F_HW_VLAN_CTAG_TX; #else dev->features |= NETIF_F_HW_VLAN_CTAG_RX; @@ -376,11 +372,7 @@ mvswitch_detach(struct phy_device *pdev) dev->eth_mangle_rx = NULL; dev->eth_mangle_tx = NULL; dev->features = priv->orig_features; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0) dev->extra_priv_flags &= ~IFF_NO_IP_ALIGN; -#else - dev->priv_flags &= ~IFF_NO_IP_ALIGN; -#endif } static void diff --git a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index d553c62401..06ebbd8ea3 100644 --- a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -1352,11 +1352,7 @@ static int ag71xx_rx_packets(struct ag71xx *ag, int limit) dev->stats.rx_packets++; dev->stats.rx_bytes += pktlen; -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) - skb = build_skb(ring->buf[i].rx_buf, ag71xx_buffer_size(ag)); -#else skb = napi_build_skb(ring->buf[i].rx_buf, ag71xx_buffer_size(ag)); -#endif if (!skb) { skb_free_frag(ring->buf[i].rx_buf); goto next; diff --git a/target/linux/generic/files/block/partitions/fit.c b/target/linux/generic/files/block/partitions/fit.c index ce6a2b5411..13c03743f3 100644 --- a/target/linux/generic/files/block/partitions/fit.c +++ b/target/linux/generic/files/block/partitions/fit.c @@ -73,11 +73,7 @@ int parse_fit_partitions(struct parsed_partitions *state, u64 fit_start_sector, u64 sectors, int *slot, int add_remain) { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) struct block_device *bdev = state->disk->part0; -#else - struct block_device *bdev = state->bdev; -#endif struct address_space *mapping = bdev->bd_inode->i_mapping; struct page *page; void *fit, *init_fit; diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index bf98fd599e..5e248f856e 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.c +++ b/target/linux/generic/files/drivers/net/phy/ar8216.c @@ -891,11 +891,7 @@ ar8216_phy_write(struct ar8xxx_priv *priv, int addr, int regnum, u16 val) static int ar8229_hw_init(struct ar8xxx_priv *priv) { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0) phy_interface_t phy_if_mode; -#else - int phy_if_mode; -#endif if (priv->initialized) return 0; @@ -903,11 +899,7 @@ ar8229_hw_init(struct ar8xxx_priv *priv) ar8xxx_write(priv, AR8216_REG_CTRL, AR8216_CTRL_RESET); ar8xxx_reg_wait(priv, AR8216_REG_CTRL, AR8216_CTRL_RESET, 0, 1000); -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0) of_get_phy_mode(priv->pdev->of_node, &phy_if_mode); -#else - phy_if_mode = of_get_phy_mode(priv->pdev->of_node); -#endif if (phy_if_mode == PHY_INTERFACE_MODE_GMII) { ar8xxx_write(priv, AR8229_REG_OPER_MODE0, @@ -2467,11 +2459,7 @@ ar8xxx_phy_config_init(struct phy_device *phydev) /* VID fixup only needed on ar8216 */ if (chip_is_ar8216(priv)) { dev->phy_ptr = priv; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0) dev->extra_priv_flags |= IFF_NO_IP_ALIGN; -#else - dev->priv_flags |= IFF_NO_IP_ALIGN; -#endif dev->eth_mangle_rx = ar8216_mangle_rx; dev->eth_mangle_tx = ar8216_mangle_tx; } @@ -2706,11 +2694,7 @@ ar8xxx_phy_detach(struct phy_device *phydev) #ifdef CONFIG_ETHERNET_PACKET_MANGLE dev->phy_ptr = NULL; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0) dev->extra_priv_flags &= ~IFF_NO_IP_ALIGN; -#else - dev->priv_flags &= ~IFF_NO_IP_ALIGN; -#endif dev->eth_mangle_rx = NULL; dev->eth_mangle_tx = NULL; #endif diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c index 87d731ec3e..215a369e63 100644 --- a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c +++ b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c @@ -506,15 +506,9 @@ static int b53_configure_ports_of(struct b53_device *dev) if (fixed_link) { u32 spd; u8 po = GMII_PO_LINK; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0) phy_interface_t mode; -#else - int mode = of_get_phy_mode(pn); -#endif -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0) of_get_phy_mode(pn, &mode); -#endif if (!of_property_read_u32(fixed_link, "speed", &spd)) { switch (spd) { diff --git a/target/linux/ipq40xx/files/drivers/net/dsa/qca/qca8k-ipq4019.c b/target/linux/ipq40xx/files/drivers/net/dsa/qca/qca8k-ipq4019.c index a8c3a20406..202d1a582c 100644 --- a/target/linux/ipq40xx/files/drivers/net/dsa/qca/qca8k-ipq4019.c +++ b/target/linux/ipq40xx/files/drivers/net/dsa/qca/qca8k-ipq4019.c @@ -1435,23 +1435,12 @@ qca8k_port_fdb_dump(struct dsa_switch *ds, int port, return 0; } -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) -static int -qca8k_port_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering, - struct switchdev_trans *trans) -#else static int qca8k_port_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering, struct netlink_ext_ack *extack) -#endif { struct qca8k_priv *priv = ds->priv; -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) - if (switchdev_trans_ph_prepare(trans)) - return 0; -#endif - if (vlan_filtering) { qca8k_rmw(priv, QCA8K_PORT_LOOKUP_CTRL(port), QCA8K_PORT_LOOKUP_VLAN_MODE, @@ -1465,70 +1454,32 @@ qca8k_port_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering, return 0; } -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) -static int -qca8k_port_vlan_prepare(struct dsa_switch *ds, int port, - const struct switchdev_obj_port_vlan *vlan) -{ - return 0; -} -#endif - -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) -static void -qca8k_port_vlan_add(struct dsa_switch *ds, int port, - const struct switchdev_obj_port_vlan *vlan) -#else static int qca8k_port_vlan_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan, struct netlink_ext_ack *extack) -#endif { bool untagged = vlan->flags & BRIDGE_VLAN_INFO_UNTAGGED; bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; struct qca8k_priv *priv = ds->priv; int ret = 0; -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) - u16 vid; - for (vid = vlan->vid_begin; vid <= vlan->vid_end && !ret; ++vid) - ret = qca8k_vlan_add(priv, port, vid, untagged); -#else ret = qca8k_vlan_add(priv, port, vlan->vid, untagged); -#endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) - if (ret) - dev_err(priv->dev, "Failed to add VLAN to port %d (%d)", port, ret); -#else if (ret) { dev_err(priv->dev, "Failed to add VLAN to port %d (%d)", port, ret); return ret; } -#endif if (pvid) { int shift = 16 * (port % 2); qca8k_rmw(priv, QCA8K_EGRESS_VLAN(port), -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) - 0xfff << shift, - vlan->vid_end << shift); -#else 0xfff << shift, vlan->vid << shift); -#endif qca8k_write(priv, QCA8K_REG_PORT_VLAN_CTRL0(port), -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) - QCA8K_PORT_VLAN_CVID(vlan->vid_end) | - QCA8K_PORT_VLAN_SVID(vlan->vid_end)); -#else QCA8K_PORT_VLAN_CVID(vlan->vid) | QCA8K_PORT_VLAN_SVID(vlan->vid)); -#endif } -#if LINUX_VERSION_CODE > KERNEL_VERSION(5,12,0) return 0; -#endif } static int @@ -1537,14 +1488,8 @@ qca8k_port_vlan_del(struct dsa_switch *ds, int port, { struct qca8k_priv *priv = ds->priv; int ret = 0; -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) - u16 vid; - for (vid = vlan->vid_begin; vid <= vlan->vid_end && !ret; ++vid) - ret = qca8k_vlan_del(priv, port, vid); -#else ret = qca8k_vlan_del(priv, port, vlan->vid); -#endif if (ret) dev_err(priv->dev, "Failed to delete VLAN from port %d (%d)", port, ret); @@ -1577,9 +1522,6 @@ static const struct dsa_switch_ops qca8k_switch_ops = { .port_fdb_del = qca8k_port_fdb_del, .port_fdb_dump = qca8k_port_fdb_dump, .port_vlan_filtering = qca8k_port_vlan_filtering, -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) - .port_vlan_prepare = qca8k_port_vlan_prepare, -#endif .port_vlan_add = qca8k_port_vlan_add, .port_vlan_del = qca8k_port_vlan_del, .phylink_validate = qca8k_phylink_validate, diff --git a/target/linux/ipq40xx/files/drivers/net/phy/qca807x.c b/target/linux/ipq40xx/files/drivers/net/phy/qca807x.c index 28e0e6bc8e..23b0ca74f7 100644 --- a/target/linux/ipq40xx/files/drivers/net/phy/qca807x.c +++ b/target/linux/ipq40xx/files/drivers/net/phy/qca807x.c @@ -576,16 +576,6 @@ static int qca807x_config_intr(struct phy_device *phydev) return ret; } -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) -static int qca807x_ack_intr(struct phy_device *phydev) -{ - int ret; - - ret = phy_read(phydev, QCA807X_INTR_STATUS); - - return (ret < 0) ? ret : 0; -} -#else static irqreturn_t qca807x_handle_interrupt(struct phy_device *phydev) { int irq_status, int_enabled; @@ -611,7 +601,6 @@ static irqreturn_t qca807x_handle_interrupt(struct phy_device *phydev) return IRQ_HANDLED; } -#endif static int qca807x_led_config(struct phy_device *phydev) { @@ -802,11 +791,7 @@ static struct phy_driver qca807x_drivers[] = { .config_init = qca807x_config, .read_status = qca807x_read_status, .config_intr = qca807x_config_intr, -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) - .ack_interrupt = qca807x_ack_intr, -#else .handle_interrupt = qca807x_handle_interrupt, -#endif .soft_reset = genphy_soft_reset, .get_tunable = qca807x_get_tunable, .set_tunable = qca807x_set_tunable, @@ -824,11 +809,7 @@ static struct phy_driver qca807x_drivers[] = { .config_init = qca807x_config, .read_status = qca807x_read_status, .config_intr = qca807x_config_intr, -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) - .ack_interrupt = qca807x_ack_intr, -#else .handle_interrupt = qca807x_handle_interrupt, -#endif .soft_reset = genphy_soft_reset, .get_tunable = qca807x_get_tunable, .set_tunable = qca807x_set_tunable, diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c index b923b02af9..a6448443c0 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c @@ -64,11 +64,7 @@ int fe_connect_phy_node(struct fe_priv *priv, struct device_node *phy_node, int { const __be32 *_phy_addr = NULL; struct phy_device *phydev; -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0) - int phy_mode; -#else phy_interface_t phy_mode = PHY_INTERFACE_MODE_NA; -#endif _phy_addr = of_get_property(phy_node, "reg", NULL); @@ -77,13 +73,8 @@ int fe_connect_phy_node(struct fe_priv *priv, struct device_node *phy_node, int return -EINVAL; } -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0) - phy_mode = of_get_phy_mode(phy_node); - if (phy_mode < 0) { -#else of_get_phy_mode(phy_node, &phy_mode); if (phy_mode == PHY_INTERFACE_MODE_NA) { -#endif dev_err(priv->dev, "incorrect phy-mode %d\n", phy_mode); priv->phy->phy_node[port] = NULL; return -EINVAL; diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio_rt2880.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio_rt2880.c index 6242cf9b42..0c47d11846 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio_rt2880.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio_rt2880.c @@ -156,11 +156,7 @@ void rt2880_port_init(struct fe_priv *priv, struct device_node *np) const __be32 *id = of_get_property(np, "reg", NULL); const __be32 *link; int size; -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0) - int phy_mode; -#else phy_interface_t phy_mode = PHY_INTERFACE_MODE_NA; -#endif if (!id || (be32_to_cpu(*id) != 0)) { pr_err("%s: invalid port id\n", np->name); @@ -176,11 +172,7 @@ void rt2880_port_init(struct fe_priv *priv, struct device_node *np) return; } -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0) - phy_mode = of_get_phy_mode(np); -#else of_get_phy_mode(np, &phy_mode); -#endif switch (phy_mode) { case PHY_INTERFACE_MODE_RGMII: break; diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c index 9876a247e3..b79b348938 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c @@ -1096,11 +1096,7 @@ poll_again: return rx_done; } -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0) -static void fe_tx_timeout(struct net_device *dev) -#else static void fe_tx_timeout(struct net_device *dev, unsigned int txqueue) -#endif { struct fe_priv *priv = netdev_priv(dev); struct fe_tx_ring *ring = &priv->tx_ring; diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c index 42685eebc3..a4b2908d59 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c @@ -144,11 +144,7 @@ static void mt7620_port_init(struct fe_priv *priv, struct device_node *np) struct mt7620_gsw *gsw = (struct mt7620_gsw *)priv->soc->swpriv; const __be32 *_id = of_get_property(np, "reg", NULL); const __be32 *phy_addr; -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0) - int phy_mode; -#else phy_interface_t phy_mode = PHY_INTERFACE_MODE_NA; -#endif int size, id; int shift = 12; u32 val, mask = 0; @@ -178,11 +174,7 @@ static void mt7620_port_init(struct fe_priv *priv, struct device_node *np) priv->phy->phy_fixed[id] = NULL; } -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0) - phy_mode = of_get_phy_mode(np); -#else of_get_phy_mode(np, &phy_mode); -#endif switch (phy_mode) { case PHY_INTERFACE_MODE_RGMII: mask = 0; diff --git a/target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c b/target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c index 4e75c9bf07..4900c5a0c0 100644 --- a/target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c +++ b/target/linux/ramips/files/drivers/pinctrl/pinctrl-aw9523.c @@ -386,11 +386,6 @@ static const struct pinconf_ops aw9523_pinconf_ops = { .is_generic = true, }; -#if LINUX_VERSION_CODE <= KERNEL_VERSION(5, 5, 0) -#define GPIO_LINE_DIRECTION_IN 1 -#define GPIO_LINE_DIRECTION_OUT 0 -#endif - /* * aw9523_get_pin_direction - Get pin direction * @regmap: Regmap structure @@ -437,11 +432,6 @@ static int aw9523_get_port_state(struct regmap *regmap, u8 pin, return regmap_read(regmap, reg, state); } -#if LINUX_VERSION_CODE <= KERNEL_VERSION(5, 5, 0) -#undef GPIO_LINE_DIRECTION_IN -#undef GPIO_LINE_DIRECTION_OUT -#endif - static int aw9523_gpio_irq_type(struct irq_data *d, unsigned int type) { switch (type) { From 4642d8abdc699685db5d4eb251c71055a2bc43fa Mon Sep 17 00:00:00 2001 From: Sander van Deijck Date: Fri, 19 May 2023 00:59:25 +0200 Subject: [PATCH 16/26] kirkwood: add support for Iomega Storcenter ix4-200d Iomega Storcenter ix4-200d is a four-bay SATA NAS powered by a Marvell Kirkwood SoC clocked at 1.2GHz. It has 512MB of RAM and 32MB of flash memory, 3x USB 2.0 and 2x 1Gbit/s NIC Specification: - SoC: Marvell Kirkwood 88F6281 - CPU/Speed: 1200Mhz - Flash size: 32 MiB - RAM: 512MB - LAN: 2x 1Gbit/s - 3x USB 2.0 Notes: - The blue drive LED is triggered by HDD activity, it can not be controlled via GPIO. - The LCD screen requires proprietary code and does not function at this time. - Due to a kernel-related issue with the Marvell 88SE6121 SATA controller, currently only trays numbered #3 and #4 work, #1 and #2 do not. [1] Serial pinout: CN4 -------------- | 10 8 6 4 2 | | 9 7 5 3 1 | -------------- PIN 1 Mark (fat line) 1 = RXD 4 = TXD 6 = GND 9 = 3.3V (not necessary to connect) Installation instructions: 1. download initramfs-uImage and copy into tftp server 2. connect the tftp server to network port #1 3. access uboot environment with serial cable and run setenv mainlineLinux yes setenv arcNumber 1682 setenv console 'console=ttyS0,115200n8' setenv mtdparts 'mtdparts=orion_nand:0x100000@0x000000(u-boot)ro,0x20000@0xA0000(u-boot environment)ro,0x300000@0x100000(kernel),0x1C00000@0x400000(ubi)' setenv bootargs_root 'root=' setenv bootcmd 'setenv bootargs ${console} ${mtdparts} ${bootargs_root}; nand read.e 0x800000 0x100000 0x300000; bootm 0x00800000' saveenv setenv serverip 192.168.1.1 setenv ipaddr 192.168.1.2 tftpboot 0x00800000 [initramfs-uImage filename] bootm 0x00800000 4. connect to LAN on network port #2, log into openwrt and sysupgrade to install into flash [1] https://bugzilla.kernel.org/show_bug.cgi?id=216094 Signed-off-by: Sander van Deijck (aligned FROM from signed-off. LED+key rename, whitespace removal) Signed-off-by: Christian Lamparter --- .../base-files/etc/board.d/02_network | 3 + .../arch/arm/boot/dts/kirkwood-ix4-200d.dts | 202 ++++++++++++++++++ target/linux/kirkwood/image/Makefile | 18 ++ 3 files changed, 223 insertions(+) create mode 100644 target/linux/kirkwood/files/arch/arm/boot/dts/kirkwood-ix4-200d.dts diff --git a/target/linux/kirkwood/base-files/etc/board.d/02_network b/target/linux/kirkwood/base-files/etc/board.d/02_network index df38694f40..15f75df6a8 100644 --- a/target/linux/kirkwood/base-files/etc/board.d/02_network +++ b/target/linux/kirkwood/base-files/etc/board.d/02_network @@ -37,6 +37,9 @@ kirkwood_setup_interfaces() endian,4i-edge-200) ucidef_set_interface_lan "port1 port2 port3 port4 eth1" ;; + iom,ix4-200d) + ucidef_set_interface_lan "eth0 eth1" "dhcp" + ;; linksys,e4200-v2|\ linksys,ea3500|\ linksys,ea4500) diff --git a/target/linux/kirkwood/files/arch/arm/boot/dts/kirkwood-ix4-200d.dts b/target/linux/kirkwood/files/arch/arm/boot/dts/kirkwood-ix4-200d.dts new file mode 100644 index 0000000000..c63742a1a8 --- /dev/null +++ b/target/linux/kirkwood/files/arch/arm/boot/dts/kirkwood-ix4-200d.dts @@ -0,0 +1,202 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "kirkwood.dtsi" +#include "kirkwood-6281.dtsi" +#include + +/ { + model = "Iomega ix4-200d"; + compatible = "iom,ix4-200d", "marvell,kirkwood-88f6281", "marvell,kirkwood"; + + aliases { + led-boot = &led_status_white; + led-failsafe = &led_status_red; + led-running = &led_power_white; + led-upgrade = &led_status_red; + }; + + chosen { + bootargs = "console=ttyS0,115200n8 earlyprintk"; + stdout-path = &uart0; + }; + + memory { + device_type = "memory"; + reg = <0x00000000 0x20000000>; + }; + + ocp@f1000000 { + i2c@11000 { + status = "okay"; + + adt7473@2e { + compatible = "adi,adt7473"; + reg = <0x2e>; + }; + }; + + pinctrl: pin-controller@10000 { + pmx_spi: pmx-spi { + marvell,pins = "mpp12", "mpp13", "mpp14"; + marvell,function = "gpio"; + }; + + pmx_keys: pmx-keys { + marvell,pins = "mpp16", "mpp29", "mpp47", "mpp49"; + marvell,function = "gpio"; + }; + }; + + sata@80000 { + status = "okay"; + nr-ports = <2>; + }; + + serial@12000 { + status = "okay"; + }; + + spi3 { + compatible = "spi-gpio"; + #address-cells = <0x1>; + ranges; + status = "okay"; + sck-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + mosi-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + cs-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + num-chipselects = <1>; + #size-cells = <0>; + + gpio_spi: gpio_spi@0 { + compatible = "fairchild,74hc595"; + reg = <0>; + gpio-controller; + #gpio-cells = <2>; + registers-number = <1>; + spi-max-frequency = <100000>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&pmx_keys>; + pinctrl-names = "default"; + + button-0 { + label = "Next Button"; + linux,code = ; + gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; + }; + + button-1 { + label = "Reset Button"; + linux,code = ; + gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; + }; + + button-2 { + label = "Cancel Button"; + linux,code = ; + gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; + }; + + button-3 { + label = "Power Button"; + linux,code = ; + gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + + led_status_white: led-0 { + label = "status:white"; + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&gpio_spi 4 GPIO_ACTIVE_LOW>; + }; + + led_status_red: led-1 { + label = "status:red"; + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&gpio_spi 5 GPIO_ACTIVE_LOW>; + }; + + led_power_white: led-2 { + label = "power:white"; + function = LED_FUNCTION_POWER; + color = ; + gpios = <&gpio_spi 7 GPIO_ACTIVE_HIGH>; + }; + }; + }; +}; + +ð0 { + status = "okay"; + ethernet0-port@0 { + phy-handle = <ðphy0>; + }; +}; + +ð1 { + status = "okay"; + ethernet1-port@0 { + phy-handle = <ðphy1>; + }; +}; + +&mdio { + status = "okay"; + + ethphy0: ethernet-phy@8 { + reg = <8>; + }; + + ethphy1: ethernet-phy@9 { + reg = <9>; + }; +}; + +&nand { + status = "okay"; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0000000 0x100000>; + read-only; + }; + + partition@a0000 { + label = "u-boot environment"; + reg = <0xa0000 0x20000>; + read-only; + }; + + partition@100000 { + label = "kernel"; + reg = <0x100000 0x300000>; + }; + + partition@400000 { + label = "ubi"; + reg = <0x400000 0x1C00000>; + }; + }; +}; + +&pciec { + status = "okay"; +}; + +&pcie0 { + status = "okay"; +}; diff --git a/target/linux/kirkwood/image/Makefile b/target/linux/kirkwood/image/Makefile index ea76e21970..0fa14b89f3 100644 --- a/target/linux/kirkwood/image/Makefile +++ b/target/linux/kirkwood/image/Makefile @@ -184,6 +184,24 @@ define Device/iom_ix2-200 endef TARGET_DEVICES += iom_ix2-200 +define Device/iom_ix4-200d + DEVICE_VENDOR := Iomega + DEVICE_MODEL := StorCenter ix4-200d + DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 \ + kmod-gpio-button-hotplug kmod-gpio-nxp-74hc164 \ + kmod-hwmon-adt7475 kmod-mvsdio kmod-spi-gpio + PAGESIZE := 512 + SUBPAGESIZE := 256 + BLOCKSIZE := 16k + KERNEL_SIZE := 3072k + KERNEL_IN_UBI := + UBINIZE_OPTS := -E 5 + IMAGE_SIZE := 31744k + IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \ + check-size +endef +TARGET_DEVICES += iom_ix4-200d + define Device/iptime_nas1 DEVICE_VENDOR := ipTIME DEVICE_MODEL := NAS1 From aa28e91404ed7c4c3786a289fbf206c13adb9762 Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Thu, 18 May 2023 14:49:51 +0200 Subject: [PATCH 17/26] nettle: update to 3.9 Changelog: https://git.lysator.liu.se/nettle/nettle/-/blob/26cd0222fd09b8f5dc0edba30d6908722c7e9b09/NEWS Refresh patch: - 100-portability.patch Signed-off-by: Nick Hainke --- package/libs/nettle/Makefile | 6 +++--- package/libs/nettle/patches/100-portability.patch | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package/libs/nettle/Makefile b/package/libs/nettle/Makefile index 0cec4a5d33..36410920b9 100644 --- a/package/libs/nettle/Makefile +++ b/package/libs/nettle/Makefile @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=nettle -PKG_VERSION:=3.8.1 -PKG_RELEASE:=3 +PKG_VERSION:=3.9 +PKG_RELEASE:=1 PKG_BUILD_FLAGS:=no-mips16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@GNU/nettle -PKG_HASH:=364f3e2b77cd7dcde83fd7c45219c834e54b0c75e428b6f894a23d12dd41cbfe +PKG_HASH:=0ee7adf5a7201610bb7fe0acbb7c9b3be83be44904dd35ebbcd965cd896bfeaa PKG_LICENSE:=GPL-2.0-or-later PKG_LICENSE_FILES:=COPYING diff --git a/package/libs/nettle/patches/100-portability.patch b/package/libs/nettle/patches/100-portability.patch index b4677ec020..a44baa296d 100644 --- a/package/libs/nettle/patches/100-portability.patch +++ b/package/libs/nettle/patches/100-portability.patch @@ -1,6 +1,6 @@ --- a/configure +++ b/configure -@@ -4704,6 +4704,7 @@ $as_echo_n "checking build system compil +@@ -4719,6 +4719,7 @@ $as_echo_n "checking build system compil # remove anything that might look like compiler output to our "||" expression rm -f conftest* a.out b.out a.exe a_out.exe cat >conftest.c <conftest.c <conftest.c <conftest.c < Date: Wed, 8 Feb 2023 09:59:27 +0800 Subject: [PATCH 18/26] build: Allow specifying uImage time Some U-Boot checks for a specified uImage time and refuses to boot if mismatched. This patch fixes it by recognizing UIMAGE_TIME parameter. Signed-off-by: David Yang --- include/image-commands.mk | 1 + include/image.mk | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/image-commands.mk b/include/image-commands.mk index 6c385b85e8..ea602662a5 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -581,6 +581,7 @@ define Build/tplink-v2-image endef define Build/uImage + $(if $(UIMAGE_TIME),SOURCE_DATE_EPOCH="$(UIMAGE_TIME)") \ mkimage \ -A $(LINUX_KARCH) \ -O linux \ diff --git a/include/image.mk b/include/image.mk index b801ef993c..0eae216ded 100644 --- a/include/image.mk +++ b/include/image.mk @@ -405,6 +405,7 @@ define Device/Init BOARD_NAME := UIMAGE_MAGIC := UIMAGE_NAME := + UIMAGE_TIME := DEVICE_COMPAT_VERSION := 1.0 DEVICE_COMPAT_MESSAGE := SUPPORTED_DEVICES := $(subst _,$(comma),$(1)) @@ -425,7 +426,7 @@ DEFAULT_DEVICE_VARS := \ DEVICE_DTS_CONFIG DEVICE_DTS_DELIMITER DEVICE_DTS_DIR DEVICE_DTS_OVERLAY \ DEVICE_DTS_LOADADDR \ DEVICE_FDT_NUM DEVICE_IMG_PREFIX SOC BOARD_NAME UIMAGE_MAGIC UIMAGE_NAME \ - SUPPORTED_DEVICES IMAGE_METADATA KERNEL_ENTRY KERNEL_LOADADDR \ + UIMAGE_TIME SUPPORTED_DEVICES IMAGE_METADATA KERNEL_ENTRY KERNEL_LOADADDR \ UBOOT_PATH IMAGE_SIZE \ FACTORY_IMG_NAME FACTORY_SIZE \ DEVICE_PACKAGES DEVICE_COMPAT_VERSION DEVICE_COMPAT_MESSAGE \ From 3f9526957b15e48f3b651bfcca377a9a6e8e1416 Mon Sep 17 00:00:00 2001 From: Linhui Liu Date: Sat, 20 May 2023 13:45:19 +0800 Subject: [PATCH 19/26] tools/ccache: update to 4.8.1 Release Notes: https://ccache.dev/releasenotes.html#_ccache_4_8_1 Signed-off-by: Linhui Liu --- tools/ccache/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ccache/Makefile b/tools/ccache/Makefile index 74b2ae3b44..33255e9297 100644 --- a/tools/ccache/Makefile +++ b/tools/ccache/Makefile @@ -7,11 +7,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ccache -PKG_VERSION:=4.8 +PKG_VERSION:=4.8.1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://github.com/ccache/ccache/releases/download/v$(PKG_VERSION) -PKG_HASH:=b963ee3bf88d7266b8a0565e4ba685d5666357f0a7e364ed98adb0dc1191fcbb +PKG_HASH:=87959b6819530b3dcaeb39992f585b9fc2c7120302809741378097774919fb6f include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/cmake.mk From 857345496bf1d4870320e856ae75104e166d78d1 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Sat, 20 May 2023 21:43:39 +0200 Subject: [PATCH 20/26] tfa-layerscape: fix fiptool's build A missing '\' caused the remaining parameters not to be passed to make. This fixes the following error: | gcc -c [...] fiptool.c -o fiptool.o | In file included from fiptool.h:16, | from fiptool.c:19: |fiptool_platform.h:19:11: fatal error: openssl/sha.h: No such file or directory | 19 | # include | | ^~~~~~~~~~~~~~~ |compilation terminated. |make[3]: *** [Makefile:58: fiptool.o] Error 1 as the HOST_CFLAGS are no longer passed. then, HOST_CFLAGS is specified as a command argument, this is a specific problem of our built since appending these needs the override directive. Fixes: df28bfe03247 ("tfa-layerscape: Change to github and use the latest tag") Signed-off-by: Christian Lamparter --- package/boot/tfa-layerscape/Makefile | 2 +- .../patches/001-fiptool-hostbuild-fixes.patch | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/package/boot/tfa-layerscape/Makefile b/package/boot/tfa-layerscape/Makefile index c1ef217f47..3509658869 100644 --- a/package/boot/tfa-layerscape/Makefile +++ b/package/boot/tfa-layerscape/Makefile @@ -25,7 +25,7 @@ HOST_CFLAGS += -Wall -Werror -pedantic -std=c99 define Host/Compile $(MAKE) -C \ $(HOST_BUILD_DIR)/tools/fiptool \ - PLAT_FIPTOOL_HELPER_MK="$(HOST_BUILD_DIR)/tools/nxp/plat_fiptool/plat_fiptool.mk" + PLAT_FIPTOOL_HELPER_MK="$(HOST_BUILD_DIR)/tools/nxp/plat_fiptool/plat_fiptool.mk" \ CFLAGS="$(HOST_CFLAGS)" \ LDFLAGS="$(HOST_LDFLAGS)" \ HOSTCCFLAGS="$(HOST_CFLAGS)" diff --git a/package/boot/tfa-layerscape/patches/001-fiptool-hostbuild-fixes.patch b/package/boot/tfa-layerscape/patches/001-fiptool-hostbuild-fixes.patch index 8e7375cfa2..50ce6528d7 100644 --- a/package/boot/tfa-layerscape/patches/001-fiptool-hostbuild-fixes.patch +++ b/package/boot/tfa-layerscape/patches/001-fiptool-hostbuild-fixes.patch @@ -88,3 +88,19 @@ @${ECHO_BLANK_LINE} @echo "Built $@ successfully" @${ECHO_BLANK_LINE} +--- a/tools/nxp/plat_fiptool/plat_fiptool.mk 2023-05-20 22:28:28.079945619 +0200 ++++ b/tools/nxp/plat_fiptool/plat_fiptool.mk 2023-05-20 22:26:59.443307771 +0200 +@@ -22,11 +22,11 @@ INCLUDE_PATHS += -I${PLAT_DEF_UUID_OID_C + $(shell rm ${PLAT_DEF_UUID_CONFIG_FILE_PATH}/${PLAT_DEF_UUID_CONFIG_FILE_NAME}.o) + + ifeq (${PLAT_DEF_OID},yes) +-HOSTCCFLAGS += -DPLAT_DEF_OID ++override HOSTCCFLAGS += -DPLAT_DEF_OID + endif + + ifeq (${PLAT_DEF_UUID},yes) +-HOSTCCFLAGS += -DPLAT_DEF_FIP_UUID ++override HOSTCCFLAGS += -DPLAT_DEF_FIP_UUID + PLAT_OBJECTS += ${PLAT_DEF_UUID_CONFIG_FILE_PATH}/${PLAT_DEF_UUID_CONFIG_FILE_NAME}.o + endif + From c191c2d46f0080b8c6e6aee76b30ae9cf50d6e3e Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Mon, 27 Feb 2023 00:04:33 +0000 Subject: [PATCH 21/26] x86: base-files add support for Sophos 135r3/135r3w The Sophos SG/XG-135 revision 3 has odd numbering of eth ports where the WAN port (as marked on the case) is: `eth6` and `eth0`, `eth1`, `eth2`, `eth3`, `eth5`, `eth7`, `eth8` are LAN ports. Port `eth4` seems to be the SFP port. Also add the missing LED definition for supported Sophos devices. Original discussion at: https://forum.openwrt.org/t/openwrt-on-revision-3-of-sophos-desktop-appliances/152912 Signed-off-by: Stan Grishin --- target/linux/x86/base-files/etc/board.d/01_leds | 7 +++++++ target/linux/x86/base-files/etc/board.d/02_network | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/target/linux/x86/base-files/etc/board.d/01_leds b/target/linux/x86/base-files/etc/board.d/01_leds index e639d10808..e41c78e62b 100644 --- a/target/linux/x86/base-files/etc/board.d/01_leds +++ b/target/linux/x86/base-files/etc/board.d/01_leds @@ -16,6 +16,13 @@ pc-engines-apu1|pc-engines-apu2|pc-engines-apu3|pc-engines-apu4|pc-engines-apu5| ucidef_set_led_netdev "lan" "LAN" "apu:green:2" "br-lan" ucidef_set_led_default "diag" "DIAG" "apu:green:1" "1" ;; +sophos-sg-105wr1|sophos-sg-125wr1|sophos-sg-135wr1|sophos-xg-105wr1|sophos-xg-125wr1|sophos-xg-135wr1) + ucidef_set_led_netdev "wlan" "WiFi" "ath9k-phy0" "phy0tpt" + ;; +sophos-sg-105wr2|sophos-sg-125wr2|sophos-sg-135wr2|sophos-xg-105wr2|sophos-xg-125wr2|sophos-xg-135wr2| +sophos-sg-105wr3|sophos-sg-125wr3|sophos-sg-135wr3|sophos-xg-105wr3|sophos-xg-125wr3|sophos-xg-135wr3) + ucidef_set_led_netdev "wlan" "WiFi" "ath10k-phy0" "phy0tpt" + ;; traverse-technologies-geos) ucidef_set_led_netdev "lan" "LAN" "geos:1" "br-lan" "tx rx" ucidef_set_led_netdev "wlan" "WiFi" "geos:2" "phy0tpt" diff --git a/target/linux/x86/base-files/etc/board.d/02_network b/target/linux/x86/base-files/etc/board.d/02_network index 094a45f914..e00e8c04dd 100644 --- a/target/linux/x86/base-files/etc/board.d/02_network +++ b/target/linux/x86/base-files/etc/board.d/02_network @@ -64,6 +64,10 @@ sophos-sg-135r2|sophos-xg-135r2| \ sophos-sg-135wr2|sophos-xg-135wr2) ucidef_set_interfaces_lan_wan "eth0 eth2 eth3 eth4 eth5 eth6 eth7" "eth1" ;; +sophos-sg-135r3|sophos-xg-135r3| \ +sophos-sg-135wr3|sophos-xg-135wr3) + ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3 eth5 eth7 eth8" "eth6" + ;; traverse-technologies-geos) ucidef_set_interface_lan "eth0 eth1" ucidef_add_atm_bridge "0" "35" "llc" "bridged" From d728d05c6cfe2c9071cc9fbe3edc5342ae8979a7 Mon Sep 17 00:00:00 2001 From: Nozomi Miyamori Date: Wed, 29 Mar 2023 21:15:13 +0900 Subject: [PATCH 22/26] dropbear: add ForceCommand uci option adds ForceCommand option. If the command is specified, it forces users to execute the command when they log in. Signed-off-by: Nozomi Miyamori Signed-off-by: Christian Lamparter --- package/network/services/dropbear/files/dropbear.init | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/network/services/dropbear/files/dropbear.init b/package/network/services/dropbear/files/dropbear.init index ea4cad2a8d..b82e967cbc 100755 --- a/package/network/services/dropbear/files/dropbear.init +++ b/package/network/services/dropbear/files/dropbear.init @@ -119,6 +119,7 @@ validate_section_dropbear() 'enable:bool:1' \ 'Interface:string' \ 'GatewayPorts:bool:0' \ + 'ForceCommand:string' \ 'RootPasswordAuth:bool:1' \ 'RootLogin:bool:1' \ 'rsakeyfile:file' \ @@ -158,6 +159,7 @@ dropbear_instance() procd_set_param command "$PROG" -F -P "$pid_file" [ "${PasswordAuth}" -eq 0 ] && procd_append_param command -s [ "${GatewayPorts}" -eq 1 ] && procd_append_param command -a + [ -n "${ForceCommand}" ] && procd_append_param command -c "${ForceCommand}" [ "${RootPasswordAuth}" -eq 0 ] && procd_append_param command -g [ "${RootLogin}" -eq 0 ] && procd_append_param command -w if [ -n "${rsakeyfile}" ]; then From 09d0643c188f0d08910e490b945f884dfdd866f2 Mon Sep 17 00:00:00 2001 From: DENG Qingfang Date: Thu, 13 Apr 2023 11:21:01 +0800 Subject: [PATCH 23/26] ramips: mt7621: fix Xiaomi Router 3G/Pro LEDs The PHY name has been changed to "mt7530-0" since IRQ support was added to MT7530 driver. Fixes: f9cfe7af1f1f ("kernel: backport MT7530 IRQ support") Signed-off-by: DENG Qingfang (node names, added color, function+function-enumerator properties) Signed-off-by: Christian Lamparter --- .../dts/mt7621_xiaomi_mi-router-3-pro.dts | 40 ++++++++++++++----- .../ramips/dts/mt7621_xiaomi_mi-router-3g.dts | 33 ++++++++++----- 2 files changed, 53 insertions(+), 20 deletions(-) diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-3-pro.dts b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-3-pro.dts index 64f588dc50..34d0e4a031 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-3-pro.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-3-pro.dts @@ -4,6 +4,7 @@ #include #include +#include / { compatible = "xiaomi,mi-router-3-pro", "mediatek,mt7621-soc"; @@ -24,43 +25,60 @@ leds { compatible = "gpio-leds"; - led_status_red: status_red { + led_status_red: led-0 { label = "red:status"; + color = ; + function = LED_FUNCTION_STATUS; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; - led_status_blue: status_blue { + led_status_blue: led-1 { label = "blue:status"; + color = ; + function = LED_FUNCTION_STATUS; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; - led_status_yellow: status_yellow { + led_status_yellow: led-2 { label = "yellow:status"; + color = ; + function = LED_FUNCTION_STATUS; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; - wan_amber { + led-3 { label = "amber:wan"; + color = ; + function = LED_FUNCTION_WAN; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; - linux,default-trigger = "dsa-0.0:04:1Gbps"; + linux,default-trigger = "mt7530-0:04:1Gbps"; }; - lan3_amber { + led-4 { label = "amber:lan3"; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <3>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "dsa-0.0:03:1Gbps"; + linux,default-trigger = "mt7530-0:03:1Gbps"; }; - lan2_amber { + led-5 { label = "amber:lan2"; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <2>; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - linux,default-trigger = "dsa-0.0:02:1Gbps"; + linux,default-trigger = "mt7530-0:02:1Gbps"; }; - lan1_amber { + led-6 { label = "amber:lan1"; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <1>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; - linux,default-trigger = "dsa-0.0:01:1Gbps"; + linux,default-trigger = "mt7530-0:01:1Gbps"; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-3g.dts b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-3g.dts index 1a19579208..c13c0c9570 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-3g.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-3g.dts @@ -1,4 +1,5 @@ #include "mt7621_xiaomi_nand_128m.dtsi" +#include / { compatible = "xiaomi,mi-router-3g", "mediatek,mt7621-soc"; @@ -15,37 +16,51 @@ leds { compatible = "gpio-leds"; - led_status_red: status_red { + led_status_red: led-0 { label = "red:status"; + color = ; + function = LED_FUNCTION_STATUS; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; - led_status_blue: status_blue { + led_status_blue: led-1 { label = "blue:status"; + color = ; + function = LED_FUNCTION_STATUS; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; - led_status_yellow: status_yellow { + led_status_yellow: led-2 { label = "yellow:status"; + color = ; + function = LED_FUNCTION_STATUS; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; - wan_amber { + led-3 { label = "amber:wan"; + color = ; + function = LED_FUNCTION_WAN; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "dsa-0.0:01:1Gbps"; + linux,default-trigger = "mt7530-0:01:1Gbps"; }; - lan1_amber { + led-4 { label = "amber:lan1"; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <1>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; - linux,default-trigger = "dsa-0.0:03:1Gbps"; + linux,default-trigger = "mt7530-0:03:1Gbps"; }; - lan2_amber { + led-5 { label = "amber:lan2"; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <2>; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - linux,default-trigger = "dsa-0.0:02:1Gbps"; + linux,default-trigger = "mt7530-0:02:1Gbps"; }; }; From 3f297be1ed49351282f26462a7aa6e03036a1ffc Mon Sep 17 00:00:00 2001 From: Felix Baumann Date: Fri, 19 May 2023 18:06:15 +0200 Subject: [PATCH 24/26] treewide: Disable building 16M RAM devices Following deprecation notice[1] in 21.02, disable targets with 16M of RAM [1] https://openwrt.org/supported_devices/864_warning Signed-off-by: Felix Baumann --- target/linux/bcm47xx/image/legacy.mk | 25 +++++++++++++++++++++++++ target/linux/bcm47xx/image/mips74k.mk | 4 ++++ 2 files changed, 29 insertions(+) diff --git a/target/linux/bcm47xx/image/legacy.mk b/target/linux/bcm47xx/image/legacy.mk index 448c5206f4..4c37a4505c 100644 --- a/target/linux/bcm47xx/image/legacy.mk +++ b/target/linux/bcm47xx/image/legacy.mk @@ -7,6 +7,7 @@ define Device/asus_wl-300g DEVICE_PACKAGES := kmod-b43 $(Device/asus) PRODUCTID := "WL300g " + DEFAULT := n endef TARGET_DEVICES += asus_wl-300g @@ -15,6 +16,7 @@ define Device/asus_wl-320gp DEVICE_PACKAGES := kmod-b43 $(Device/asus) PRODUCTID := "WL320gP " + DEFAULT := n endef TARGET_DEVICES += asus_wl-320gp @@ -23,6 +25,7 @@ define Device/asus_wl-330ge DEVICE_PACKAGES := kmod-b43 $(Device/asus) PRODUCTID := "WL-330gE " + DEFAULT := n endef TARGET_DEVICES += asus_wl-330ge @@ -31,6 +34,7 @@ define Device/asus_wl-500gd DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES) $(Device/asus) PRODUCTID := "WL500gx " + DEFAULT := n endef TARGET_DEVICES += asus_wl-500gd @@ -40,6 +44,7 @@ define Device/asus_wl-500gp-v1 DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES) $(Device/asus) PRODUCTID := "WL500gp " + DEFAULT := n endef TARGET_DEVICES += asus_wl-500gp-v1 @@ -49,6 +54,7 @@ define Device/asus_wl-500gp-v2 DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES) $(Device/asus) PRODUCTID := "WL500gpv2 " + DEFAULT := n endef TARGET_DEVICES += asus_wl-500gp-v2 @@ -65,6 +71,7 @@ define Device/asus_wl-520gu DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES) $(Device/asus) PRODUCTID := "WL520gu " + DEFAULT := n endef TARGET_DEVICES += asus_wl-520gu @@ -73,6 +80,7 @@ define Device/asus_wl-550ge DEVICE_PACKAGES := kmod-b43 $(Device/asus) PRODUCTID := "WL550gE " + DEFAULT := n endef TARGET_DEVICES += asus_wl-550ge @@ -81,6 +89,7 @@ define Device/asus_wl-hdd25 DEVICE_PACKAGES := kmod-b43 $(USB1_PACKAGES) $(Device/asus) PRODUCTID := "WLHDD " + DEFAULT := n endef TARGET_DEVICES += asus_wl-hdd25 @@ -99,6 +108,7 @@ define Device/edimax_ps1208-mfg DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES) IMAGES := bin IMAGE/bin := append-rootfs | trx-with-loader | edimax-bin + DEFAULT := n endef TARGET_DEVICES += edimax_ps1208-mfg @@ -118,6 +128,7 @@ define Device/linksys_wrt54g3g $(Device/linksys) DEVICE_ID := W54F VERSION := 2.20.1 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt54g3g @@ -126,6 +137,7 @@ define Device/linksys_wrt54g3g-em $(Device/linksys) DEVICE_ID := W3GN VERSION := 2.20.1 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt54g3g-em @@ -140,6 +152,7 @@ define Device/linksys_wrt54g3gv2-vf DEVICE_ID := 3G2V VERSION := 3.00.24 SERIAL := 6 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt54g3gv2-vf @@ -149,6 +162,7 @@ define Device/linksys_wrt54g $(Device/linksys) DEVICE_ID := W54G VERSION := 4.71.1 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt54g @@ -163,6 +177,7 @@ define Device/linksys_wrt54gs FILESYSTEMS := $(FS_128K) DEVICE_ID := W54S VERSION := 4.80.1 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt54gs @@ -173,6 +188,7 @@ define Device/linksys_wrt54gs-v4 $(Device/linksys) DEVICE_ID := W54s VERSION := 1.09.1 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt54gs-v4 @@ -183,6 +199,7 @@ define Device/linksys_wrtsl54gs FILESYSTEMS := $(FS_128K) DEVICE_ID := W54U VERSION := 2.08.1 + DEFAULT := n endef TARGET_DEVICES += linksys_wrtsl54gs @@ -192,6 +209,7 @@ define Device/linksys_wrt150n $(Device/linksys) DEVICE_ID := N150 VERSION := 1.51.3 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt150n @@ -221,6 +239,7 @@ define Device/motorola_wa840g DEVICE_PACKAGES := kmod-b43 $(Device/motorola) MOTOROLA_DEVICE := 2 + DEFAULT := n endef TARGET_DEVICES += motorola_wa840g @@ -229,6 +248,7 @@ define Device/motorola_we800g DEVICE_PACKAGES := kmod-b43 $(Device/motorola) MOTOROLA_DEVICE := 3 + DEFAULT := n endef TARGET_DEVICES += motorola_we800g @@ -237,6 +257,7 @@ define Device/motorola_wr850g DEVICE_PACKAGES := kmod-b43 $(Device/motorola) MOTOROLA_DEVICE := 1 + DEFAULT := n endef TARGET_DEVICES += motorola_wr850g @@ -247,6 +268,7 @@ define Device/netgear_wgr614-v8 $(Device/netgear) NETGEAR_BOARD_ID := U12H072T00_NETGEAR NETGEAR_REGION := 2 + DEFAULT := n endef TARGET_DEVICES += netgear_wgr614-v8 @@ -257,6 +279,7 @@ define Device/netgear_wgt634u FILESYSTEMS := $(FS_128K) IMAGES := bin IMAGE/bin := append-rootfs | trx-with-loader | prepend-with-elf + DEFAULT := n endef TARGET_DEVICES += netgear_wgt634u @@ -267,6 +290,7 @@ define Device/netgear_wndr3300-v1 $(Device/netgear) NETGEAR_BOARD_ID := U12H093T00_NETGEAR NETGEAR_REGION := 2 + DEFAULT := n endef TARGET_DEVICES += netgear_wndr3300-v1 @@ -277,6 +301,7 @@ define Device/netgear_wnr834b-v2 $(Device/netgear) NETGEAR_BOARD_ID := U12H081T00_NETGEAR NETGEAR_REGION := 2 + DEFAULT := n endef TARGET_DEVICES += netgear_wnr834b-v2 diff --git a/target/linux/bcm47xx/image/mips74k.mk b/target/linux/bcm47xx/image/mips74k.mk index 7e65821a55..4478374f16 100644 --- a/target/linux/bcm47xx/image/mips74k.mk +++ b/target/linux/bcm47xx/image/mips74k.mk @@ -24,6 +24,7 @@ define Device/asus_rt-n10 DEVICE_PACKAGES := kmod-b43 $(Device/asus) PRODUCTID := "RT-N10 " + DEFAULT := n endef TARGET_DEVICES += asus_rt-n10 @@ -323,6 +324,7 @@ define Device/netgear_wgr614-v10-na $(Device/netgear) NETGEAR_BOARD_ID := U12H139T01_NETGEAR NETGEAR_REGION := 2 + DEFAULT := n endef TARGET_DEVICES += netgear_wgr614-v10-na @@ -332,6 +334,7 @@ define Device/netgear_wgr614-v10 $(Device/netgear) NETGEAR_BOARD_ID := U12H139T01_NETGEAR NETGEAR_REGION := 1 + DEFAULT := n endef TARGET_DEVICES += netgear_wgr614-v10 @@ -420,6 +423,7 @@ define Device/netgear_wnr1000-v3 $(Device/netgear) NETGEAR_BOARD_ID := U12H139T00_NETGEAR NETGEAR_REGION := 2 + DEFAULT := n endef TARGET_DEVICES += netgear_wnr1000-v3 From f5cb556d4f70e7aac428857fe782b58ece0cf188 Mon Sep 17 00:00:00 2001 From: Felix Baumann Date: Sat, 20 May 2023 08:37:45 +0200 Subject: [PATCH 25/26] treewide: Disable building 32M RAM devices Following deprecation notice[1] in 21.02, disable targets with 32M of RAM [1] https://openwrt.org/supported_devices/864_warning Signed-off-by: Felix Baumann --- target/linux/ath79/image/generic-tp-link.mk | 6 +++ target/linux/ath79/image/generic.mk | 2 + target/linux/ath79/image/tiny-ubnt.mk | 7 +++ target/linux/ath79/image/tiny.mk | 1 + target/linux/bcm47xx/image/generic.mk | 3 ++ target/linux/bcm47xx/image/legacy.mk | 4 ++ target/linux/bcm47xx/image/mips74k.mk | 21 +++++++++ target/linux/bcm63xx/image/bcm63xx.mk | 18 ++++++++ target/linux/lantiq/image/ar9.mk | 1 + target/linux/lantiq/image/danube.mk | 2 + target/linux/lantiq/image/vr9.mk | 2 + target/linux/ramips/image/mt7620.mk | 5 +++ target/linux/ramips/image/mt76x8.mk | 2 + target/linux/ramips/image/rt288x.mk | 1 + target/linux/ramips/image/rt305x.mk | 48 +++++++++++++++++++++ target/linux/ramips/image/rt3883.mk | 1 + 16 files changed, 124 insertions(+) diff --git a/target/linux/ath79/image/generic-tp-link.mk b/target/linux/ath79/image/generic-tp-link.mk index 8336189293..cfabc89b8d 100644 --- a/target/linux/ath79/image/generic-tp-link.mk +++ b/target/linux/ath79/image/generic-tp-link.mk @@ -707,6 +707,7 @@ define Device/tplink_tl-wr1043nd-v1 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-switch-rtl8366rb TPLINK_HWID := 0x10430001 SUPPORTED_DEVICES += tl-wr1043nd + DEFAULT := n endef TARGET_DEVICES += tplink_tl-wr1043nd-v1 @@ -789,6 +790,7 @@ define Device/tplink_tl-wr710n-v1 DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-ledtrig-usbport TPLINK_HWID := 0x07100001 SUPPORTED_DEVICES += tl-wr710n + DEFAULT := n endef TARGET_DEVICES += tplink_tl-wr710n-v1 @@ -801,6 +803,7 @@ define Device/tplink_tl-wr710n-v2.1 TPLINK_HWID := 0x07100002 TPLINK_HWREV := 0x2 SUPPORTED_DEVICES += tl-wr710n + DEFAULT := n endef TARGET_DEVICES += tplink_tl-wr710n-v2.1 @@ -822,6 +825,7 @@ define Device/tplink_tl-wr810n-v2 DEVICE_VARIANT := v2 TPLINK_HWID := 0x8100002 SUPPORTED_DEVICES += tl-wr810n-v2 + DEFAULT := n endef TARGET_DEVICES += tplink_tl-wr810n-v2 @@ -851,6 +855,7 @@ define Device/tplink_tl-wr842n-v1 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport TPLINK_HWID := 0x8420001 SUPPORTED_DEVICES += tl-mr3420 + DEFAULT := n endef TARGET_DEVICES += tplink_tl-wr842n-v1 @@ -862,6 +867,7 @@ define Device/tplink_tl-wr842n-v2 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport TPLINK_HWID := 0x8420002 SUPPORTED_DEVICES += tl-wr842n-v2 + DEFAULT := n endef TARGET_DEVICES += tplink_tl-wr842n-v2 diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index d4a419501c..f8969a919c 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -2924,6 +2924,7 @@ define Device/wd_mynet-wifi-rangeextender IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | cybertan-trx | \ addpattern | append-metadata SUPPORTED_DEVICES += mynet-rext + DEFAULT := n endef TARGET_DEVICES += wd_mynet-wifi-rangeextender @@ -3014,6 +3015,7 @@ define Device/ziking_cpe46b DEVICE_MODEL := CPE46B IMAGE_SIZE := 8000k DEVICE_PACKAGES := kmod-i2c-gpio + DEFAULT := n endef TARGET_DEVICES += ziking_cpe46b diff --git a/target/linux/ath79/image/tiny-ubnt.mk b/target/linux/ath79/image/tiny-ubnt.mk index 805d193d45..0733371441 100644 --- a/target/linux/ath79/image/tiny-ubnt.mk +++ b/target/linux/ath79/image/tiny-ubnt.mk @@ -5,6 +5,7 @@ define Device/ubnt_airrouter SOC := ar7241 DEVICE_MODEL := AirRouter SUPPORTED_DEVICES += airrouter + DEFAULT := n endef TARGET_DEVICES += ubnt_airrouter @@ -14,6 +15,7 @@ define Device/ubnt_nanobridge-m DEVICE_MODEL := NanoBridge M DEVICE_PACKAGES += rssileds SUPPORTED_DEVICES += bullet-m + DEFAULT := n endef TARGET_DEVICES += ubnt_nanobridge-m @@ -24,6 +26,7 @@ define Device/ubnt_bullet-m-ar7240 DEVICE_VARIANT := XM (AR7240) DEVICE_PACKAGES += rssileds SUPPORTED_DEVICES += bullet-m + DEFAULT := n endef TARGET_DEVICES += ubnt_bullet-m-ar7240 @@ -34,6 +37,7 @@ define Device/ubnt_bullet-m-ar7241 DEVICE_VARIANT := XM (AR7241) DEVICE_PACKAGES += rssileds SUPPORTED_DEVICES += bullet-m ubnt,bullet-m + DEFAULT := n endef TARGET_DEVICES += ubnt_bullet-m-ar7241 @@ -43,6 +47,7 @@ define Device/ubnt_picostation-m DEVICE_MODEL := Picostation M DEVICE_PACKAGES += rssileds SUPPORTED_DEVICES += bullet-m + DEFAULT := n endef TARGET_DEVICES += ubnt_picostation-m @@ -52,6 +57,7 @@ define Device/ubnt_nanostation-m DEVICE_MODEL := Nanostation M DEVICE_PACKAGES += rssileds SUPPORTED_DEVICES += nanostation-m + DEFAULT := n endef TARGET_DEVICES += ubnt_nanostation-m @@ -61,6 +67,7 @@ define Device/ubnt_nanostation-loco-m DEVICE_MODEL := Nanostation Loco M DEVICE_PACKAGES += rssileds SUPPORTED_DEVICES += bullet-m + DEFAULT := n endef TARGET_DEVICES += ubnt_nanostation-loco-m diff --git a/target/linux/ath79/image/tiny.mk b/target/linux/ath79/image/tiny.mk index 0f355ef914..6baa3afff7 100644 --- a/target/linux/ath79/image/tiny.mk +++ b/target/linux/ath79/image/tiny.mk @@ -76,5 +76,6 @@ define Device/pqi_air-pen DEVICE_PACKAGES := kmod-usb-chipidea2 IMAGE_SIZE := 7680k SUPPORTED_DEVICES += pqi-air-pen + DEFAULT := n endef TARGET_DEVICES += pqi_air-pen diff --git a/target/linux/bcm47xx/image/generic.mk b/target/linux/bcm47xx/image/generic.mk index 94064cb7d1..5cab0fa932 100644 --- a/target/linux/bcm47xx/image/generic.mk +++ b/target/linux/bcm47xx/image/generic.mk @@ -10,6 +10,7 @@ define Device/linksys_wrt300n-v1.1 $(Device/linksys) DEVICE_ID := EWC2 VERSION := 1.51.2 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt300n-v1.1 @@ -20,6 +21,7 @@ define Device/linksys_wrt310n-v1 $(Device/linksys) DEVICE_ID := 310N VERSION := 1.0.10 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt310n-v1 @@ -30,6 +32,7 @@ define Device/linksys_wrt350n-v1 $(Device/linksys) DEVICE_ID := EWCG VERSION := 1.04.1 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt350n-v1 diff --git a/target/linux/bcm47xx/image/legacy.mk b/target/linux/bcm47xx/image/legacy.mk index 4c37a4505c..b21398deca 100644 --- a/target/linux/bcm47xx/image/legacy.mk +++ b/target/linux/bcm47xx/image/legacy.mk @@ -63,6 +63,7 @@ define Device/asus_wl-500w DEVICE_PACKAGES := kmod-b43 kmod-usb-uhci kmod-usb2-pci $(Device/asus) PRODUCTID := "WL500W " + DEFAULT := n endef TARGET_DEVICES += asus_wl-500w @@ -119,6 +120,7 @@ define Device/huawei_e970 KERNEL_NAME = vmlinux.gz IMAGES := bin IMAGE/bin := append-rootfs | trx-without-loader | huawei-bin + DEFAULT := n endef TARGET_DEVICES += huawei_e970 @@ -220,6 +222,7 @@ define Device/linksys_wrt160n-v1 $(Device/linksys) DEVICE_ID := N150 VERSION := 1.50.1 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt160n-v1 @@ -231,6 +234,7 @@ define Device/linksys_wrt300n-v1 IMAGES := bin trx DEVICE_ID := EWCB VERSION := 1.03.6 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt300n-v1 diff --git a/target/linux/bcm47xx/image/mips74k.mk b/target/linux/bcm47xx/image/mips74k.mk index 4478374f16..0f7610f3dd 100644 --- a/target/linux/bcm47xx/image/mips74k.mk +++ b/target/linux/bcm47xx/image/mips74k.mk @@ -34,6 +34,7 @@ define Device/asus_rt-n10p DEVICE_PACKAGES := kmod-b43 $(Device/asus) PRODUCTID := RT-N10P + DEFAULT := n endef TARGET_DEVICES += asus_rt-n10p @@ -42,6 +43,7 @@ define Device/asus_rt-n10p-v2 DEVICE_VARIANT := v2 $(Device/asus) PRODUCTID := RT-N10PV2 + DEFAULT := n endef TARGET_DEVICES += asus_rt-n10p-v2 @@ -51,6 +53,7 @@ define Device/asus_rt-n10u DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES) $(Device/asus) PRODUCTID := RT-N10U + DEFAULT := n endef TARGET_DEVICES += asus_rt-n10u @@ -60,6 +63,7 @@ define Device/asus_rt-n10u-b DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES) $(Device/asus) PRODUCTID := RT-N10U + DEFAULT := n endef TARGET_DEVICES += asus_rt-n10u-b @@ -69,6 +73,7 @@ define Device/asus_rt-n12 DEVICE_PACKAGES := kmod-b43 $(Device/asus) PRODUCTID := "RT-N12 " + DEFAULT := n endef TARGET_DEVICES += asus_rt-n12 @@ -77,6 +82,7 @@ define Device/asus_rt-n12-b1 DEVICE_VARIANT := B1 $(Device/asus) PRODUCTID := RT-N12B1 + DEFAULT := n endef TARGET_DEVICES += asus_rt-n12-b1 @@ -85,6 +91,7 @@ define Device/asus_rt-n12-c1 DEVICE_VARIANT := C1 $(Device/asus) PRODUCTID := RT-N12C1 + DEFAULT := n endef TARGET_DEVICES += asus_rt-n12-c1 @@ -93,6 +100,7 @@ define Device/asus_rt-n12-d1 DEVICE_VARIANT := D1 $(Device/asus) PRODUCTID := RT-N12D1 + DEFAULT := n endef TARGET_DEVICES += asus_rt-n12-d1 @@ -100,6 +108,7 @@ define Device/asus_rt-n12hp DEVICE_MODEL := RT-N12HP $(Device/asus) PRODUCTID := RT-N12HP + DEFAULT := n endef TARGET_DEVICES += asus_rt-n12hp @@ -132,6 +141,7 @@ define Device/asus_rt-n53 DEVICE_PACKAGES := kmod-b43 $(Device/asus) PRODUCTID := RT-N53 + DEFAULT := n endef TARGET_DEVICES += asus_rt-n53 @@ -169,6 +179,7 @@ define Device/linksys_wrt310n-v2 $(Device/linksys) DEVICE_ID := 310N VERSION := 2.0.1 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt310n-v2 @@ -179,6 +190,7 @@ define Device/linksys_wrt320n-v1 $(Device/linksys) DEVICE_ID := 320N VERSION := 1.0.5 + DEFAULT := n endef TARGET_DEVICES += linksys_wrt320n-v1 @@ -188,6 +200,7 @@ define Device/linksys_e900-v1 $(Device/linksys) DEVICE_ID := E900 VERSION := 1.0.4 + DEFAULT := n endef TARGET_DEVICES += linksys_e900-v1 @@ -198,6 +211,7 @@ define Device/linksys_e1000 $(Device/linksys) DEVICE_ID := E100 VERSION := 1.1.3 + DEFAULT := n endef TARGET_DEVICES += linksys_e1000 @@ -207,6 +221,7 @@ define Device/linksys_e1200-v1 $(Device/linksys) DEVICE_ID := E120 VERSION := 1.0.3 + DEFAULT := n endef TARGET_DEVICES += linksys_e1200-v1 @@ -216,6 +231,7 @@ define Device/linksys_e1200-v2 $(Device/linksys) DEVICE_ID := E122 VERSION := 1.0.4 + DEFAULT := n endef TARGET_DEVICES += linksys_e1200-v2 @@ -225,6 +241,7 @@ define Device/linksys_e1500-v1 $(Device/linksys) DEVICE_ID := E150 VERSION := 1.0.5 + DEFAULT := n endef TARGET_DEVICES += linksys_e1500-v1 @@ -245,6 +262,7 @@ define Device/linksys_e2000-v1 $(Device/linksys) DEVICE_ID := 32XN VERSION := 1.0.4 + DEFAULT := n endef TARGET_DEVICES += linksys_e2000-v1 @@ -353,6 +371,7 @@ define Device/netgear_wn3000rp $(Device/netgear) NETGEAR_BOARD_ID := U12H163T01_NETGEAR NETGEAR_REGION := 1 + DEFAULT := n endef TARGET_DEVICES += netgear_wn3000rp @@ -434,6 +453,7 @@ define Device/netgear_wnr2000v2 $(Device/netgear) NETGEAR_BOARD_ID := U12H114T00_NETGEAR NETGEAR_REGION := 2 + DEFAULT := n endef TARGET_DEVICES += netgear_wnr2000v2 @@ -486,6 +506,7 @@ define Device/netgear_wnr3500-v2 $(Device/netgear) NETGEAR_BOARD_ID := U12H127T00_NETGEAR NETGEAR_REGION := 2 + DEFAULT := n endef TARGET_DEVICES += netgear_wnr3500-v2 diff --git a/target/linux/bcm63xx/image/bcm63xx.mk b/target/linux/bcm63xx/image/bcm63xx.mk index 97959d7819..9c5cc9bce5 100644 --- a/target/linux/bcm63xx/image/bcm63xx.mk +++ b/target/linux/bcm63xx/image/bcm63xx.mk @@ -210,6 +210,7 @@ define Device/adb_a4001n CHIP_ID := 6328 FLASH_MB := 8 DEVICE_PACKAGES := $(USB2_PACKAGES) $(B43_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += adb_a4001n @@ -222,6 +223,7 @@ define Device/adb_a4001n1 CHIP_ID := 6328 FLASH_MB := 16 DEVICE_PACKAGES := $(USB2_PACKAGES) $(B43_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += adb_a4001n1 @@ -234,6 +236,7 @@ define Device/adb_pdg-a4001n-a-000-1a1-ax CHIP_ID := 6328 FLASH_MB := 16 DEVICE_PACKAGES := $(USB2_PACKAGES) $(B43_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += adb_pdg-a4001n-a-000-1a1-ax @@ -269,6 +272,7 @@ define Device/alcatel_rg100a CHIP_ID := 6358 BLOCK_SIZE := 0x20000 DEVICE_PACKAGES := $(USB2_PACKAGES) $(B43_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += alcatel_rg100a @@ -448,6 +452,7 @@ define Device/comtrend_ct-6373 CFE_BOARD_ID := CT6373-1 CHIP_ID := 6358 DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += comtrend_ct-6373 @@ -532,6 +537,7 @@ define Device/d-link_dsl-2650u CFE_BOARD_ID := 96358VW2 CHIP_ID := 6358 DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += d-link_dsl-2650u @@ -593,6 +599,7 @@ define Device/d-link_dsl-2750u-c1 CHIP_ID := 6328 FLASH_MB := 8 DEVICE_PACKAGES := $(USB2_PACKAGES) $(B43_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += d-link_dsl-2750u-c1 @@ -618,6 +625,7 @@ define Device/d-link_dva-g3810bn-tl CFE_BOARD_ID := 96358VW CHIP_ID := 6358 DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += d-link_dva-g3810bn-tl @@ -765,6 +773,7 @@ define Device/huawei_echolife-hg622 BLOCK_SIZE := 0x20000 FLASH_MB := 16 DEVICE_PACKAGES := $(RT28_PACKAGES) $(USB2_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += huawei_echolife-hg622 @@ -825,6 +834,7 @@ define Device/netgear_cvg834g HCS_MAGIC_BYTES := 0xa020 HCS_REV_MIN := 0001 HCS_REV_MAJ := 0022 + DEFAULT := n endef TARGET_DEVICES += netgear_cvg834g @@ -930,6 +940,7 @@ define Device/pirelli_a226g CHIP_ID := 6358 CFE_EXTRAS += --signature2 IMAGE --tag-version 8 DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += pirelli_a226g @@ -941,6 +952,7 @@ define Device/pirelli_a226m CHIP_ID := 6358 CFE_EXTRAS += --signature2 IMAGE --tag-version 8 DEVICE_PACKAGES := $(USB2_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += pirelli_a226m @@ -965,6 +977,7 @@ define Device/pirelli_agpf-s0 CFE_EXTRAS += --signature2 IMAGE --tag-version 8 BLOCK_SIZE := 0x20000 DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += pirelli_agpf-s0 @@ -1009,6 +1022,7 @@ define Device/sagem_fast-2704n CHIP_ID := 6318 FLASH_MB := 8 DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += sagem_fast-2704n @@ -1046,6 +1060,7 @@ define Device/sfr_neufbox-4-sercomm-r0 CHIP_ID := 6358 CFE_EXTRAS += --rsa-signature "$(VERSION_DIST)-$(firstword $(subst -,$(space),$(REVISION)))" DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += sfr_neufbox-4-sercomm-r0 @@ -1058,6 +1073,7 @@ define Device/sfr_neufbox-4-foxconn-r1 CHIP_ID := 6358 CFE_EXTRAS += --rsa-signature "$(VERSION_DIST)-$(firstword $(subst -,$(space),$(REVISION)))" DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += sfr_neufbox-4-foxconn-r1 @@ -1096,6 +1112,7 @@ define Device/t-com_speedport-w-303v CFE_BOARD_ID := 96358-502V CHIP_ID := 6358 DEVICE_PACKAGES := $(B43_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += t-com_speedport-w-303v @@ -1182,6 +1199,7 @@ define Device/telsey_cpva642 CFE_EXTRAS += --signature "Telsey Tlc" --signature2 "99.99.999" --second-image-flag "0" FLASH_MB := 8 DEVICE_PACKAGES := $(RT63_PACKAGES) $(USB2_PACKAGES) + DEFAULT := n endef TARGET_DEVICES += telsey_cpva642 diff --git a/target/linux/lantiq/image/ar9.mk b/target/linux/lantiq/image/ar9.mk index 9a0d68433c..3a301f3655 100644 --- a/target/linux/lantiq/image/ar9.mk +++ b/target/linux/lantiq/image/ar9.mk @@ -154,6 +154,7 @@ define Device/zte_h201l kmod-usb-dwc2 kmod-usb-ledtrig-usbport \ kmod-ltq-tapi kmod-ltq-vmmc SUPPORTED_DEVICES += H201L + DEFAULT := n endef TARGET_DEVICES += zte_h201l diff --git a/target/linux/lantiq/image/danube.mk b/target/linux/lantiq/image/danube.mk index a54cb3117d..c2bf7e798b 100644 --- a/target/linux/lantiq/image/danube.mk +++ b/target/linux/lantiq/image/danube.mk @@ -12,6 +12,7 @@ define Device/arcadyan_arv4510pw kmod-ltq-tapi kmod-ltq-vmmc \ kmod-rt2800-pci kmod-ath5k wpad-basic-mbedtls SUPPORTED_DEVICES += ARV4510PW + DEFAULT := n endef TARGET_DEVICES += arcadyan_arv4510pw @@ -219,5 +220,6 @@ define Device/siemens_gigaset-sx76x ltq-adsl-app ppp-mod-pppoe \ kmod-ath5k wpad-basic-mbedtls SUPPORTED_DEVICES += GIGASX76X + DEFAULT := n endef TARGET_DEVICES += siemens_gigaset-sx76x diff --git a/target/linux/lantiq/image/vr9.mk b/target/linux/lantiq/image/vr9.mk index f3149bf2c0..3c05636f56 100644 --- a/target/linux/lantiq/image/vr9.mk +++ b/target/linux/lantiq/image/vr9.mk @@ -12,6 +12,7 @@ define Device/alphanetworks_asl56026 DEVICE_ALT0_VENDOR := BT Openreach DEVICE_ALT0_MODEL := ECI VDSL Modem V-2FUb/I IMAGE_SIZE := 7488k + DEFAULT := n endef TARGET_DEVICES += alphanetworks_asl56026 @@ -38,6 +39,7 @@ define Device/arcadyan_vg3503j DEVICE_MODEL := ECI VDSL Modem V-2FUb/R IMAGE_SIZE := 8000k SUPPORTED_DEVICES += VG3503J + DEFAULT := n endef TARGET_DEVICES += arcadyan_vg3503j diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index 621162c970..7c2ff740f0 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -124,6 +124,7 @@ define Device/asus_rt-n12p DEVICE_VENDOR := ASUS DEVICE_MODEL := RT-N11P/RT-N12+/RT-N12Eb1 SUPPORTED_DEVICES += rt-n12p + DEFAULT := n endef TARGET_DEVICES += asus_rt-n12p @@ -191,6 +192,7 @@ define Device/comfast_cf-wr800n DEVICE_VENDOR := Comfast DEVICE_MODEL := CF-WR800N SUPPORTED_DEVICES += cf-wr800n + DEFAULT := n endef TARGET_DEVICES += comfast_cf-wr800n @@ -241,6 +243,7 @@ define Device/dlink_dwr-116-a1 DLINK_ROM_ID := DLK6E3803001 DLINK_FAMILY_MEMBER := 0x6E38 DLINK_FIRMWARE_SIZE := 0x7E0000 + DEFAULT := n endef TARGET_DEVICES += dlink_dwr-116-a1 @@ -853,6 +856,7 @@ define Device/netgear_wn3000rp-v3 DEVICE_MODEL := WN3000RP DEVICE_VARIANT := v3 SUPPORTED_DEVICES += wn3000rpv3 + DEFAULT := n endef TARGET_DEVICES += netgear_wn3000rp-v3 @@ -1438,6 +1442,7 @@ define Device/zbtlink_zbt-wr8305rt DEVICE_MODEL := ZBT-WR8305RT DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci SUPPORTED_DEVICES += zbt-wr8305rt + DEFAULT := n endef TARGET_DEVICES += zbtlink_zbt-wr8305rt diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index 22db5c1382..816009ac18 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -68,6 +68,7 @@ define Device/asus_rt-n10p-v3 DEVICE_VENDOR := ASUS DEVICE_MODEL := RT-N10P DEVICE_VARIANT := V3 + DEFAULT := n endef TARGET_DEVICES += asus_rt-n10p-v3 @@ -82,6 +83,7 @@ define Device/asus_rt-n11p-b1 DEVICE_ALT1_VENDOR := ASUS DEVICE_ALT1_MODEL := RT-N300 DEVICE_ALT1_VARIANT := B1 + DEFAULT := n endef TARGET_DEVICES += asus_rt-n11p-b1 diff --git a/target/linux/ramips/image/rt288x.mk b/target/linux/ramips/image/rt288x.mk index c93d7d78e5..0fdb35d963 100644 --- a/target/linux/ramips/image/rt288x.mk +++ b/target/linux/ramips/image/rt288x.mk @@ -54,6 +54,7 @@ define Device/belkin_f5d8235-v1 DEVICE_PACKAGES := kmod-switch-rtl8366s kmod-usb-ohci kmod-usb-ohci-pci \ kmod-usb2 kmod-usb2-pci kmod-usb-ledtrig-usbport SUPPORTED_DEVICES += f5d8235-v1 + DEFAULT := n endef TARGET_DEVICES += belkin_f5d8235-v1 diff --git a/target/linux/ramips/image/rt305x.mk b/target/linux/ramips/image/rt305x.mk index 83658cffa2..815e03a8d4 100644 --- a/target/linux/ramips/image/rt305x.mk +++ b/target/linux/ramips/image/rt305x.mk @@ -43,6 +43,7 @@ define Device/7links_px-4885-8m DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci \ kmod-usb-ledtrig-usbport kmod-leds-gpio SUPPORTED_DEVICES += px-4885-8M + DEFAULT := n endef TARGET_DEVICES += 7links_px-4885-8m @@ -53,6 +54,7 @@ define Device/8devices_carambola DEVICE_MODEL := Carambola DEVICE_PACKAGES := SUPPORTED_DEVICES += carambola + DEFAULT := n endef TARGET_DEVICES += 8devices_carambola @@ -62,6 +64,7 @@ define Device/accton_wr6202 DEVICE_VENDOR := Accton DEVICE_MODEL := WR6202 SUPPORTED_DEVICES += wr6202 + DEFAULT := n endef TARGET_DEVICES += accton_wr6202 @@ -81,6 +84,7 @@ define Device/alfa-network_w502u DEVICE_VENDOR := ALFA DEVICE_MODEL := Networks W502U SUPPORTED_DEVICES += w502u + DEFAULT := n endef TARGET_DEVICES += alfa-network_w502u @@ -104,6 +108,7 @@ define Device/allnet_all0256n-8m DEVICE_VARIANT := 8M DEVICE_PACKAGES := rssileds SUPPORTED_DEVICES += all0256n-8M + DEFAULT := n endef TARGET_DEVICES += allnet_all0256n-8m @@ -127,6 +132,7 @@ define Device/allnet_all5003 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \ kmod-i2c-gpio kmod-hwmon-lm92 kmod-gpio-pcf857x SUPPORTED_DEVICES += all5003 + DEFAULT := n endef TARGET_DEVICES += allnet_all5003 @@ -138,6 +144,7 @@ define Device/alphanetworks_asl26555-16m DEVICE_VARIANT := 16M DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport SUPPORTED_DEVICES += asl26555 asl26555-16M + DEFAULT := n endef TARGET_DEVICES += alphanetworks_asl26555-16m @@ -148,6 +155,7 @@ define Device/alphanetworks_asl26555-8m DEVICE_MODEL := ASL26555 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport SUPPORTED_DEVICES += asl26555 asl26555-8M + DEFAULT := n endef TARGET_DEVICES += alphanetworks_asl26555-8m @@ -159,6 +167,7 @@ define Device/arcwireless_freestation5 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-rt2500-usb kmod-rt2800-usb \ kmod-rt2x00-usb SUPPORTED_DEVICES += freestation5 + DEFAULT := n endef TARGET_DEVICES += arcwireless_freestation5 @@ -201,6 +210,7 @@ define Device/asiarf_awm002-evb-8m DEVICE_VARIANT := 8M DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-gpio SUPPORTED_DEVICES += awm002-evb-8M + DEFAULT := n endef TARGET_DEVICES += asiarf_awm002-evb-8m @@ -232,6 +242,7 @@ define Device/asus_rt-n13u DEVICE_MODEL := RT-N13U DEVICE_PACKAGES := kmod-leds-gpio kmod-rt2800-pci kmod-usb-dwc2 SUPPORTED_DEVICES += rt-n13u + DEFAULT := n endef TARGET_DEVICES += asus_rt-n13u @@ -262,6 +273,7 @@ define Device/aximcom_mr-102n DEVICE_VENDOR := AXIMCom DEVICE_MODEL := MR-102N SUPPORTED_DEVICES += mr-102n + DEFAULT := n endef TARGET_DEVICES += aximcom_mr-102n @@ -274,6 +286,7 @@ define Device/aztech_hw550-3g DEVICE_ALT0_MODEL := ALL0239-3G DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport SUPPORTED_DEVICES += hw550-3g + DEFAULT := n endef TARGET_DEVICES += aztech_hw550-3g @@ -285,6 +298,7 @@ define Device/belkin_f5d8235-v2 DEVICE_VARIANT := v2 DEVICE_PACKAGES := kmod-switch-rtl8366rb SUPPORTED_DEVICES += f5d8235-v2 + DEFAULT := n endef TARGET_DEVICES += belkin_f5d8235-v2 @@ -294,6 +308,7 @@ define Device/belkin_f7c027 DEVICE_VENDOR := Belkin DEVICE_MODEL := F7C027 SUPPORTED_DEVICES += f7c027 + DEFAULT := n endef TARGET_DEVICES += belkin_f7c027 @@ -320,6 +335,7 @@ define Device/dlink_dap-1350 DEVICE_VENDOR := D-Link DEVICE_MODEL := DAP-1350 SUPPORTED_DEVICES += dap-1350 + DEFAULT := n endef TARGET_DEVICES += dlink_dap-1350 @@ -369,6 +385,7 @@ define Device/dlink_dir-300-b7 DEVICE_MODEL := DIR-300 DEVICE_VARIANT := B7 SUPPORTED_DEVICES += dir-300-b7 + DEFAULT := n endef TARGET_DEVICES += dlink_dir-300-b7 @@ -379,6 +396,7 @@ define Device/dlink_dir-320-b1 DEVICE_MODEL := DIR-320 DEVICE_VARIANT := B1 SUPPORTED_DEVICES += dir-320-b1 + DEFAULT := n endef TARGET_DEVICES += dlink_dir-320-b1 @@ -445,6 +463,7 @@ define Device/dlink_dir-620-a1 DEVICE_MODEL := DIR-620 DEVICE_VARIANT := A1 SUPPORTED_DEVICES += dir-620-a1 + DEFAULT := n endef TARGET_DEVICES += dlink_dir-620-a1 @@ -455,6 +474,7 @@ define Device/dlink_dir-620-d1 DEVICE_MODEL := DIR-620 DEVICE_VARIANT := D1 SUPPORTED_DEVICES += dir-620-d1 + DEFAULT := n endef TARGET_DEVICES += dlink_dir-620-d1 @@ -474,6 +494,7 @@ define Device/dlink_dwr-512-b IMAGE/sysupgrade.bin := mkdlinkfw | pad-rootfs | append-metadata IMAGE/factory.bin := mkdlinkfw | pad-rootfs | mkdlinkfw-factory SUPPORTED_DEVICES += dwr-512-b + DEFAULT := n endef TARGET_DEVICES += dlink_dwr-512-b @@ -484,6 +505,7 @@ define Device/easyacc_wizard-8800 DEVICE_VENDOR := EasyAcc DEVICE_MODEL := WIZARD 8800 SUPPORTED_DEVICES += wizard8800 + DEFAULT := n endef TARGET_DEVICES += easyacc_wizard-8800 @@ -558,6 +580,7 @@ define Device/hame_mpr-a2 DEVICE_VARIANT := A2 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 SUPPORTED_DEVICES += mpr-a2 + DEFAULT := n endef TARGET_DEVICES += hame_mpr-a2 @@ -611,6 +634,7 @@ define Device/huawei_hg255d DEVICE_VENDOR := HuaWei DEVICE_MODEL := HG255D SUPPORTED_DEVICES += hg255d + DEFAULT := n endef TARGET_DEVICES += huawei_hg255d @@ -623,6 +647,7 @@ define Device/intenso_memory2move DEVICE_PACKAGES := kmod-usb2 kmod-usb-storage kmod-scsi-core kmod-fs-ext4 \ kmod-fs-vfat block-mount SUPPORTED_DEVICES += m2m + DEFAULT := n endef TARGET_DEVICES += intenso_memory2move @@ -668,6 +693,7 @@ define Device/mofinetwork_mofi3500-3gn DEVICE_VENDOR := MoFi Network DEVICE_MODEL := MOFI3500-3GN SUPPORTED_DEVICES += mofi3500-3gn + DEFAULT := n endef TARGET_DEVICES += mofinetwork_mofi3500-3gn @@ -730,6 +756,7 @@ define Device/nexx_wt1520-8m DEVICE_MODEL := WT1520 DEVICE_VARIANT := 8M SUPPORTED_DEVICES += wt1520-8M + DEFAULT := n endef TARGET_DEVICES += nexx_wt1520-8m @@ -741,6 +768,7 @@ define Device/nixcore_x1-16m DEVICE_VARIANT := 16M DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev SUPPORTED_DEVICES += nixcore-x1 nixcore-x1-16M + DEFAULT := n endef TARGET_DEVICES += nixcore_x1-16m @@ -752,6 +780,7 @@ define Device/nixcore_x1-8m DEVICE_VARIANT := 8M DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev SUPPORTED_DEVICES += nixcore-x1 nixcore-x1-8M + DEFAULT := n endef TARGET_DEVICES += nixcore_x1-8m @@ -763,6 +792,7 @@ define Device/olimex_rt5350f-olinuxino DEVICE_MODEL := RT5350F-OLinuXino DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev SUPPORTED_DEVICES += rt5350f-olinuxino + DEFAULT := n endef TARGET_DEVICES += olimex_rt5350f-olinuxino @@ -774,6 +804,7 @@ define Device/olimex_rt5350f-olinuxino-evb DEVICE_MODEL := RT5350F-OLinuXino-EVB DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev SUPPORTED_DEVICES += rt5350f-olinuxino-evb + DEFAULT := n endef TARGET_DEVICES += olimex_rt5350f-olinuxino-evb @@ -792,6 +823,7 @@ define Device/omnima_miniembwifi DEVICE_VENDOR := Omnima DEVICE_MODEL := MiniEMBWiFi SUPPORTED_DEVICES += miniembwifi + DEFAULT := n endef TARGET_DEVICES += omnima_miniembwifi @@ -835,6 +867,7 @@ define Device/planex_mzk-wdpr DEVICE_VENDOR := Planex DEVICE_MODEL := MZK-WDPR SUPPORTED_DEVICES += mzk-wdpr + DEFAULT := n endef TARGET_DEVICES += planex_mzk-wdpr @@ -887,6 +920,7 @@ define Device/poray_m4-8m DEVICE_VARIANT := 8M DEVICE_PACKAGES := kmod-usb2 SUPPORTED_DEVICES += m4-8M + DEFAULT := n endef TARGET_DEVICES += poray_m4-8m @@ -900,6 +934,7 @@ define Device/poray_x5 DEVICE_MODEL := X5/X6 DEVICE_PACKAGES := kmod-usb2 SUPPORTED_DEVICES += x5 + DEFAULT := n endef TARGET_DEVICES += poray_x5 @@ -913,6 +948,7 @@ define Device/poray_x8 DEVICE_MODEL := X8 DEVICE_PACKAGES := kmod-usb2 SUPPORTED_DEVICES += x8 + DEFAULT := n endef TARGET_DEVICES += poray_x8 @@ -923,6 +959,7 @@ define Device/prolink_pwh2004 DEVICE_MODEL := PWH2004 DEVICE_PACKAGES := SUPPORTED_DEVICES += pwh2004 + DEFAULT := n endef TARGET_DEVICES += prolink_pwh2004 @@ -973,6 +1010,7 @@ define Device/teltonika_rut5xx DEVICE_VENDOR := Teltonika DEVICE_MODEL := RUT5XX SUPPORTED_DEVICES += rut5xx + DEFAULT := n endef TARGET_DEVICES += teltonika_rut5xx @@ -1042,6 +1080,7 @@ define Device/trendnet_tew-714tru DEVICE_VENDOR := TRENDnet DEVICE_MODEL := TEW-714TRU SUPPORTED_DEVICES += tew-714tru + DEFAULT := n endef TARGET_DEVICES += trendnet_tew-714tru @@ -1077,6 +1116,7 @@ define Device/unbranded_wr512-3gn-8m DEVICE_MODEL := WR512-3GN DEVICE_VARIANT := 8M SUPPORTED_DEVICES += wr512-3gn-8M + DEFAULT := n endef TARGET_DEVICES += unbranded_wr512-3gn-8m @@ -1108,6 +1148,7 @@ define Device/upvel_ur-336un DEVICE_MODEL := UR-336UN DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport SUPPORTED_DEVICES += ur-336un + DEFAULT := n endef TARGET_DEVICES += upvel_ur-336un @@ -1119,6 +1160,7 @@ define Device/vocore_vocore-16m DEVICE_VARIANT := 16M DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev SUPPORTED_DEVICES += vocore vocore-16M + DEFAULT := n endef TARGET_DEVICES += vocore_vocore-16m @@ -1130,6 +1172,7 @@ define Device/vocore_vocore-8m DEVICE_VARIANT := 8M DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev SUPPORTED_DEVICES += vocore vocore-8M + DEFAULT := n endef TARGET_DEVICES += vocore_vocore-8m @@ -1149,6 +1192,7 @@ define Device/wiznet_wizfi630a DEVICE_VENDOR := WIZnet DEVICE_MODEL := WizFi630A SUPPORTED_DEVICES += wizfi630a + DEFAULT := n endef TARGET_DEVICES += wiznet_wizfi630a @@ -1158,6 +1202,7 @@ define Device/zorlik_zl5900v2 DEVICE_VENDOR := Zorlik DEVICE_MODEL := ZL5900V2 DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 + DEFAULT := n endef TARGET_DEVICES += zorlik_zl5900v2 @@ -1180,6 +1225,7 @@ define Device/zyxel_keenetic DEVICE_PACKAGES := kmod-usb2 kmod-usb-ehci kmod-usb-ledtrig-usbport \ kmod-usb-dwc2 SUPPORTED_DEVICES += kn + DEFAULT := n endef TARGET_DEVICES += zyxel_keenetic @@ -1190,6 +1236,7 @@ define Device/zyxel_keenetic-4g-b DEVICE_VENDOR := ZyXEL DEVICE_MODEL := Keenetic 4G DEVICE_VARIANT := B + DEFAULT := n endef TARGET_DEVICES += zyxel_keenetic-4g-b @@ -1200,6 +1247,7 @@ define Device/zyxel_keenetic-lite-b DEVICE_VENDOR := ZyXEL DEVICE_MODEL := Keenetic Lite DEVICE_VARIANT := B + DEFAULT := n endef TARGET_DEVICES += zyxel_keenetic-lite-b diff --git a/target/linux/ramips/image/rt3883.mk b/target/linux/ramips/image/rt3883.mk index 0d12aa0a40..0430099296 100644 --- a/target/linux/ramips/image/rt3883.mk +++ b/target/linux/ramips/image/rt3883.mk @@ -72,6 +72,7 @@ define Device/loewe_wmdr-143n DEVICE_VENDOR := Loewe DEVICE_MODEL := WMDR-143N SUPPORTED_DEVICES += wmdr-143n + DEFAULT := n endef TARGET_DEVICES += loewe_wmdr-143n From 066441b5e4919ab6a59a41f00209b8c8d19dc8a5 Mon Sep 17 00:00:00 2001 From: Felix Baumann Date: Sat, 20 May 2023 09:07:44 +0200 Subject: [PATCH 26/26] treewide: Disable building 8M RAM devices Following deprecation notice[1] in 21.02, disable target with 8M of RAM [1] https://openwrt.org/supported_devices/864_warning Signed-off-by: Felix Baumann --- target/linux/bcm47xx/image/legacy.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/bcm47xx/image/legacy.mk b/target/linux/bcm47xx/image/legacy.mk index b21398deca..3c682d37e7 100644 --- a/target/linux/bcm47xx/image/legacy.mk +++ b/target/linux/bcm47xx/image/legacy.mk @@ -315,6 +315,7 @@ define Device/usrobotics_usr5461 DEVICE_PACKAGES := kmod-b43 $(USB1_PACKAGES) IMAGES := bin IMAGE/bin := append-rootfs | trx-with-loader | usrobotics-bin + DEFAULT := n endef TARGET_DEVICES += usrobotics_usr5461