我有一个 TP LINK USB wifi 适配器。当我插入它时会发生以下情况:
[ 153.838373] usb 2-1.1: new high-speed USB device number 5 using ehci-pci
[ 153.951203] usb 2-1.1: New USB device found, idVendor=..., idProduct=..., bcdDevice= 0.00
[ 153.951209] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 153.951213] usb 2-1.1: Product: 802.11n NIC
[ 153.951216] usb 2-1.1: Manufacturer: Realtek
[ 153.951219] usb 2-1.1: SerialNumber: ...
[ 153.951823] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[ 153.997632] r8188eu 2-1.1:1.0 wlx503...: renamed from wlan0
[ 154.028332] r8188eu 2-1.1:1.0: firmware: failed to load rtlwifi/rtl8188eufw.bin (-2)
[ 154.028336] r8188eu 2-1.1:1.0: Direct firmware load for rtlwifi/rtl8188eufw.bin failed with error -2
[ 154.028338] r8188eu 2-1.1:1.0: Firmware rtlwifi/rtl8188eufw.bin not available
[ 154.028340] MAC Address = ...
[ 154.126938] usb 2-1.1: USB disconnect, device number 5
[ 154.130178] R8188EU: indicate disassoc
我知道这是由于缺少一些固件造成的。
我不想在我的计算机上安装此固件,而是想将其安装到虚拟机上并让该虚拟机使用加密狗。问题是设备会立即自动断开连接,即使它已物理插入,并且我无法使用 Qemu 转发 USB 设备。
是否可以防止设备立即断开连接?
答案1
我只是将该r8188eu
模块列入黑名单 - 这样,它就无法获取 USB 设备,无法加载固件,从而使其处于不可操作状态。