• R/O
  • HTTP
  • SSH
  • HTTPS

immortalwrt: Commit

Mirror only - Please move to https://github.com/immortalwrt/immortalwrt


Commit MetaInfo

Révisiond35265d87fedfbab887f3dbb88b24294ac0c18b4 (tree)
l'heure2022-01-09 12:25:38
AuteurJosef Schlehofer <pepe.schlehofer@gmai...>
CommiterAmadeusGhost

Message de Log

kernel: add kmod-usb-net-lan78xx

Add kernel module for Microchip LAN78XX based USB 2 & USB 3
10/100/1000 Ethernet adapters. [1]

This kernel module is required for the Seeed Studio's Mini Router
based on RPI CM4 [2].

[1] <https://cateee.net/lkddb/web-lkddb/USB_LAN78XX.html>
[2] <https://www.seeedstudio.com/Dual-GbE-Carrier-Board-with-4GB-RAM-32GB-eMMC-RPi-CM4-Case-p-5029.html>

Link: <https://github.com/openwrt/openwrt/pull/4893>
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(added kmod-phy-microchip and kmod-fixed-phy dependencies,
rpi3 needs lan78xx but has it built-in)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>

Change Summary

Modification

--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -1239,6 +1239,23 @@ endef
12391239 $(eval $(call KernelPackage,usb-net-kaweth))
12401240
12411241
1242+define KernelPackage/usb-net-lan78xx
1243+ TITLE:=USB-To-Ethernet Microchip LAN78XX convertors
1244+ DEPENDS:=+kmod-fixed-phy +kmod-phy-microchip
1245+ KCONFIG:=CONFIG_USB_LAN78XX
1246+ FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/lan78xx.ko
1247+ AUTOLOAD:=$(call AutoProbe,lan78xx)
1248+ $(call AddDepends/usb-net)
1249+endef
1250+
1251+define KernelPackage/usb-net-lan78xx/description
1252+ Kernel module for Microchip LAN78XX based USB 2 & USB 3
1253+ 10/100/1000 Ethernet adapters.
1254+endef
1255+
1256+$(eval $(call KernelPackage,usb-net-lan78xx))
1257+
1258+
12421259 define KernelPackage/usb-net-pegasus
12431260 TITLE:=Kernel module for USB-to-Ethernet Pegasus convertors
12441261 KCONFIG:=CONFIG_USB_PEGASUS
Afficher sur ancien navigateur de dépôt.