直接上干货:
**************************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
可以用如下.config
config.7z
4.编译
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j4
5.生成dtb和zImage
****************rtl.bin and run
1.usb转接器插入rtl8188xx网卡
2.系统起来后报错
配合Xshell软件使用串口把需要的bin传到/lib/firmware/rtlwifi/路径下
命令:
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
奈斯~~~
ping一下网址:
使用一下SSH:
离线
离线
大佬,nano初始的镜像文件下这个otg 功能是不可用的是么?
离线
在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经验参考一下。
离线
@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了。
离线
请问大佬 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)
离线