From 1d75c9f4fd3f020736d7f729998420ac3884dbd1 Mon Sep 17 00:00:00 2001 From: Scott Kilau Date: Thu, 30 Jun 2022 17:35:14 -0500 Subject: [PATCH] Fix (workaround) for issue #145. --- README.md | 4 ++++ SD_ROOT/wz_mini/etc/init.d/wz_user.sh | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 403da52..b8315cd 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,10 @@ To have the Ethernet NIC be auto-detected and loaded automatically, set the ENAB To load a specific USB Ethernet NIC driver, set ENABLE_USB_ETH_MODULE_MANUAL to one of the following: asix, ax88179_178a, cdc_ether, r8152 +NOTE: There is a possibility of a conflict between Ethernet NIC adapters that report themselves as PCI ID '0bda:8152'. (Realtek 8152 and CDC Ethernet) +Since the 8152 is Realtek's product, that driver will be the one used for products that report that PCI ID. +If you happen to have a CDC Ethernet product that uses that specific PCI ID, please set the ENABLE_USB_ETH_MODULE_AUTODETECT option to false, and set ENABLE_USB_ETH_MODULE_MANUAL to "cdc_ether" + The next time you boot your camera, make sure your USB Ethernet Adapter is connected to the camera and ethernet. The camera has to be setup initially with Wi-Fi for this to work. After setup, Wi-Fi is no longer needed, as long as you are using the USB Ethernet Adapter. Note that using USB Ethernet disables the onboard Wi-Fi. --- diff --git a/SD_ROOT/wz_mini/etc/init.d/wz_user.sh b/SD_ROOT/wz_mini/etc/init.d/wz_user.sh index 76c7c3d..68d0de9 100755 --- a/SD_ROOT/wz_mini/etc/init.d/wz_user.sh +++ b/SD_ROOT/wz_mini/etc/init.d/wz_user.sh @@ -320,7 +320,7 @@ if [[ "$ENABLE_USB_ETH" == "true" ]]; then modprobe ax88179_178a ;; '1004:61aa' | '046d:c11f' | '1410:b001' | '1410:9010' | '413c:8195' |\ - '413c:8196' | '413c:819b' | '16d5:650a' | '12d1:14ac' | '0bda:8152') + '413c:8196' | '413c:819b' | '16d5:650a' | '12d1:14ac') echo "Loading USB CDC Ethernet driver..." modprobe cdc_ether ;; @@ -334,7 +334,7 @@ if [[ "$ENABLE_USB_ETH" == "true" ]]; then # Manually load any other Ethernet Drivers if asked for if [[ "$ENABLE_USB_ETH_MODULE_MANUAL" != "" ]]; then - for i in $(echo "$ENABLE_USB_ETH_MODULES" | tr "," "\n") + for i in $(echo "$ENABLE_USB_ETH_MODULE_MANUAL" | tr "," "\n") do insmod $KMOD_PATH/kernel/drivers/net/usb/$i.ko done