您尚未登录。

楼主 # 2022-01-04 16:51:04

忘忘大礼包
会员
注册时间: 2021-12-27
已发帖子: 2
积分: 7

licheepi-nano OTG挂载RTL8188xx终于驱动起来了~

直接上干货:

**************************rootfs
1.下载buildroot
git clone https://buildroot.org/downloads/buildroot-2018.02.2.tar.gz
2.至少勾选如下工具
openssh
wpa_supplicant
lrzsz
可以直接用如下config:
buildroot_config.7z
3.编译
make

***********************DTB and zImage
参考论坛大神的修改添加usb驱动:
https://whycan.com/t_6021.html
1.获取5.2源码
git clone https://github.com/Lichee-Pi/linux.git
2.打patch
usb.7z
patch p1 < usb.patch
3.kernel勾选rtl8188xx
+ RF switch subsystem support//记得把RFKILL也全部勾一下,不然后面会报缺少rfkill
rtl8188.png
可以用如下.config
config.7z
4.编译
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-  -j4
5.生成dtb和zImage


****************rtl.bin and run
1.usb转接器插入rtl8188xx网卡
usb.jpg

2.系统起来后报错
rtl固件报错.png

配合Xshell软件使用串口把需要的bin传到/lib/firmware/rtlwifi/路径下

.png

命令:
rz -b -e -y
固件:
RTL固件.7z

3.设置修改配置文件
1)mkdir -p /var/run/wpa_supplicant
2)vi /etc/wpa_supplicant.conf
+ ctrl_interface=/var/run/wpa_supplicant
+ ap_scan=1
+ network={
+     ssid="你的无线网络ssid"
+     psk="你的无线网络密码"
+ }
3)vi /etc/network/interfaces
+ auto wlan0
+ iface wlan0 inet dhcp
+     wpa-ssid "你的无线网络ssid"
+     wpa-psk  "你的无线网络密码"

4.启动WIFI并执行配置
ifconfig wlan0 up
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
ifup wlan0
OK.png
奈斯~~~

ping一下网址:
ping_ok.png
使用一下SSH:
SSH_OK.png

离线

#1 2022-01-04 19:30:41

ben0593
会员
注册时间: 2022-01-03
已发帖子: 3
积分: 3

Re: licheepi-nano OTG挂载RTL8188xx终于驱动起来了~

该评论内容与本帖子无关,鼓励各位坑友积极发言讨论与帖子有关的内容!

离线

  • 不通过:其他

#3 2024-01-19 11:06:04

keaihuan21
会员
注册时间: 2024-01-19
已发帖子: 11
积分: 6

Re: licheepi-nano OTG挂载RTL8188xx终于驱动起来了~

大佬,nano初始的镜像文件下这个otg 功能是不可用的是么?

离线

#4 2024-03-30 18:23:32

willX
会员
注册时间: 2019-09-06
已发帖子: 42
积分: 26

Re: licheepi-nano OTG挂载RTL8188xx终于驱动起来了~

在buildroot里找到了RTL8188EU的驱动,使能之后dmesg里的确能看到USB识别到了RTL8188,但是在执行使能命令:wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf 之后,总是会报如下的错误。

# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: Failed to initialize driver interface

不知道大佬有没有这方面的debug经验参考一下。

离线

#5 2024-03-30 18:59:17

willX
会员
注册时间: 2019-09-06
已发帖子: 42
积分: 26

Re: licheepi-nano OTG挂载RTL8188xx终于驱动起来了~

@willX
自问自答了哈,是命令配置的问题,应该用:
wpa_supplicant -B -c /etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -D wext
然后使用命令:
wpa_cli -iwlan0 status 就能看到WiFi的连接状态了。
但是LZ后续的命令ifup wlan0始终执行失败,只能手动udhcpc -i wlan0执行自动获取IP,然后就看到RTL8188成功获取IP并连接到AP了。

离线

#6 2024-04-19 22:11:02

LLCC
会员
注册时间: 2024-02-04
已发帖子: 7
积分: 2

Re: licheepi-nano OTG挂载RTL8188xx终于驱动起来了~

请问大佬 RTL8188FTV 插上后如下报错是哪里出问题了呢?

# [   26.021868] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[   26.171873] usb 1-1: device descriptor read/64, error -71
[   26.881853] usb 1-1: device not accepting address 2, error -71
[   27.031885] usb 1-1: new high-speed USB device number 3 using musb-hdrc
[   27.621835] usb 1-1: device not accepting address 3, error -71
[   27.627914] usb usb1-port1: attempt power cycle
[   27.851865] usb 1-1: new high-speed USB device number 4 using musb-hdrc
[   27.882463] usb 1-1: device descriptor read/8, error -71
[   28.032381] usb 1-1: device descriptor read/8, error -71
[   28.302000] usb 1-1: new high-speed USB device number 5 using musb-hdrc
[   28.741861] usb 1-1: device not accepting address 5, error -71
[   28.747939] usb usb1-port1: unable to enumerate USB device
[   32.872001] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_suspend (80, <SessEnd), retry #0, port1 00000505
[   35.041949] usb 1-1: new high-speed USB device number 6 using musb-hdrc
[   35.191934] usb 1-1: device descriptor read/64, error -71
[   41.817495] musb-hdrc musb-hdrc.1.auto: Babble
[   42.371970] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[   42.378757] usb usb1-port1: attempt power cycle
[   42.601852] usb 1-1: new high-speed USB device number 8 using musb-hdrc
[   42.632411] musb-hdrc musb-hdrc.1.auto: Babble
[   43.411857] usb 1-1: new high-speed USB device number 9 using musb-hdrc
[   43.442366] usb 1-1: device descriptor read/8, error -71
[   43.592232] usb 1-1: device descriptor read/8, error -71
[   43.712062] usb usb1-port1: unable to enumerate USB device
[   45.422002] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_suspend (80, <SessEnd), retry #0, port1 00000505
[   47.141858] usb 1-1: new high-speed USB device number 10 using musb-hdrc
[   47.291858] usb 1-1: device descriptor read/64, error -71
[   47.643520] musb-hdrc musb-hdrc.1.auto: Babble
[   48.371869] usb 1-1: new high-speed USB device number 11 using musb-hdrc
[   48.508205] musb-hdrc musb-hdrc.1.auto: Babble
[   48.961967] usb usb1-port1: attempt power cycle
[   49.401841] usb 1-1: new high-speed USB device number 12 using musb-hdrc
[   49.432433] usb 1-1: device descriptor read/8, error -71
[   49.582337] usb 1-1: device descriptor read/8, error -71
[   49.812023] musb-hdrc musb-hdrc.1.auto: Babble
[   49.851936] usb 1-1: new high-speed USB device number 13 using musb-hdrc
[   50.641853] usb 1-1: new high-speed USB device number 14 using musb-hdrc
[   50.791860] usb 1-1: device descriptor read/64, error -71
[   51.025990] musb-hdrc musb-hdrc.1.auto: Babble
[   51.871877] usb 1-1: new high-speed USB device number 15 using musb-hdrc
[   56.212145] usb usb1-port1: attempt power cycle

最近编辑记录 LLCC (2024-04-19 22:12:28)

离线

#7 2024-04-19 22:17:16

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,244
积分: 9197

Re: licheepi-nano OTG挂载RTL8188xx终于驱动起来了~

检查供电和USB信号完整性,最好用稳定的开发板先测试。





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn