Mirror only - Please move to https://github.com/immortalwrt/immortalwrt
Revision | d35265d87fedfbab887f3dbb88b24294ac0c18b4 (tree) |
---|---|
Zeit | 2022-01-09 12:25:38 |
Autor | Josef Schlehofer <pepe.schlehofer@gmai...> |
Commiter | AmadeusGhost |
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>
@@ -1239,6 +1239,23 @@ endef | ||
1239 | 1239 | $(eval $(call KernelPackage,usb-net-kaweth)) |
1240 | 1240 | |
1241 | 1241 | |
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 | + | |
1242 | 1259 | define KernelPackage/usb-net-pegasus |
1243 | 1260 | TITLE:=Kernel module for USB-to-Ethernet Pegasus convertors |
1244 | 1261 | KCONFIG:=CONFIG_USB_PEGASUS |