您尚未登录。

#1 2021-08-02 12:26:36

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

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

我试着编译RTL8188GU无线驱动失败
lsusb结果

Bus 003 Device 007: ID 0bda:b711 Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter (After Modeswitch)

在/lib/udev/rules.d/40-usb_modeswitch.rules 以及/usr/share/usb_modeswitch中并没有发现0bda:b711
实体机上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

尝试编译https://github.com/McMCCRU/rtl8188gu提供的驱动不成功
编译输出结果

/bin/sh: line 1: bc: command not found
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.13.6-arch1-1/build M=/home/yanxu/apps/rtl8188gu/rtl8188gu  modules
make[1]: Entering directory '/usr/lib/modules/5.13.6-arch1-1/build'
/bin/sh: line 1: bc: command not found
  CC [M]  /home/yanxu/apps/rtl8188gu/rtl8188gu/os_dep/linux/recv_linux.o
/home/yanxu/apps/rtl8188gu/rtl8188gu/os_dep/linux/recv_linux.c: In function 'napi_recv':
/home/yanxu/apps/rtl8188gu/rtl8188gu/os_dep/linux/recv_linux.c:355:76: error: 'GRO_DROP' undeclared (first use in this function)
  355 |            if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
      |                                                               ^~~~~~~~

/home/yanxu/apps/rtl8188gu/rtl8188gu/os_dep/linux/recv_linux.c:355:76: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:273: /home/yanxu/apps/rtl8188gu/rtl8188gu/os_dep/linux/recv_linux.o] Error 1
make[1]: *** [Makefile:1853: /home/yanxu/apps/rtl8188gu/rtl8188gu] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.13.6-arch1-1/build'
make: *** [Makefile:1894: modules] Error 2

我把iusses(https://github.com/McMCCRU/rtl8188gu/issues/14里提到的文件复制粘贴到rtl8814au/os_dep/linux/里替换掉了原来的recv_linux.c
编译输出:

/bin/sh: line 1: bc: command not found
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.13.6-arch1-1/build M=/opt/rtl8188gu  modules
make[1]: Entering directory '/usr/lib/modules/5.13.6-arch1-1/build'
/bin/sh: line 1: bc: command not found
  CC [M]  /opt/rtl8188gu/core/rtw_cmd.o
  CC [M]  /opt/rtl8188gu/core/rtw_security.o
  CC [M]  /opt/rtl8188gu/core/rtw_debug.o
  CC [M]  /opt/rtl8188gu/core/rtw_io.o
  CC [M]  /opt/rtl8188gu/core/rtw_ioctl_query.o
  CC [M]  /opt/rtl8188gu/core/rtw_ioctl_set.o
  CC [M]  /opt/rtl8188gu/core/rtw_ieee80211.o
  CC [M]  /opt/rtl8188gu/core/rtw_mlme.o
  CC [M]  /opt/rtl8188gu/core/rtw_mlme_ext.o
  CC [M]  /opt/rtl8188gu/core/rtw_mi.o
  CC [M]  /opt/rtl8188gu/core/rtw_wlan_util.o
  CC [M]  /opt/rtl8188gu/core/rtw_vht.o
  CC [M]  /opt/rtl8188gu/core/rtw_pwrctrl.o
  CC [M]  /opt/rtl8188gu/core/rtw_rf.o
  CC [M]  /opt/rtl8188gu/core/rtw_recv.o
  CC [M]  /opt/rtl8188gu/core/rtw_sta_mgt.o
  CC [M]  /opt/rtl8188gu/core/rtw_ap.o
  CC [M]  /opt/rtl8188gu/core/rtw_xmit.o
  CC [M]  /opt/rtl8188gu/core/rtw_p2p.o
  CC [M]  /opt/rtl8188gu/core/rtw_rson.o
  CC [M]  /opt/rtl8188gu/core/rtw_tdls.o
  CC [M]  /opt/rtl8188gu/core/rtw_br_ext.o
  CC [M]  /opt/rtl8188gu/core/rtw_iol.o
  CC [M]  /opt/rtl8188gu/core/rtw_sreset.o
  CC [M]  /opt/rtl8188gu/core/rtw_btcoex_wifionly.o
  CC [M]  /opt/rtl8188gu/core/rtw_btcoex.o
  CC [M]  /opt/rtl8188gu/core/rtw_beamforming.o
  CC [M]  /opt/rtl8188gu/core/rtw_odm.o
  CC [M]  /opt/rtl8188gu/core/efuse/rtw_efuse.o
/opt/rtl8188gu/core/efuse/rtw_efuse.c: In function 'rtw_efuse_analyze':
/opt/rtl8188gu/core/efuse/rtw_efuse.c:713:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  713 |                 if (i % 16 == 0)
      |                 ^~
In file included from /opt/rtl8188gu/include/drv_types.h:60,
                 from /opt/rtl8188gu/core/efuse/rtw_efuse.c:17:
/opt/rtl8188gu/include/rtw_debug.h:292:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  292 |         do {\
      |         ^~
/opt/rtl8188gu/core/efuse/rtw_efuse.c:715:25: note: in expansion of macro '_RTW_PRINT_SEL'
  715 |                         _RTW_PRINT_SEL(RTW_DBGDUMP, "%02X%s"
      |                         ^~~~~~~~~~~~~~
  CC [M]  /opt/rtl8188gu/os_dep/osdep_service.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/os_intfs.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/usb_intf.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/usb_ops_linux.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/ioctl_linux.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/xmit_linux.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/mlme_linux.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/recv_linux.o
/opt/rtl8188gu/os_dep/linux/recv_linux.c:285:7: error: conflicting types for 'rtw_os_alloc_msdu_pkt'; have '_pkt *(union recv_frame *, const u8 *, const u8 *, u8 *, u16)' {aka 'struct sk_buff *(union recv_frame *, const unsigned char *, const unsigned char *, unsigned char *, short unsigned int)'}
  285 | _pkt *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, const u8 *da, const u8 *sa, u8 *msdu ,u16 msdu_len)
      |       ^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/rtl8188gu/include/drv_types.h:87,
                 from /opt/rtl8188gu/os_dep/linux/recv_linux.c:17:
/opt/rtl8188gu/include/recv_osdep.h:50:7: note: previous declaration of 'rtw_os_alloc_msdu_pkt' with type '_pkt *(union recv_frame *, u16,  u8 *)' {aka 'struct sk_buff *(union recv_frame *, short unsigned int,  unsigned char *)'}
   50 | _pkt *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_Length, u8 *pdata);
      |       ^~~~~~~~~~~~~~~~~~~~~
/opt/rtl8188gu/os_dep/linux/recv_linux.c: In function 'napi_recv':
/opt/rtl8188gu/os_dep/linux/recv_linux.c:358:76: error: 'GRO_DROP' undeclared (first use in this function)
  358 |            if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
      |                                                               ^~~~~~~~

/opt/rtl8188gu/os_dep/linux/recv_linux.c:358:76: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:273: /opt/rtl8188gu/os_dep/linux/recv_linux.o] Error 1
make[1]: *** [Makefile:1853: /opt/rtl8188gu] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.13.6-arch1-1/build'
make: *** [Makefile:1894: modules] Error 2
➜  rtl8188gu git:(master) ✗ sudo make
[sudo] password for yanxu: 
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.13.6-arch1-1/build M=/opt/rtl8188gu  modules
make[1]: Entering directory '/usr/lib/modules/5.13.6-arch1-1/build'
  CC [M]  /opt/rtl8188gu/core/rtw_cmd.o
  CC [M]  /opt/rtl8188gu/core/rtw_security.o
  CC [M]  /opt/rtl8188gu/core/rtw_debug.o
  CC [M]  /opt/rtl8188gu/core/rtw_io.o
  CC [M]  /opt/rtl8188gu/core/rtw_ioctl_query.o
  CC [M]  /opt/rtl8188gu/core/rtw_ioctl_set.o
  CC [M]  /opt/rtl8188gu/core/rtw_ieee80211.o
  CC [M]  /opt/rtl8188gu/core/rtw_mlme.o
  CC [M]  /opt/rtl8188gu/core/rtw_mlme_ext.o
  CC [M]  /opt/rtl8188gu/core/rtw_mi.o
  CC [M]  /opt/rtl8188gu/core/rtw_wlan_util.o
  CC [M]  /opt/rtl8188gu/core/rtw_vht.o
  CC [M]  /opt/rtl8188gu/core/rtw_pwrctrl.o
  CC [M]  /opt/rtl8188gu/core/rtw_rf.o
  CC [M]  /opt/rtl8188gu/core/rtw_recv.o
  CC [M]  /opt/rtl8188gu/core/rtw_sta_mgt.o
  CC [M]  /opt/rtl8188gu/core/rtw_ap.o
  CC [M]  /opt/rtl8188gu/core/rtw_xmit.o
  CC [M]  /opt/rtl8188gu/core/rtw_p2p.o
  CC [M]  /opt/rtl8188gu/core/rtw_rson.o
  CC [M]  /opt/rtl8188gu/core/rtw_tdls.o
  CC [M]  /opt/rtl8188gu/core/rtw_br_ext.o
  CC [M]  /opt/rtl8188gu/core/rtw_iol.o
  CC [M]  /opt/rtl8188gu/core/rtw_sreset.o
  CC [M]  /opt/rtl8188gu/core/rtw_btcoex_wifionly.o
  CC [M]  /opt/rtl8188gu/core/rtw_btcoex.o
  CC [M]  /opt/rtl8188gu/core/rtw_beamforming.o
  CC [M]  /opt/rtl8188gu/core/rtw_odm.o
  CC [M]  /opt/rtl8188gu/core/efuse/rtw_efuse.o
/opt/rtl8188gu/core/efuse/rtw_efuse.c: In function 'rtw_efuse_analyze':
/opt/rtl8188gu/core/efuse/rtw_efuse.c:713:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  713 |                 if (i % 16 == 0)
      |                 ^~
In file included from /opt/rtl8188gu/include/drv_types.h:60,
                 from /opt/rtl8188gu/core/efuse/rtw_efuse.c:17:
/opt/rtl8188gu/include/rtw_debug.h:292:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  292 |         do {\
      |         ^~
/opt/rtl8188gu/core/efuse/rtw_efuse.c:715:25: note: in expansion of macro '_RTW_PRINT_SEL'
  715 |                         _RTW_PRINT_SEL(RTW_DBGDUMP, "%02X%s"
      |                         ^~~~~~~~~~~~~~
  CC [M]  /opt/rtl8188gu/os_dep/osdep_service.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/os_intfs.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/usb_intf.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/usb_ops_linux.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/ioctl_linux.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/xmit_linux.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/mlme_linux.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/recv_linux.o
/opt/rtl8188gu/os_dep/linux/recv_linux.c:285:7: error: conflicting types for 'rtw_os_alloc_msdu_pkt'; have '_pkt *(union recv_frame *, const u8 *, const u8 *, u8 *, u16)' {aka 'struct sk_buff *(union recv_frame *, const unsigned char *, const unsigned char *, unsigned char *, short unsigned int)'}
  285 | _pkt *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, const u8 *da, const u8 *sa, u8 *msdu ,u16 msdu_len)
      |       ^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/rtl8188gu/include/drv_types.h:87,
                 from /opt/rtl8188gu/os_dep/linux/recv_linux.c:17:
/opt/rtl8188gu/include/recv_osdep.h:50:7: note: previous declaration of 'rtw_os_alloc_msdu_pkt' with type '_pkt *(union recv_frame *, u16,  u8 *)' {aka 'struct sk_buff *(union recv_frame *, short unsigned int,  unsigned char *)'}
   50 | _pkt *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_Length, u8 *pdata);
      |       ^~~~~~~~~~~~~~~~~~~~~
/opt/rtl8188gu/os_dep/linux/recv_linux.c: In function 'napi_recv':
/opt/rtl8188gu/os_dep/linux/recv_linux.c:358:76: error: 'GRO_DROP' undeclared (first use in this function)
  358 |            if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
      |                                                               ^~~~~~~~

/opt/rtl8188gu/os_dep/linux/recv_linux.c:358:76: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:273: /opt/rtl8188gu/os_dep/linux/recv_linux.o] Error 1
make[1]: *** [Makefile:1853: /opt/rtl8188gu] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.13.6-arch1-1/build'
make: *** [Makefile:1894: modules] Error 2

我把iusses里提到的https://github.com/aircrack-ng/rtl8814au/pull/66/files文件所做的变化复制粘贴到rtl8814au/os_dep/linux/里原来的recv_linux.c中对应的部分替换掉
输出结果:

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.13.6-arch1-1/build M=/opt/rtl8188gu  modules
make[1]: Entering directory '/usr/lib/modules/5.13.6-arch1-1/build'
  CC [M]  /opt/rtl8188gu/core/rtw_cmd.o
  CC [M]  /opt/rtl8188gu/core/rtw_security.o
  CC [M]  /opt/rtl8188gu/core/rtw_debug.o
  CC [M]  /opt/rtl8188gu/core/rtw_io.o
  CC [M]  /opt/rtl8188gu/core/rtw_ioctl_query.o
  CC [M]  /opt/rtl8188gu/core/rtw_ioctl_set.o
  CC [M]  /opt/rtl8188gu/core/rtw_ieee80211.o
  CC [M]  /opt/rtl8188gu/core/rtw_mlme.o
  CC [M]  /opt/rtl8188gu/core/rtw_mlme_ext.o
  CC [M]  /opt/rtl8188gu/core/rtw_mi.o
  CC [M]  /opt/rtl8188gu/core/rtw_wlan_util.o
  CC [M]  /opt/rtl8188gu/core/rtw_vht.o
  CC [M]  /opt/rtl8188gu/core/rtw_pwrctrl.o
  CC [M]  /opt/rtl8188gu/core/rtw_rf.o
  CC [M]  /opt/rtl8188gu/core/rtw_recv.o
  CC [M]  /opt/rtl8188gu/core/rtw_sta_mgt.o
  CC [M]  /opt/rtl8188gu/core/rtw_ap.o
  CC [M]  /opt/rtl8188gu/core/rtw_xmit.o
  CC [M]  /opt/rtl8188gu/core/rtw_p2p.o
  CC [M]  /opt/rtl8188gu/core/rtw_rson.o
  CC [M]  /opt/rtl8188gu/core/rtw_tdls.o
  CC [M]  /opt/rtl8188gu/core/rtw_br_ext.o
  CC [M]  /opt/rtl8188gu/core/rtw_iol.o
  CC [M]  /opt/rtl8188gu/core/rtw_sreset.o
  CC [M]  /opt/rtl8188gu/core/rtw_btcoex_wifionly.o
  CC [M]  /opt/rtl8188gu/core/rtw_btcoex.o
  CC [M]  /opt/rtl8188gu/core/rtw_beamforming.o
  CC [M]  /opt/rtl8188gu/core/rtw_odm.o
  CC [M]  /opt/rtl8188gu/core/efuse/rtw_efuse.o
/opt/rtl8188gu/core/efuse/rtw_efuse.c: In function 'rtw_efuse_analyze':
/opt/rtl8188gu/core/efuse/rtw_efuse.c:713:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  713 |                 if (i % 16 == 0)
      |                 ^~
In file included from /opt/rtl8188gu/include/drv_types.h:60,
                 from /opt/rtl8188gu/core/efuse/rtw_efuse.c:17:
/opt/rtl8188gu/include/rtw_debug.h:292:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  292 |         do {\
      |         ^~
/opt/rtl8188gu/core/efuse/rtw_efuse.c:715:25: note: in expansion of macro '_RTW_PRINT_SEL'
  715 |                         _RTW_PRINT_SEL(RTW_DBGDUMP, "%02X%s"
      |                         ^~~~~~~~~~~~~~
  CC [M]  /opt/rtl8188gu/os_dep/osdep_service.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/os_intfs.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/usb_intf.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/usb_ops_linux.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/ioctl_linux.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/xmit_linux.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/mlme_linux.o
  CC [M]  /opt/rtl8188gu/os_dep/linux/recv_linux.o
/opt/rtl8188gu/os_dep/linux/recv_linux.c:285:7: error: conflicting types for 'rtw_os_alloc_msdu_pkt'; have '_pkt *(union recv_frame *, const u8 *, const u8 *, u8 *, u16)' {aka 'struct sk_buff *(union recv_frame *, const unsigned char *, const unsigned char *, unsigned char *, short unsigned int)'}
  285 | _pkt *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, const u8 *da, const u8 *sa, u8 *msdu ,u16 msdu_len)
      |       ^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/rtl8188gu/include/drv_types.h:87,
                 from /opt/rtl8188gu/os_dep/linux/recv_linux.c:17:
/opt/rtl8188gu/include/recv_osdep.h:50:7: note: previous declaration of 'rtw_os_alloc_msdu_pkt' with type '_pkt *(union recv_frame *, u16,  u8 *)' {aka 'struct sk_buff *(union recv_frame *, short unsigned int,  unsigned char *)'}
   50 | _pkt *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_Length, u8 *pdata);
      |       ^~~~~~~~~~~~~~~~~~~~~
/opt/rtl8188gu/os_dep/linux/recv_linux.c: In function 'napi_recv':
/opt/rtl8188gu/os_dep/linux/recv_linux.c:358:76: error: 'GRO_DROP' undeclared (first use in this function)
  358 |            if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
      |                                                               ^~~~~~~~

/opt/rtl8188gu/os_dep/linux/recv_linux.c:358:76: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:273: /opt/rtl8188gu/os_dep/linux/recv_linux.o] Error 1
make[1]: *** [Makefile:1853: /opt/rtl8188gu] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.13.6-arch1-1/build'
make: *** [Makefile:1894: modules] Error 2

最近编辑记录 Yanxu (2023-01-28 14:57:18)

离线

#2 2021-08-02 13:26:51

Mr.I
路人丙
所在地: Kerbal
注册时间: 2015-08-29
帖子: 308

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

我试着编译了一下,没什么特别问题, Linux >= 5.12 需要在 os_dep/linux/recv_linux.c 的 353 行做一个小改动,也就是你提到的那个 issue 中的说的那个:

#ifdef CONFIG_RTW_GRO
        if (pregistrypriv->en_gro) {
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 12, 0)
            if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
                rx_ok = _TRUE;
#else
            rtw_napi_gro_receive(&padapter->napi, pskb);
            rx_ok = _TRUE;
#endif
            goto next;
        }
#endif /* CONFIG_RTW_GRO */

这个解决了 'GRO_DROP' undeclared 这个问题,然后就好了,内核模块编译出来了。

但是,你的编译日志中的前面那个类型错误的问题我没有找到相关的讨论。

另外,楼主你没有装 bc

/bin/sh: line 1: bc: command not found

最近编辑记录 Mr.I (2021-08-02 13:45:26)

离线

#3 2021-08-02 13:51:54

Mr.I
路人丙
所在地: Kerbal
注册时间: 2015-08-29
帖子: 308

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

在仔细地看了一下那个类型错误问题之后,我发现你用的代码中似乎存在一些错误的改动,rtw_os_alloc_msdu_pkt 函数的类型与头文件中声明的类型不匹配,但是我从 github 上下载到的代码中的 rtw_os_alloc_msdu_pkt 参数声明是正确的,可能是你的修改导致了这个问题。

我建议你试一下下面的步骤:

1、安装 bc
2、从 https://github.com/McMCCRU/rtl8188gu 重新下载一份干净的 master 分支代码
3、对 os_dep/linux/recv_linux.c 的 353 行处手动做 Linux 5.12 Patch
4、make

离线

#4 2021-08-02 15:14:14

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

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

在另一个帖子里,bc 未找到那个错误出现N次了,我跟他说先装一下 bc,他一直都没装,我就懒得继续了。

离线

#5 2021-08-02 16:08:47

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

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

依云 说:

在另一个帖子里,bc 未找到那个错误出现N次了,我跟他说先装一下 bc,他一直都没装,我就懒得继续了。

后面装了,说bc没装的是之前的输出

离线

#6 2021-08-02 16:38:24

Mr.I
路人丙
所在地: Kerbal
注册时间: 2015-08-29
帖子: 308

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

依云 说:

在另一个帖子里

哎呀,没注意 tongue 刚翻了一下楼主的发帖记录后发现了

离线

#7 2021-08-02 20:28:00

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

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

编译完驱动,想转换USB模式该做什么?
我照着这个博客执行sudo usb_modeswitch -W  -v 0bda -p b711 -M失败,执行后常常卡着什么也不输出,有时输出usb_modeswitch的帮助页面。

离线

#8 2021-08-02 21:07:52

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

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

不如说说你为什么要切换模式?

离线

#9 2021-08-03 07:41:04

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

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

自然是因为插在电脑上的usb无线网卡被系统识别为u盘而非网卡

离线

#10 2021-08-03 11:52:08

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

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

Yanxu 说:

自然是因为插在电脑上的usb无线网卡被系统识别为u盘而非网卡

你一开始不是识别成网卡了吗?

离线

#11 2021-08-03 12:17:47

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

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

一开始被识别为u盘啊,是我哪里没说清楚?

离线

#12 2021-08-03 12:34:48

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

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

Yanxu 说:

一开始被识别为u盘啊,是我哪里没说清楚?

这不是很清楚是网卡么?

Bus 003 Device 007: ID 0bda:b711 Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter (After Modeswitch)

离线

#13 2021-08-03 15:44:32

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

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

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

离线

#14 2021-08-03 15:56:09

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

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

Yanxu 说:

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

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

离线

#15 2021-08-03 15:59:27

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

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

依云 说:
Yanxu 说:

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

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

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

离线

页脚