From b88c9f7877a8572b1edf2b20435d6f4bba3f1731 Mon Sep 17 00:00:00 2001 From: "A.Kasper" Date: Mon, 12 Oct 2015 04:19:05 +0200 Subject: [PATCH] kernel: add kernel modules for rtl8150 and rtl8152 based usb-to-ethernet converters This patch adds the kernel modules to for the very common Realtek RTL8150 and Realtek 8152 based USB-to-Ethernet converters. After this patch the following packages can be added to targets (or site.mk): kmod-usb-net-rtl8150 kmod-usb-net-rtl8152 The modules are already available in openwrt trunk, but not in Chaos Calmer. This patch is just a temporary backport. The modules are needed for Futros with additional USB-Ethernet-Interface and VMs with dedicated USB-NIC --- ...152-based-USB-to-Ethernet-converters.patch | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 patches/openwrt/0027-Kernel-Realtek-8150-and-Realtek-8152-based-USB-to-Ethernet-converters.patch diff --git a/patches/openwrt/0027-Kernel-Realtek-8150-and-Realtek-8152-based-USB-to-Ethernet-converters.patch b/patches/openwrt/0027-Kernel-Realtek-8150-and-Realtek-8152-based-USB-to-Ethernet-converters.patch new file mode 100644 index 00000000..b726c97b --- /dev/null +++ b/patches/openwrt/0027-Kernel-Realtek-8150-and-Realtek-8152-based-USB-to-Ethernet-converters.patch @@ -0,0 +1,49 @@ +From: Andre Kasper +Date: Mon, 12 Oct 2015 02:31:05 +0200 +Subject: Kernel: Realtek 8150 and Realtek 8152 based USB-to-Ethernet converters + +This patch adds the kernel modules to for the very common Realtek RTL8150 and Realtek 8152 based USB-to-Ethernet converters. +After this patch the following packages can be added to targets (or site.mk): +kmod-usb-net-rtl8150 +kmod-usb-net-rtl8152 + +The modules are already available in openwrt trunk, but not in Chaos Calmer. This patch is just a temporary backport. +The modules are needed for Futros with additional USB-Ethernet-Interface and VMs with dedicated USB-NIC + +diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk +index d1ff455..86f452e 100644 +--- a/package/kernel/linux/modules/usb.mk ++++ b/package/kernel/linux/modules/usb.mk +@@ -1554,3 +1554,32 @@ define KernelPackage/usb3/description + endef + + $(eval $(call KernelPackage,usb3)) ++ ++define KernelPackage/usb-net-rtl8150 ++ TITLE:=Kernel module for USB-to-Ethernet Realtek convertors ++ KCONFIG:=CONFIG_USB_RTL8150 ++ FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/rtl8150.ko ++ AUTOLOAD:=$(call AutoProbe,rtl8150) ++ $(call AddDepends/usb-net) ++endef ++ ++define KernelPackage/usb-net-rtl8150/description ++ Kernel module for USB-to-Ethernet Realtek 8150 convertors ++endef ++ ++$(eval $(call KernelPackage,usb-net-rtl8150)) ++ ++ ++define KernelPackage/usb-net-rtl8152 ++ TITLE:=Kernel module for USB-to-Ethernet Realtek convertors ++ KCONFIG:=CONFIG_USB_RTL8152 ++ FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/r8152.ko ++ AUTOLOAD:=$(call AutoProbe,r8152) ++ $(call AddDepends/usb-net) ++endef ++ ++define KernelPackage/usb-net-rtl8152/description ++ Kernel module for USB-to-Ethernet Realtek 8152 USB2.0/3.0 convertors ++endef ++ ++$(eval $(call KernelPackage,usb-net-rtl8152))