首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu18.04- dlink dwa171 (revC)显示为记忆棒

Ubuntu18.04- dlink dwa171 (revC)显示为记忆棒
EN

Ask Ubuntu用户
提问于 2019-08-08 15:22:29
回答 3查看 14.6K关注 0票数 6

所以我买了这个设备(DWA171,revC),但是制造。似乎太聪明了,在设备中插入了一个记忆棒控制器来存储窗口驱动程序。

我从这里编译并修改了驱动程序https://github.com/diederikdehaas/rtl8812AU,看起来一切都很好,但我仍然只在dmesg中显示记忆棒。

供应商和产品id似乎是wifi模块,但它被写成“product”。

Edit1 -附加信息

代码语言:javascript
复制
@-MS-7A70:~$ sudo dpkg -s usb-modeswitch
[sudo] password for :
Package: usb-modeswitch
Status: install ok installed
Priority: optional
Section: comm
Installed-Size: 158
Maintainer: Ubuntu Developers 
Architecture: amd64
Version: 2.5.2+repack0-2ubuntu1
Depends: libc6 (>= 2.27), libpipeline1 (>= 1.0.0), libusb-1.0-0 (>= 2:1.0.9), usb-modeswitch-data (>= 20140529)
Suggests: comgt, wvdial
Breaks: usb-modeswitch-data (<< 20100127)
Conffiles:
 /etc/usb_modeswitch.conf b7f857804762b4a81a71c93a2fe1207f
Description: mode switching tool for controlling "flip flop" USB devices
 Several new USB devices have their proprietary Windows drivers onboard,
 especially WAN dongles. When plugged in for the first time, they act
 like a flash storage and start installing the driver from there. If
 the driver is already installed, the storage device vanishes and
 a new device, such as an USB modem, shows up. This is called the
 "ZeroCD" feature.
 .
 On Debian, this is not needed, since the driver is included as a
 Linux kernel module, such as "usbserial". However, the device still
 shows up as "usb-storage" by default. usb-modeswitch solves that
 issue by sending the command which actually performs the switching
 of the device from "usb-storage" to "usbserial".
 .
 This package contains the binaries and the brother scripts.
Original-Maintainer: Didier Raboud 
Homepage: http://www.draisberghof.de/usb_modeswitch/
@-MS-7A70:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 003: ID 0bda:1a2b Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

在手动运行usb_modeswitch之后,我现在有了dmesg中的以下内容:-

代码语言:javascript
复制
[133898.810951] usb 1-2: USB disconnect, device number 2
[133899.193566] usb 1-2: new high-speed USB device number 5 using xhci_hcd
[133899.341961] usb 1-2: New USB device found, idVendor=2001, idProduct=331d
[133899.341967] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[133899.341971] usb 1-2: Product: DWA-171
[133899.341975] usb 1-2: Manufacturer: D-Link Corporation
[133899.341978] usb 1-2: SerialNumber: 123456

产品ID似乎不是真的,序列号看起来很粗略。

ip link show只显示我的以太网和回送设备。

谢谢你,萨希尔

EN

回答 3

Ask Ubuntu用户

回答已采纳

发布于 2019-08-11 13:40:13

正确的驱动程序8821 of的whitebatman2版本没有显式地覆盖您的2001:331 d设备。但是,有一种方法可以安装驱动程序。从航站楼:

代码语言:javascript
复制
sudo apt update
sudo apt install build-essential git dkms
git clone https://github.com/brektrou/rtl8821CU.git
cd rtl8821CU
chmod +x dkms-install.sh
sudo ./dkms-install.sh

它在我的5.0.0-23系统上成功构建,尽管有一些可能是无害的警告。

接下来,做:

代码语言:javascript
复制
sudo modprobe 8821cu

你的无线电现在应该能工作了。

票数 10
EN

Ask Ubuntu用户

发布于 2019-10-25 11:35:45

概述

无法使用D-Link AC600 (DWA 171修订版C)作为WiFi的问题,因为它被认为是USB刷新内存(存储WiFi驱动程序文件)。请注意,这是关于DWA 171修订版A的<>>而不是。

根据与适配器DWA 171的问题

DWA-171修订版C于2018年面世,并在dongle标签上标记为DWA-171。revA是一个简单的wifi dongle --安装了正确的Linux驱动程序,插入dongle,你就可以开始比赛了。但是revC首先枚举为USB,因此包含一个用于安装Setup.exe驱动程序的Setup.exe。

lsusb显示DWA 171修订版C作为Realtek闪存驱动器。

代码语言:javascript
复制
Bus 003 Device 005: ID 0bda:1a2b Realtek Semiconductor Corp.    <----- USB Flash memory mode of DWA 171

溶液

按照自动使用usb_用于Wifi USB的模块设计,按下面的方式运行usb_modeswitch (在此之后,并使用lsusb和ip命令进行确认。

代码语言:javascript
复制
$ lsusb
...
Bus 003 Device 005: ID 0bda:1a2b Realtek Semiconductor Corp.

$ /usr/sbin/usb_modeswitch -K -v 0bda -p 1a2b
$ lsusb
...
Bus 003 Device 006: ID 2001:331d D-Link Corp.  <--- Changed from Realtek

$ ip link show
...
3: wlx58d56e015102:  mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 58:d5:6e:01:51:02 brd ff:ff:ff:ff:ff:ff

解释

usb-modeswitch数据包中包含的参考文件说,-K意味着弹出设备。

  • StandardEject <0/1> -K

发送一个特定的批量消息序列,表示SCSI命令“允许介质删除”和“开始停止单元”,这基本上是一个弹出操作。许多调制解调器正在使用这种方式进行模式切换。可以与一个额外的'MessageContent‘组合

结论

使用D 600 (DWA 171修订版C)作为USB WiFi.

  1. 编译、安装和加载8821 NOT模块(而不是8821 and )。
  2. 验证模块是否装载了lsmod。
  3. 用usb_modeswitch -K弹出USB闪存驱动器。
  4. 验证USB WiFi D-链路是否用lsusb显示.

参考资料

  • USB_Linux上的ModeSwitch处理模式切换USB设备
票数 5
EN

Ask Ubuntu用户

发布于 2020-10-08 01:48:48

在编写本报告时,有linux网站上的官方linux驱动程序 (直接链接到最新版本,以防支持页面发生变化),它既处理与realtek芯片组的通信,又处理自动模式切换。

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1164356

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档