[PATCH 2/2] gemini: Convert to use module for Realtek switch
Linus Walleij
linus.walleij at linaro.org
Sun Jan 12 15:14:10 PST 2025
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.
Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
target/linux/gemini/config-6.6 | 7 -------
target/linux/gemini/image/Makefile | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/target/linux/gemini/config-6.6 b/target/linux/gemini/config-6.6
index 2e590540afa95fdc52d5d17f4592b37cf45b7f93..c2e0cdd488ae0a4913a58b5f74297f96faf2252f 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 a7988cf5fbefd7e2c11dd8d024053e80074ad9d2..8f7bb6ad923f907e9a484516b1cd5a0af182c20d 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-realtek-smi
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
--
2.47.1
More information about the openwrt-devel
mailing list