OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 1332|回复: 2

alpha开发板,USB无线网卡 ifconfig wlan0 up 导致USB掉线

[复制链接]

2

主题

11

帖子

0

精华

新手上路

积分
23
金钱
23
注册时间
2023-8-26
在线时间
3 小时
发表于 2023-8-26 16:07:16 | 显示全部楼层 |阅读模式
1金钱
alpha i.MX6ull开发板
usb无限网卡,随机赠送的,应该是8188eu;
按照教材编译之后,可以正常安装网卡:

/# modprobe -v 8188eu
[16:00:05:914] [    9.187544] RTL871X: module init start␍␊
[16:00:05:923] [    9.191319] RTL871X: rtl8188eu v4.3.0.9_15178.20150907␍␊
[16:00:05:932] [    9.201117] RTL871X: build time: Aug 22 2023 21:31:32␍␊
[16:00:05:941] [    9.211109] bFWReady == _FALSE call reset 8051...␍␊
[16:00:05:980] [    9.254456] RTL871X: rtw_ndev_init(wlan0)␍␊
[16:00:05:991] [    9.261387] usbcore: registered new interface driver rtl8188eu␍␊
[16:00:06:040] [    9.314990] RTL871X: module init ret=0␍␊


[16:00:09:666] / # lsmod␍␊
[16:00:14:200] Module                  Size  Used by    Not tainted␍␊
[16:00:14:203] 8188eu                778455  0 ␍␊



[16:01:04:059] / # iwconfig␍␊
[16:01:12:134] wlan0     unassociated  Nickname:"<WIFI@REALTEK>"&#9229;&#9226;
[16:01:12:136]           Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   &#9229;&#9226;
[16:01:12:145]           Sensitivity:0/0  &#9229;&#9226;
[16:01:12:145]           Retryff   RTS thrff   Fragment thrff&#9229;&#9226;
[16:01:12:156]           Encryption keyff&#9229;&#9226;
[16:01:12:156]           Power Managementff&#9229;&#9226;
[16:01:12:156]           Link Quality:0  Signal level:0  Noise level:0&#9229;&#9226;
[16:01:12:169]           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0&#9229;&#9226;
[16:01:12:169]           Tx excessive retries:0  Invalid misc:0   Missed beacon:0&#9229;&#9226;

[16:01:12:194] / # lsusb&#9229;&#9226;
[16:02:54:678] Bus 001 Device 002: ID 1a40:0101&#9229;&#9226;
[16:02:54:678] Bus 001 Device 001: ID 1d6b:0002&#9229;&#9226;
[16:02:54:690] Bus 001 Device 003: ID 0bda:8179&#9229;

然后 ifconfig wlan0 up; 会显示“usb 1-1.2: USB disconnect, device number 3”;
[16:02:54:690] / # ifconfig wlan0 up&#9229;&#9226;
[16:03:38:005] [  221.254127] ==> rtl8188e_iol_efuse_patch &#9229;&#9226;
[16:03:38:329] [  221.577738] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready&#9229;&#9226;
[16:03:38:335] [  221.584522] usb 1-1.2: USB disconnect, device number 3&#9229;&#9226;
[16:03:38:342] [  221.590147] RTL871X: indicate disassoc&#9229;&#9226;
[16:03:38:351] / # [  221.594758] RTL871X: rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 478&#9229;&#9226;
[16:03:38:358] [  221.603790] RTL871X: rtw_ndev_uninit(wlan0)&#9229;&#9226;
[16:03:38:375] [  221.623759] RTL871X: rtw_dev_unload: driver not in IPS&#9229;

并且USB掉线
[16:04:37:065] lsusb&#9229;&#9226;
[16:04:37:074] Bus 001 Device 002: ID 1a40:0101&#9229;&#9226;
[16:04:37:074] Bus 001 Device 001: ID 1d6b:0002&#9229;&#9226;
[16:04:37:082] / #

iwconfig看不到网卡了
[16:06:27:541] / # iwconfig&#9229;&#9226;
[16:06:35:020] sit0      no wireless extensions.&#9229;&#9226;
[16:06:35:020] &#9229;&#9226;
[16:06:35:020] lo        no wireless extensions.&#9229;&#9226;
[16:06:35:033] &#9229;&#9226;
[16:06:35:033] eth0      no wireless extensions.&#9229;&#9226;
[16:06:35:033] &#9229;&#9226;
[16:06:35:033] eth1      no wireless extensions.&#9229;&#9226;
[16:06:35:033] &#9229;&#9226;
[16:06:35:033] can0      no wireless extensions.&#9229;&#9226;
[16:06:35:033] &#9229;&#9226;
[16:06:35:033] / #

各位有没有遇到这个情况的,请帮忙指点一下,多谢!



最佳答案

查看完整内容[请看2#楼]

我换了一个8723bu的USB无线网卡,就好了
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

2

主题

11

帖子

0

精华

新手上路

积分
23
金钱
23
注册时间
2023-8-26
在线时间
3 小时
 楼主| 发表于 2023-8-26 16:07:17 | 显示全部楼层
我换了一个8723bu的USB无线网卡,就好了
回复

使用道具 举报

2

主题

11

帖子

0

精华

新手上路

积分
23
金钱
23
注册时间
2023-8-26
在线时间
3 小时
 楼主| 发表于 2023-8-26 16:17:13 | 显示全部楼层

alpha i.MX6ull开发板
usb无限网卡,随机赠送的,应该是8188eu;
按照教材编译之后,可以正常安装网卡:

/# modprobe -v 8188eu
[16:10:30:626] [   10.029228] 8188eu: unknown parameter 'rtw_vht_enable' ignored
[16:10:30:631] [   10.035280] 8188eu: unknown parameter 'rtw_power_mgmt' ignored
[16:10:30:639] [   10.042570] RTL871X: module init start
[16:10:30:649] [   10.051093] RTL871X: rtl8188eu v4.3.0.9_15178.20150907
[16:10:30:656] [   10.056412] RTL871X: build time: Aug 22 2023 21:31:32
[16:10:30:665] [   10.066303] bFWReady == _FALSE call reset 8051...
[16:10:30:706] [   10.109344] RTL871X: rtw_ndev_init(wlan0)
[16:10:30:718] [   10.116351] usbcore: registered new interface driver rtl8188eu
[16:10:30:720] [   10.122270] RTL871X: module init ret=0

[16:10:34:154] / # lsmod
[16:10:41:286] Module                  Size  Used by    Not tainted
[16:10:41:290] 8188eu                778455  0

[16:12:46:214] / # iwconfig
[16:12:56:870] wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
[16:12:56:872]           Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   
[16:12:56:882]           Sensitivity:0/0  
[16:12:56:882]           Retryff   RTS thrff   Fragment thrff
[16:12:56:894]           Encryption keyff
[16:12:56:894]           Power Managementff
[16:12:56:894]           Link Quality:0  Signal level:0  Noise level:0
[16:12:56:904]           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
[16:12:56:904]           Tx excessive retries:0  Invalid misc:0   Missed beacon:0
[16:12:56:913]
[16:12:56:913] sit0      no wireless extensions.
[16:12:56:913]
[16:12:56:913] lo        no wireless extensions.
[16:12:56:924]
[16:12:56:924] eth0      no wireless extensions.
[16:12:56:924]
[16:12:56:924] eth1      no wireless extensions.
[16:12:56:924]
[16:12:56:924] can0      no wireless extensions.

[16:12:56:936] / # lsusb
[16:13:52:526] Bus 001 Device 002: ID 1a40:0101
[16:13:52:526] Bus 001 Device 001: ID 1d6b:0002
[16:13:52:536] Bus 001 Device 003: ID 0bda:8179




然后 ifconfig wlan0 up; 会显示“usb 1-1.2: USB disconnect, device number 3”;
[16:13:52:536] / # ifconfig wlan0 up
[16:14:47:210] [  132.794049] ==> rtl8188e_iol_efuse_patch
[16:14:47:424] [  133.007919] usb 1-1.2: USB disconnect, device number 3
[16:14:47:539] [  133.122976] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[16:14:47:544] [  133.129076] RTL871X: indicate disassoc
[16:14:47:551] [  133.132879] RTL871X: rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 478
[16:14:47:561] / # [  133.142632] RTL871X: rtw_ndev_uninit(wlan0)
[16:14:47:579] [  133.163703] RTL871X: rtw_dev_unload: driver not in IPS

然后就看不到网卡wlan0
[16:15:59:660] / # iwconfig
[16:16:04:723] sit0      no wireless extensions.
[16:16:04:723]
[16:16:04:723] lo        no wireless extensions.
[16:16:04:733]
[16:16:04:733] eth0      no wireless extensions.
[16:16:04:733]
[16:16:04:733] eth1      no wireless extensions.
[16:16:04:733]
[16:16:04:733] can0      no wireless extensions.
[16:16:04:750]

也看不到对应的usb了
[16:16:04:750] / # lsusb
[16:16:52:710] Bus 001 Device 002: ID 1a40:0101
[16:16:52:712] Bus 001 Device 001: ID 1d6b:0002
[16:16:52:721] / #

各位有没有遇到这个情况的,请帮忙指点一下,多谢!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-25 01:37

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表