我有一台 Dell XPS 13 9360 开发者版 (Ubuntu 16.10)。我想使用以太网适配器。我买了一个 Dell Dock WD15 和一个 DA200,但我无法使以太网连接正常工作。
当我连接 USB-C 电缆时,这些设备会显示在lsusb
列表中:
DA200:
总线 004 设备 004:ID 0bda:8152 Realtek Semiconductor Corp.
西部数据 15:
总线 004 设备 003:ID 0bda:8153 Realtek Semiconductor Corp.
我怎样才能让这个以太网适配器工作?我需要安装额外的驱动程序吗?
我已经使用 Dell Latitude 7275 和 Windows 10 测试了这两款设备,它们运行良好。
更新:结果来自dmesg | grep -i r815
:
[ 12.656121] usbcore: registered new interface driver r8152
[ 13.438331] r8152 4-1.2:1.0 (unnamed net_device) (uninitialized): Using pass-thru MAC addr d4:81:d7:22:ec:02
[ 13.494047] r8152 4-1.2:1.0 eth0: v1.08.6
[ 13.666848] r8152 4-1.2:1.0 enxd481d722ec02: renamed from eth0
[ 540.891031] r8152 4-1.2:1.0 (unnamed net_device) (uninitialized): Using pass-thru MAC addr d4:81:d7:22:ec:02
[ 540.944670] r8152 4-1.2:1.0 eth0: v1.08.6
[ 542.486406] r8152 4-1.2:1.0 enxd481d722ec02: renamed from eth0
[ 1223.991503] usbcore: deregistering interface driver r8152
[ 1224.656988] r8152: loading out-of-tree module taints kernel.
[ 1224.657054] r8152: module verification failed: signature and/or required key missing - tainting kernel
[ 1224.824563] r8152 4-1.2:1.0 eth0: v2.08.0 (2016/12/09)
[ 1224.824568] r8152 4-1.2:1.0 eth0: This product is covered by one or more of the following patents:
[ 1224.825680] usbcore: registered new interface driver r8152
[ 1224.826492] r8152 4-1.2:1.0 enx847beb33f1dd: renamed from eth0
[ 1415.312339] r8152 4-1.4:1.0 eth0: v2.08.0 (2016/12/09)
[ 1415.312345] r8152 4-1.4:1.0 eth0: This product is covered by one or more of the following patents:
[ 1427.261311] r8152 4-1.4:1.0 eth0: v2.08.0 (2016/12/09)
[ 1427.261316] r8152 4-1.4:1.0 eth0: This product is covered by one or more of the following patents:
[ 1429.002364] r8152 4-1.4:1.0 enx00249b2352c9: renamed from eth0
[ 1564.756280] r8152 4-1.4:1.0 (unnamed net_device) (uninitialized): Unknown version 0x7cf0
[ 1564.756286] r8152 4-1.4:1.0 (unnamed net_device) (uninitialized): Unknown Device
[ 1629.207955] r8152 4-1.2:1.0 eth0: v2.08.0 (2016/12/09)
[ 1629.207960] r8152 4-1.2:1.0 eth0: This product is covered by one or more of the following patents:
[ 1631.014946] r8152 4-1.2:1.0 enx847beb33f1dd: renamed from eth0
[ 6101.594643] r8152 4-1.4:1.0 eth0: v2.08.0 (2016/12/09)
[ 6101.594649] r8152 4-1.4:1.0 eth0: This product is covered by one or more of the following patents:
[ 6103.232845] r8152 4-1.4:1.0 enx00249b2352c9: renamed from eth0
输出自dmesg | grep enx
:
[ 13.259620] r8152 4-1.2:1.0 enx847beb33f1dd: renamed from eth0
[ 177.044463] r8152 4-1.4:1.0 enx00249b2352c9: renamed from eth0
答案1
以下是我为使驱动程序在 Debian Stretch 上运行所做的事情:
1)从realtek下载官方驱动程序:https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software
2)解压:# tar xvf ./r8152.53.56-2.12.0.tar
3)确保安装了最新的内核头文件sudo apt install linux-headers-$(uname -r)
4)编译驱动程序cd r8152_2.12.0 && make
5)安装编译好的驱动sudo make install