0025-Kernel-Realtek-8150-and-Realtek-8152-based-USB-to-Ethernet-converters.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. From: Andre Kasper <andre.kasper@gmx.de>
  2. Date: Mon, 12 Oct 2015 02:31:05 +0200
  3. Subject: Kernel: Realtek 8150 and Realtek 8152 based USB-to-Ethernet converters
  4. This patch adds the kernel modules to for the very common Realtek RTL8150 and Realtek 8152 based USB-to-Ethernet converters.
  5. After this patch the following packages can be added to targets (or site.mk):
  6. kmod-usb-net-rtl8150
  7. kmod-usb-net-rtl8152
  8. The modules are already available in openwrt trunk, but not in Chaos Calmer. This patch is just a temporary backport.
  9. The modules are needed for Futros with additional USB-Ethernet-Interface and VMs with dedicated USB-NIC
  10. diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
  11. index d1ff455..86f452e 100644
  12. --- a/package/kernel/linux/modules/usb.mk
  13. +++ b/package/kernel/linux/modules/usb.mk
  14. @@ -1554,3 +1554,32 @@ define KernelPackage/usb3/description
  15. endef
  16. $(eval $(call KernelPackage,usb3))
  17. +
  18. +define KernelPackage/usb-net-rtl8150
  19. + TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
  20. + KCONFIG:=CONFIG_USB_RTL8150
  21. + FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/rtl8150.ko
  22. + AUTOLOAD:=$(call AutoProbe,rtl8150)
  23. + $(call AddDepends/usb-net)
  24. +endef
  25. +
  26. +define KernelPackage/usb-net-rtl8150/description
  27. + Kernel module for USB-to-Ethernet Realtek 8150 convertors
  28. +endef
  29. +
  30. +$(eval $(call KernelPackage,usb-net-rtl8150))
  31. +
  32. +
  33. +define KernelPackage/usb-net-rtl8152
  34. + TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
  35. + KCONFIG:=CONFIG_USB_RTL8152
  36. + FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/r8152.ko
  37. + AUTOLOAD:=$(call AutoProbe,r8152)
  38. + $(call AddDepends/usb-net)
  39. +endef
  40. +
  41. +define KernelPackage/usb-net-rtl8152/description
  42. + Kernel module for USB-to-Ethernet Realtek 8152 USB2.0/3.0 convertors
  43. +endef
  44. +
  45. +$(eval $(call KernelPackage,usb-net-rtl8152))