您尚未登录。

#16 2021-08-03 19:51:44

Yanxu
会员
注册时间: 2021-07-29
帖子: 53

Re: [已解决]关于RTL8188GU芯片的USB无线网卡

ip a的输出中的ens33好像是vmware里独有的https://www.jianshu.com/p/5fc492060e70

离线

#17 2021-08-03 19:55:36

Yanxu
会员
注册时间: 2021-07-29
帖子: 53

Re: [已解决]关于RTL8188GU芯片的USB无线网卡

话说我这输入命令回车后总是卡住,什么也不输出,同一终端下也无法输入下一条命令,shutdown -h now之后屏幕黑了后还有个光标在那闪,关不了机。现在是想进一步配置都不行了。

离线

#18 2021-08-03 20:53:26

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,919
个人网站

Re: [已解决]关于RTL8188GU芯片的USB无线网卡

Yanxu 说:

ip a的输出中的ens33好像是vmware里独有的https://www.jianshu.com/p/5fc492060e70

不是。systemd 搞的新命名法。

Yanxu 说:

话说我这输入命令回车后总是卡住,什么也不输出,同一终端下也无法输入下一条命令,shutdown -h now之后屏幕黑了后还有个光标在那闪,关不了机。现在是想进一步配置都不行了。

什么命令?什么 shell?

离线

#19 2021-08-03 22:01:31

Yanxu
会员
注册时间: 2021-07-29
帖子: 53

Re: [已解决]关于RTL8188GU芯片的USB无线网卡

是shell命令

离线

#20 2021-08-04 22:08:27

Yanxu
会员
注册时间: 2021-07-29
帖子: 53

Re: [已解决]关于RTL8188GU芯片的USB无线网卡

依云 说:
依云 说:
Yanxu 说:

我的理解是:lsusb的输出后有个“After Modeswitch”,必须转换模式后才是网卡,况且我用iwd#device list后没有输出任何一个设备

是啊,有「After Modeswitch」,说明已经切换过了啊。

嗯……你的理解也有道理……那你搜一下你的网卡型号吧。我没有看到有用的信息。

之前放了虚拟机里ip a的输出,新放上实体机,也就是用usb无线网卡的电脑的ip a输出,没看到有无线设备

: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 4c:ed:fb:6d:48:a1 brd ff:ff:ff:ff:ff:ff

现在驱动卸了(上面的输出是没卸之前的),感觉得重新开始

最近编辑记录 Yanxu (2021-08-04 22:14:03)

离线

#21 2023-01-26 21:43:56

Yanxu
会员
注册时间: 2021-07-29
帖子: 53

Re: [已解决]关于RTL8188GU芯片的USB无线网卡

呃……虽然已经换了个英特尔网卡连得上网了,看到AUR上有人打包了这个驱动还是想试一试成不成。拔了英特尔网卡插上这个USB网卡试了一下
ip link的输出:

❯ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 4c:ed:fb:6d:48:a1 brd ff:ff:ff:ff:ff:ff

lsusb的输出:

lsusb
Bus 002 Device 002: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS578 SATA 6Gb/s
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0951:1666 Kingston Technology DataTraveler 100 G3/G4/SE9 G2/50
Bus 001 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 004: ID 0bda:b711 Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter (After Modeswitch)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb -D /dev/bus/usb/001/004
Device: ID 0bda:b711 Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter (After Modeswitch)
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0xb711 RTL8188GU 802.11n WLAN Adapter (After Modeswitch)
  bcdDevice            2.00
  iManufacturer           1 Realtek
  iProduct                2 802.11n WLAN Adapter
  iSerial                 3 00E04CB82101
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x003c
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           6
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               3
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x08  EP 8 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x09  EP 9 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0

make时出错

DKMS make.log for rtl8188gu-r14.23b04ff for kernel 6.1.8-arch1-1 (x86_64)
Thu Jan 26 12:32:14 PM UTC 2023
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.8-arch1-1/build M=/var/lib/dkms/rtl8188gu/r14.23b04ff/build  modules
make[1]: Entering directory '/usr/lib/modules/6.1.8-arch1-1/build'
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_mlme_ext.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_mi.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_wlan_util.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_recv.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.o
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.c: In function ‘rtw_mfree_stainfo’:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.c:352:25: warning: the comparison will always evaluate as ‘true’ for the address of ‘lock’ will never be NULL [-Waddress]
  352 |         if (&psta->lock != NULL)
      |                         ^~
In file included from /var/lib/dkms/rtl8188gu/r14.23b04ff/build/include/drv_types.h:106,
                 from /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.c:17:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/include/sta_info.h:229:17: note: ‘lock’ declared here
  229 |         _lock   lock;
      |                 ^~~~
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_p2p.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_rson.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_tdls.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_br_ext.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_iol.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sreset.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_btcoex_wifionly.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_btcoex.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_beamforming.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_odm.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/efuse/rtw_efuse.o
  CC [M]  /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.o
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c: In function ‘isFileReadable’:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c:2089:9: error: unknown type name ‘mm_segment_t’
 2089 |         mm_segment_t oldfs;
      |         ^~~~~~~~~~~~
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c: In function ‘retriveFromFile’:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c:2129:9: error: unknown type name ‘mm_segment_t’
 2129 |         mm_segment_t oldfs;
      |         ^~~~~~~~~~~~
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c: In function ‘storeToFile’:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c:2168:9: error: unknown type name ‘mm_segment_t’
 2168 |         mm_segment_t oldfs;
      |         ^~~~~~~~~~~~
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c: In function ‘rtw_random32’:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c:2503:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration]
 2503 |         return prandom_u32();
      |                ^~~~~~~~~~~
      |                prandom_u32_max
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:250: /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.o] Error 1
make[1]: *** [Makefile:1992: /var/lib/dkms/rtl8188gu/r14.23b04ff/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.1.8-arch1-1/build'
make: *** [Makefile:1896: modules] Error 2

dmesg | grep -i usb:

❯ sudo dmesg | grep -i usb
[sudo] password for Anne: 
[    0.192632] ACPI: bus type USB registered
[    0.192632] usbcore: registered new interface driver usbfs
[    0.192632] usbcore: registered new interface driver hub
[    0.192632] usbcore: registered new device driver usb
[    0.320308] usbcore: registered new interface driver usbserial_generic
[    0.320311] usbserial: USB Serial support registered for generic
[    1.056799] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
[    1.058314] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
[    1.058317] xhci_hcd 0000:00:14.0: Host supports USB 3.0 SuperSpeed
[    1.058354] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.058357] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.058358] usb usb1: Product: xHCI Host Controller
[    1.058360] usb usb1: Manufacturer: Linux 6.1.8-arch1-1 xhci-hcd
[    1.058361] usb usb1: SerialNumber: 0000:00:14.0
[    1.059152] hub 1-0:1.0: USB hub found
[    1.069137] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    1.069142] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.069144] usb usb2: Product: xHCI Host Controller
[    1.069145] usb usb2: Manufacturer: Linux 6.1.8-arch1-1 xhci-hcd
[    1.069147] usb usb2: SerialNumber: 0000:00:14.0
[    1.070673] hub 2-0:1.0: USB hub found
[    1.319314] usb 1-6: new low-speed USB device number 2 using xhci_hcd
[    1.466211] usb 1-6: New USB device found, idVendor=093a, idProduct=2510, bcdDevice= 1.00
[    1.466225] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.466231] usb 1-6: Product: USB Optical Mouse
[    1.466237] usb 1-6: Manufacturer: PixArt
[    1.489737] input: PixArt USB Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:093A:2510.0001/input/input4
[    1.489931] hid-generic 0003:093A:2510.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-0000:00:14.0-6/input0
[    1.490027] usbcore: registered new interface driver usbhid
[    1.490033] usbhid: USB HID core driver
[    1.589508] usb 2-4: new SuperSpeed USB device number 2 using xhci_hcd
[    1.607574] usb 2-4: New USB device found, idVendor=152d, idProduct=0578, bcdDevice= 2.04
[    1.607587] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.607594] usb 2-4: Product: External USB3.0
[    1.607599] usb 2-4: Manufacturer: JMicron
[    1.607604] usb 2-4: SerialNumber: 201703310007F
[    1.629454] usbcore: registered new interface driver usb-storage
[    1.643153] usbcore: registered new interface driver uas
[    1.643597] scsi 6:0:0:0: Direct-Access     Extemal  usb3.0           0204 PQ: 0 ANSI: 6
[    1.729357] usb 1-9: new high-speed USB device number 3 using xhci_hcd
[    1.874983] usb 1-9: New USB device found, idVendor=0951, idProduct=1666, bcdDevice= 1.10
[    1.874996] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.875003] usb 1-9: Product: DataTraveler 3.0
[    1.875008] usb 1-9: Manufacturer: Kingston
[    1.875013] usb 1-9: SerialNumber: AC220B280B7BE2A1B91596BC
[    1.877286] usb-storage 1-9:1.0: USB Mass Storage device detected
[    1.877655] scsi host7: usb-storage 1-9:1.0
[    1.999345] usb 1-10: new high-speed USB device number 4 using xhci_hcd
[    2.140062] usb 1-10: New USB device found, idVendor=0bda, idProduct=b711, bcdDevice= 2.00
[    2.140076] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.140083] usb 1-10: Product: 802.11n WLAN Adapter
[    2.140088] usb 1-10: Manufacturer: Realtek
[    2.140093] usb 1-10: SerialNumber: 00E04CB82101

最近编辑记录 Yanxu (2023-01-27 09:43:24)

离线

#22 2023-01-26 22:29:56

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,919
个人网站

Re: [已解决]关于RTL8188GU芯片的USB无线网卡

NO-CARRIER 标志没有了耶?

离线

#23 2023-01-27 09:45:16

Yanxu
会员
注册时间: 2021-07-29
帖子: 53

Re: [已解决]关于RTL8188GU芯片的USB无线网卡

依云 说:

NO-CARRIER 标志没有了耶?

我搞错输出了,换回实体机里重新输出,改过来了。抱歉

最近编辑记录 Yanxu (2023-01-27 10:04:37)

离线

#24 2023-01-27 20:26:25

KafCoppelia
会员
所在地: Beijing, China
注册时间: 2022-06-20
帖子: 148
个人网站

Re: [已解决]关于RTL8188GU芯片的USB无线网卡

试试AUR的rtl8188gu-dkms-git?


二次元开发者

离线

#25 2023-01-28 00:46:22

Yanxu
会员
注册时间: 2021-07-29
帖子: 53

Re: [已解决]关于RTL8188GU芯片的USB无线网卡

KafCoppelia 说:

试试AUR的rtl8188gu-dkms-git?

说实话我就是用这个包的,安装时在dkms那出问题,但问题和直接编译一模一样,make.log的内容和make的输出一模一样

离线

#26 2023-01-28 08:28:38

KafCoppelia
会员
所在地: Beijing, China
注册时间: 2022-06-20
帖子: 148
个人网站

Re: [已解决]关于RTL8188GU芯片的USB无线网卡

看来是上游的锅,对吧?


二次元开发者

离线

#27 2023-01-28 10:38:05

Yanxu
会员
注册时间: 2021-07-29
帖子: 53

Re: [已解决]关于RTL8188GU芯片的USB无线网卡

不是McMCCRU/rtl8188gu的问题,这个仓库编译和安装驱动没问题,安装了能连上网。只是McMCCRU/rtl8188gu的分支KierPrev/rtl8188gu也就是rtl8188gu-dkms-git的上游编译有问题。好奇要怎么解决

最近编辑记录 Yanxu (2023-01-28 10:48:06)

离线

#28 2023-01-28 14:24:00

KafCoppelia
会员
所在地: Beijing, China
注册时间: 2022-06-20
帖子: 148
个人网站

Re: [已解决]关于RTL8188GU芯片的USB无线网卡

那我去把rtl8188gu-dkms-git的上游改成McMCCRU/rtl8188gu的repo吧


二次元开发者

离线

页脚