From: Linus Walleij Date: Sun, 12 Jan 2025 00:08:17 +0000 (+0100) Subject: gemini: Convert to use module for Realtek switch X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=78b78a426834d2077d2cac9054b4043ec296c7e6;p=openwrt%2Fstaging%2Fstintel.git gemini: Convert to use module for Realtek switch Only the DIR-685 uses a Realtek DSA switch currently so convert this platform to load it from a module and save memory on all other devices. At the same time drop the rt2800 PCI package that this device actually isn't using, it needs an out-of-tree wireless driver. Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250207-gemini-rtl-dsa-module-v3-1-e25a3df8bdc0@linaro.org/ Signed-off-by: Linus Walleij --- diff --git a/target/linux/gemini/config-6.6 b/target/linux/gemini/config-6.6 index 2e590540af..c2e0cdd488 100644 --- a/target/linux/gemini/config-6.6 +++ b/target/linux/gemini/config-6.6 @@ -287,13 +287,6 @@ CONFIG_NEED_KUSER_HELPERS=y CONFIG_NEED_PER_CPU_KM=y CONFIG_NEED_SRCU_NMI_SAFE=y CONFIG_NET_DEVLINK=y -CONFIG_NET_DSA=y -CONFIG_NET_DSA_REALTEK=y -# CONFIG_NET_DSA_REALTEK_MDIO is not set -# CONFIG_NET_DSA_REALTEK_RTL8365MB is not set -CONFIG_NET_DSA_REALTEK_RTL8366RB=y -CONFIG_NET_DSA_REALTEK_SMI=y -CONFIG_NET_DSA_TAG_RTL4_A=y CONFIG_NET_EGRESS=y CONFIG_NET_INGRESS=y CONFIG_NET_NS=y diff --git a/target/linux/gemini/image/Makefile b/target/linux/gemini/image/Makefile index a7988cf5fb..389c8f8c44 100644 --- a/target/linux/gemini/image/Makefile +++ b/target/linux/gemini/image/Makefile @@ -158,7 +158,7 @@ define Device/dlink_dir-685 DEVICE_MODEL := DIR-685 Xtreme N Storage Router DEVICE_DTS := gemini-dlink-dir-685 DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES) \ - kmod-rt2800-pci + kmod-dsa-rtl8366rb IMAGES := factory.bin sysupgrade.bin # Pad to 128k erase blocks with 160 bytes WRGG header IMAGE/factory.bin := append-kernel | pad-offset 128k 160 | append-rootfs | dir685-pad-rootfs | dir685-image