我有一个 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
我知道这是由于缺少一些固件。
我不想在我的机器上安装这个固件,而是想将它安装到 VM 并让该 VM 使用加密狗。问题是设备立即自动断开连接,即使它是物理插入的,而且我无法使用 Qemu 转发 USB 设备。
是否可以防止设备立即断开连接?
我只是将
r8188eu
模块列入黑名单——这样,它就无法获取 USB 设备,无法加载固件,从而使其处于无法操作的状态。