您尚未登录。

楼主 #1 2018-01-07 11:48:05

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

CC  ../src/l2_packet/l2_packet_linux.c
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: /usr/lib/../lib/libcrypto.a(threads_pthread.o): undefined reference to symbol 'pthread_getspecific@@GLIBC_2.4'
/usr/arm-linux-gnueabihf/lib/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [wpa_supplicant] Error 1
make[1]: Leaving directory `/home/vv3/Downloads/wifis/wpa_supplicant-2.6/wpa_supplicant'
make: *** [wpa_supplicant] Error 2

离线

#2 2018-01-07 12:02:45

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

找到Makefile 对应位置, 加 -lpthread 进去就好了。
看出错信息是没有找到 pthread 这个 lib





离线

楼主 #3 2018-01-07 12:42:29

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:

找到Makefile 对应位置, 加 -lpthread 进去就好了。
看出错信息是没有找到 pthread 这个 lib


晕哥,下面是Makefile文件,在那里加呢

MAKE := make -w
PWD := $(shell pwd)

PATH := /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin:/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin:/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin
PATH := $(PATH):/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/bin
CROSS_COMPILE :=arm-linux-gnueabihf-

SYSROOT := /opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/arm-fsl-linux-gnueabi/multi-libs/default

LIBNL_DIR = $(PWD)/libnl-1.1.4
OPENSSL_DIR = $(PWD)/openssl-1.0.1s
WPA_SUPPLICANT_DIR = $(PWD)/wpa_supplicant-2.6/wpa_supplicant

all:wpa_supplicant

wpa_supplicant:openssl libnl
        cp -rf $(WPA_SUPPLICANT_DIR)/defconfig $(WPA_SUPPLICANT_DIR)/.config
        $(MAKE) -C $(WPA_SUPPLICANT_DIR) CC=arm-linux-gnueabihf-gcc
        cp -rf $(WPA_SUPPLICANT_DIR)/wpa_cli $(WPA_SUPPLICANT_DIR)/wpa_supplicant $(PWD)

openssl:
        if [ ! -f $(OPENSSL_DIR)/config.log ];then cd $(OPENSSL_DIR) && ./config no-asm --prefix=$(SYSROOT)/usr os/compiler:arm-linux-gnueabihf-gcc;fi
     arm-linux-gnueabihf-gcc -shared -o libcrypto.so $(OPENSSL_DIR)/libcrypto.a
        arm-linux-gnueabihf-gcc -shared -o libssl.so $(OPENSSL_DIR)/libssl.a
        $(MAKE) -C $(OPENSSL_DIR) install DESTDIR=$(SYSROOT)
        cp -rf libcrypto.so libssl.so $(SYSROOT)/usr/lib

libnl:
         if [ ! -f $(LIBNL_DIR)/config.log ];then cd $(LIBNL_DIR) && ./configure --prefix=/usr --host=arm-linux-gnueabihfi;fi
        $(MAKE) -C $(LIBNL_DIR)
        $(MAKE) -C $(LIBNL_DIR) install DESTDIR=$(SYSROOT)

clean:
        rm -rf *.so *.so.* wpa_cli wpa_supplicant
   $(MAKE) -C $(OPENSSL_DIR)

离线

#4 2018-01-07 12:56:41

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

看不出来,去这里加试一试

arm-linux-gnueabihf-gcc -shared -o libcrypto.so $(OPENSSL_DIR)/libcrypto.a
arm-linux-gnueabihf-gcc -shared -o libssl.so $(OPENSSL_DIR)/libssl.





离线

楼主 #5 2018-01-07 18:18:16

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:

看不出来,去这里加试一试

arm-linux-gnueabihf-gcc -shared -o libcrypto.so $(OPENSSL_DIR)/libcrypto.a
arm-linux-gnueabihf-gcc -shared -o libssl.so $(OPENSSL_DIR)/libssl.

晕哥,在/usr/arm-linux-gnueabihf/lib/libpthread.so.0明明就有libpthread.so.o怎么还会出错呢
/usr/arm-linux-gnueabihf/lib/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

root@ubuntu:/usr/arm-linux-gnueabihf/lib# find ./ -name libpthread.so.0
./libpthread.so.0
root@ubuntu:/usr/arm-linux-gnueabihf/lib#

离线

#6 2018-01-07 18:50:40

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

这个错误不是找不到文件, 是你没有告诉Makefile去找 libpthread.so.xxx 文件。
有些make版本可能默认就去找 libpthread.so.xxx 文件了.





离线

楼主 #7 2018-01-08 00:31:38

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:

这个错误不是找不到文件, 是你没有告诉Makefile去找 libpthread.so.xxx 文件。
有些make版本可能默认就去找 libpthread.so.xxx 文件了.

晕哥,我还是不明白,都打印出/usr/arm-linux-gnueabihf/lib/libpthread.so.0:的路径怎么还说没找到libpthread.so.0库呢


/usr/arm-linux-gnueabihf/lib/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

离线

#8 2018-01-08 08:11:09

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

你把你的详细步骤说一下, 有空我帮你验证一下。





离线

楼主 #9 2018-01-08 08:40:17

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:

你把你的详细步骤说一下, 有空我帮你验证一下。

 

晕哥,我是按照http://m.blog.csdn.net/bhj1119/article/details/53514881这里修改编译的

离线

#10 2018-01-08 16:48:20

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

zhuacai 说:
晕哥 说:

你把你的详细步骤说一下, 有空我帮你验证一下。

 

晕哥,我是按照http://m.blog.csdn.net/bhj1119/article/details/53514881这里修改编译的

建议还是用buildroot, 可以自己指定编译器(工具链), 非常方便。
整出一个 wpa_supplicant 也是几分钟的事情。





离线

楼主 #11 2018-01-08 17:31:48

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:
zhuacai 说:
晕哥 说:

你把你的详细步骤说一下, 有空我帮你验证一下。

 

晕哥,我是按照http://m.blog.csdn.net/bhj1119/article/details/53514881这里修改编译的

建议还是用buildroot, 可以自己指定编译器(工具链), 非常方便。
整出一个 wpa_supplicant 也是几分钟的事情。

晕哥,我用buildroot也编译不过,
buildroot配置上wireless tools,wpa_supplicant编译出错,是什么问题

离线

#12 2018-01-08 19:36:47

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

和你上面的编译依赖一样,要把openssl,libnl弄进来。

去make menuconfig 里面把 openssl和libnl打开,
如果你实在找不到位置就修改 .config 文件。

BR2_PACKAGE_LIBNL=y
BR2_PACKAGE_OPENSSL=y





离线

楼主 #13 2018-01-11 10:04:35

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:

和你上面的编译依赖一样,要把openssl,libnl弄进来。

去make menuconfig 里面把 openssl和libnl打开,
如果你实在找不到位置就修改 .config 文件。

BR2_PACKAGE_LIBNL=y
BR2_PACKAGE_OPENSSL=y


晕哥,buildroot加上wpa_supplicant编译成功了,下到板里按这里的教程https://www.kancloud.cn/lichee/lpi0/345551加载wifi,还是不能连接路由器. libpcsclite.so.1没有,求方法,在此谢过.....
# ./connect_wx.sh
udhcpc: started, v1.27.2
wpa_supplicant: error while loading shared libraries: libpcsclite.so.1: cannot open shared object file: No such file or directory
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discove

离线

#14 2018-01-11 11:04:42

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

wpa_supplicant应该不依赖 libpcsclite的,既然出现这种状况,
那你去 .config 里面开启  BR2_PACKAGE_PCSC_LITE=y,
重新编译就有libpcsclite.so.1 了.





离线

楼主 #15 2018-01-12 20:08:38

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:

wpa_supplicant应该不依赖 libpcsclite的,既然出现这种状况,
那你去 .config 里面开启  BR2_PACKAGE_PCSC_LITE=y,
重新编译就有libpcsclite.so.1 了.



晕哥,按你上面操作可以了,不过还不能连接路由器,下面报的是什么错误呢?

# vi /etc/wpa_supplicant.conf文件
ctrl_interface=/usr/sbin/wpa_supplicant
ap_scan=1
network={
        ssid="vivo Y66"
        #psk="12345678"
        psk=fcb78cbd39a3c3248842f9e7f549faa0e9af3b1900ba01ec64b453d815e40c5a
}
~

# vi connect_wx.sh文件
#!/bin/sh
wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf &
udhcpc -i wlan0

~


# ifconfig wlan0 up
#
# ifconfig
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr A0:2C:36:01:55:64 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# ./connect_wx.sh
Successfully initialized wpa_supplicant
udhcpc: started, v1.27.2
udhcpc: sending discover
rfkill: Cannot open RFKILL control device
Could not unlink existing ctrl_iface socket '/usr/sbin/wpa_supplicant/wlan0': Not a directory
Failed to initialize control interface '/usr/sbin/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
udhcpc: sending discover
udhcpc: sending discover

离线

#16 2018-01-12 20:15:11

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

你没有装wifi的驱动?
wlan0设备存在吗?





离线

楼主 #17 2018-01-12 20:24:22

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:

你没有装wifi的驱动?
wlan0设备存在吗?

晕哥,装wifi的驱动了, ifconfig 可以看出有wlan0     Link encap:Ethernet  HWaddr A0:2C:36:01:55:64



connect_wx.sh  r8723bs.ko
# ./connect_wx.sh
udhcpc: started, v1.27.2
udhcpc: sending discover
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
Could not unlink existing ctrl_iface socket '/usr/sbin/wpa_supplicant/wlan0': Not a directory
Failed to initialize control interface '/usr/sbin/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
udhcpc: sending discover
udhcpc: sending discover
^C
# ifconfig
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr A0:2C:36:01:55:64 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

#

离线

#18 2018-01-12 21:45:17

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

感觉协议栈没有把组播广播配置进来,因为dhcp协议用到这个协议。





离线

#19 2018-01-13 09:09:22

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

你看下路由器的ip是多少,把wlan0设置成静态ip,然后再测试网络,这样可以排除dhcp的问题。
假如的路由器是 192.168.1.1
ifconfig wlan0 192.168.1.99
ping 192.168.1.99





离线

楼主 #20 2018-01-13 10:11:26

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:

你看下路由器的ip是多少,把wlan0设置成静态ip,然后再测试网络,这样可以排除dhcp的问题。
假如的路由器是 192.168.1.1
ifconfig wlan0 192.168.1.99
ping 192.168.1.99


晕哥,现在可能还不能连的路由器,
# ./connect_wx.sh
udhcpc: started, v1.27.2
Successfully initialized wpa_supplicant
udhcpc: sending discover
rfkill: Cannot open RFKILL control device
Could not unlink existing ctrl_iface socket '/usr/sbin/wpa_supplicant/wlan0': Not a directory
Failed to initialize control interface '/usr/sbin/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
udhcpc: sending discove




晕哥,按照你的方法输出下面的信息
# ifconfig wlan0 192.168.1.99
# ifconfig
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr A0:2C:36:01:55:64 
          inet addr:192.168.1.99  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# ping 192.168.1.99
PING 192.168.1.99 (192.168.1.99): 56 data bytes
64 bytes from 192.168.1.99: seq=0 ttl=64 time=0.463 ms
64 bytes from 192.168.1.99: seq=1 ttl=64 time=0.239 ms
64 bytes from 192.168.1.99: seq=2 ttl=64 time=0.196 ms
64 bytes from 192.168.1.99: seq=3 ttl=64 time=0.180 ms
64 bytes from 192.168.1.99: seq=4 ttl=64 time=0.174 ms
64 bytes from 192.168.1.99: seq=5 ttl=64 time=0.186 ms

离线

#21 2018-01-13 10:21:50

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

不好意思,我弄错了。
是 ping 192.168.1.1
再试一试





离线

楼主 #22 2018-01-13 11:01:47

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:

不好意思,我弄错了。
是 ping 192.168.1.1
再试一试

晕哥,输出下面信息
# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes

离线

#23 2018-01-13 11:05:21

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

zhuacai 说:
晕哥 说:

不好意思,我弄错了。
是 ping 192.168.1.1
再试一试

晕哥,输出下面信息
# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes

你的路由器ip是 192.168.1.1 吗?





离线

楼主 #24 2018-01-13 11:30:17

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:
zhuacai 说:
晕哥 说:

不好意思,我弄错了。
是 ping 192.168.1.1
再试一试

晕哥,输出下面信息
# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes

你的路由器ip是 192.168.1.1 吗?

晕哥,好像都没有连接路由器呢,也能ping 我路由器ip是 192.168.1.1


# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes

离线

#25 2018-01-13 11:39:06

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

PING 192.168.1.1 (192.168.1.1): 56 data bytes

这个信息说明网络不通。





# ping 192.168.1.99
PING 192.168.1.99 (192.168.1.99): 56 data bytes
64 bytes from 192.168.1.99: seq=0 ttl=64 time=0.463 ms
64 bytes from 192.168.1.99: seq=1 ttl=64 time=0.239 ms
64 bytes from 192.168.1.99: seq=2 ttl=64 time=0.196 ms
64 bytes from 192.168.1.99: seq=3 ttl=64 time=0.180 ms
64 bytes from 192.168.1.99: seq=4 ttl=64 time=0.174 ms
64 bytes from 192.168.1.99: seq=5 ttl=64 time=0.186 ms

这样才代表网络畅通!





离线

楼主 #26 2018-01-13 12:49:43

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:

PING 192.168.1.1 (192.168.1.1): 56 data bytes

这个信息说明网络不通。





# ping 192.168.1.99
PING 192.168.1.99 (192.168.1.99): 56 data bytes
64 bytes from 192.168.1.99: seq=0 ttl=64 time=0.463 ms
64 bytes from 192.168.1.99: seq=1 ttl=64 time=0.239 ms
64 bytes from 192.168.1.99: seq=2 ttl=64 time=0.196 ms
64 bytes from 192.168.1.99: seq=3 ttl=64 time=0.180 ms
64 bytes from 192.168.1.99: seq=4 ttl=64 time=0.174 ms
64 bytes from 192.168.1.99: seq=5 ttl=64 time=0.186 ms

这样才代表网络畅通!


晕哥,都没连到路由器,ping不通吧,现在就是想怎样才能连到路由器,我现在是连接路由出错了,求晕哥支招....

Successfully initialized wpa_supplicant
udhcpc: sending discover
rfkill: Cannot open RFKILL control device
Could not unlink existing ctrl_iface socket '/usr/sbin/wpa_supplicant/wlan0': Not a directory
Failed to initialize control interface '/usr/sbin/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
nl80211: deinit ifname=wlan0 disabled_11b_rates=0

离线

#27 2018-01-13 13:39:33

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

zhuacai 说:
晕哥 说:

PING 192.168.1.1 (192.168.1.1): 56 data bytes

这个信息说明网络不通。





# ping 192.168.1.99
PING 192.168.1.99 (192.168.1.99): 56 data bytes
64 bytes from 192.168.1.99: seq=0 ttl=64 time=0.463 ms
64 bytes from 192.168.1.99: seq=1 ttl=64 time=0.239 ms
64 bytes from 192.168.1.99: seq=2 ttl=64 time=0.196 ms
64 bytes from 192.168.1.99: seq=3 ttl=64 time=0.180 ms
64 bytes from 192.168.1.99: seq=4 ttl=64 time=0.174 ms
64 bytes from 192.168.1.99: seq=5 ttl=64 time=0.186 ms

这样才代表网络畅通!


晕哥,都没连到路由器,ping不通吧,现在就是想怎样才能连到路由器,我现在是连接路由出错了,求晕哥支招....

Successfully initialized wpa_supplicant
udhcpc: sending discover
rfkill: Cannot open RFKILL control device
Could not unlink existing ctrl_iface socket '/usr/sbin/wpa_supplicant/wlan0': Not a directory
Failed to initialize control interface '/usr/sbin/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
nl80211: deinit ifname=wlan0 disabled_11b_rates=0


建立 /etc/wpa_supplicant.conf 文件:

ctrl_interface=/var/run/wpa_supplicant 
ctrl_interface_group=0 
ap_scan=1 
network={
    ssid="debugdump"       
    scan_ssid=1
    key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
    pairwise=TKIP CCMP
    group=CCMP TKIP WEP104 WEP40
    psk="13800138000" 
    priority=5             
}

依次执行下面的shell命令:

#安装驱动
#激活WIFI网卡
#加密连接无线WIFI热点
#DHCP获取IP
insmod /usr/lib/r8723bs.ko
ifconfig wlan0 up
wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
udhcpc -i wlan0

参考链接: 开发板怎挂载wifi【RTL8723BS】,求写入门教程!





离线

楼主 #28 2018-01-13 15:24:19

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:
zhuacai 说:
晕哥 说:

PING 192.168.1.1 (192.168.1.1): 56 data bytes

这个信息说明网络不通。






这样才代表网络畅通!


晕哥,都没连到路由器,ping不通吧,现在就是想怎样才能连到路由器,我现在是连接路由出错了,求晕哥支招....

Successfully initialized wpa_supplicant
udhcpc: sending discover
rfkill: Cannot open RFKILL control device
Could not unlink existing ctrl_iface socket '/usr/sbin/wpa_supplicant/wlan0': Not a directory
Failed to initialize control interface '/usr/sbin/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
nl80211: deinit ifname=wlan0 disabled_11b_rates=0


建立 /etc/wpa_supplicant.conf 文件:

ctrl_interface=/var/run/wpa_supplicant 
ctrl_interface_group=0 
ap_scan=1 
network={
    ssid="debugdump"       
    scan_ssid=1
    key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
    pairwise=TKIP CCMP
    group=CCMP TKIP WEP104 WEP40
    psk="13800138000" 
    priority=5             
}

依次执行下面的shell命令:

#安装驱动
#激活WIFI网卡
#加密连接无线WIFI热点
#DHCP获取IP
insmod /usr/lib/r8723bs.ko
ifconfig wlan0 up
wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
udhcpc -i wlan0

参考链接: 开发板怎挂载wifi【RTL8723BS】,求写入门教程!




晕哥,按你上面操出现下面信息是什么意思呢

# wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
wpa_supplicant v2.6
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
ap_scan=1
Priority group 5
   id=0 ssid='vivo Y66'
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Using driver-based off-channel TX
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x1975d8
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0104
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=040a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=040b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=040c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=040d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=090a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=090b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=090c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=090d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0409506f9a09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=7f506f9a09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0801
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0a07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0a11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0a1a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=1101
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=1102
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0505
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0500
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
wlan0: Own MAC address: a0:2c:36:01:55:64
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlan0: Setting scan request: 0.100000 sec
wlan0: WPS: UUID based on MAC address: 2447cb60-e65e-50be-824c-bb9134881be3
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
[ 1301.268780] RTL8723BS: nolinked power save leave associated

EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
ctrl_interface_group=0
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
Daemonize..
# [ 1303.477955] RTL8723BS: nolinked power save enter
[ 1308.488864] RTL8723BS: nolinked power save leave
[ 1310.472870] RTL8723BS: rtw_set_802_11_connect(wlan0)  fw_state = 0x00000008
[ 1310.800494] RTL8723BS: start auth
[ 1310.807609] RTL8723BS: auth success, start assoc
[ 1310.830517] RTL8723BS: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
[ 1310.837659] RTL8723BS: assoc success
[ 1310.845491] RTL8723BS: send eapol packet
[ 1311.836553] RTL8723BS: send eapol packet
[ 1312.837956] RTL8723BS: send eapol packet
[ 1313.838361] RTL8723BS: send eapol packet
[ 1314.139276] RTL8723BS: rtw_aes_decrypt(wlan0) no_gkey_bc_cnt:3, no_gkey_mc_cnt:0
[ 1314.841024] RTL8723BS: sta recv deauth reason code(2) sta:70:78:8b:33:94:be, ignore = 0
[ 1316.717999] RTL8723BS: nolinked power save enter
[ 1324.718856] RTL8723BS: nolinked power save leave
[ 1326.702651] RTL8723BS: rtw_set_802_11_connect(wlan0)  fw_state = 0x00000008
[ 1326.979802] RTL8723BS: start auth
[ 1326.988505] RTL8723BS: auth success, start assoc
[ 1327.013200] RTL8723BS: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
[ 1327.020347] RTL8723BS: assoc success
[ 1327.027824] RTL8723BS: send eapol packet
[ 1328.020539] RTL8723BS: send eapol packet
[ 1329.022228] RTL8723BS: send eapol packet
[ 1330.023371] RTL8723BS: send eapol packet
[ 1330.769527] RTL8723BS: rtw_aes_decrypt(wlan0) no_gkey_bc_cnt:1, no_gkey_mc_cnt:0
[ 1331.024759] RTL8723BS: sta recv deauth reason code(2) sta:70:78:8b:33:94:be, ignore = 0
[ 1332.898025] RTL8723BS: nolinked power save enter
[ 1354.898890] RTL8723BS: nolinked power save leave
[ 1356.882529] RTL8723BS: rtw_set_802_11_connect(wlan0)  fw_state = 0x00000008
[ 1357.187931] RTL8723BS: start auth
[ 1357.196755] RTL8723BS: auth success, start assoc
[ 1357.219207] RTL8723BS: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
[ 1357.226352] RTL8723BS: assoc success
[ 1357.233735] RTL8723BS: send eapol packet
[ 1357.286822] RTL8723BS: rtw_aes_decrypt(wlan0) no_gkey_bc_cnt:1, no_gkey_mc_cnt:0
[ 1358.229614] RTL8723BS: send eapol packet
[ 1358.784501] RTL8723BS: rtw_aes_decrypt(wlan0) no_gkey_bc_cnt:2, no_gkey_mc_cnt:0
[ 1359.228322] RTL8723BS: send eapol packet
[ 1360.230025] RTL8723BS: send eapol packet
[ 1361.231350] RTL8723BS: sta recv deauth reason code(2) sta:70:78:8b:33:94:be, ignore = 0
[ 1363.128012] RTL8723BS: nolinked power save enter
[ 1408.138840] RTL8723BS: nolinked power save leave
[ 1410.337995] RTL8723BS: nolinked power save enter
[ 1415.338783] RTL8723BS: nolinked power save leave
[ 1417.322663] RTL8723BS: rtw_set_802_11_connect(wlan0)  fw_state = 0x00000008
[ 1417.604119] RTL8723BS: start auth
[ 1417.610264] RTL8723BS: auth success, start assoc
[ 1417.629088] RTL8723BS: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
[ 1417.636244] RTL8723BS: assoc success
[ 1417.643180] RTL8723BS: send eapol packet
[ 1418.635796] RTL8723BS: send eapol packet
[ 1419.637077] RTL8723BS: send eapol packet
[ 1420.637347] RTL8723BS: send eapol packet
[ 1421.638541] RTL8723BS: sta recv deauth reason code(2) sta:70:78:8b:33:94:be, ignore = 0
[ 1423.508120] RTL8723BS: nolinked power save enter
[ 1498.518831] RTL8723BS: nolinked power save leave
[ 1500.502595] RTL8723BS: rtw_set_802_11_connect(wlan0)  fw_state = 0x00000008
[ 1500.753296] RTL8723BS: start auth
[ 1500.759434] RTL8723BS: auth success, start assoc
[ 1500.778483] RTL8723BS: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
[ 1500.785592] RTL8723BS: assoc success
[ 1500.793359] RTL8723BS: send eapol packet
[ 1501.785384] RTL8723BS: send eapol packet
[ 1502.786761] RTL8723BS: send eapol packet
[ 1503.786946] RTL8723BS: send eapol packet
[ 1504.788782] RTL8723BS: sta recv deauth reason code(2) sta:70:78:8b:33:94:be, ignore = 0
[ 1506.728098] RTL8723BS: nolinked power save enter
[ 1647.738849] RTL8723BS: nolinked power save leave
[ 1649.937830] RTL8723BS: nolinked power save enter
[ 1654.938766] RTL8723BS: nolinked power save leave
[ 1656.922534] RTL8723BS: rtw_set_802_11_connect(wlan0)  fw_state = 0x00000008
[ 1657.221159] RTL8723BS: start auth
[ 1657.229345] RTL8723BS: auth success, start assoc
[ 1657.249292] RTL8723BS: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
[ 1657.256442] RTL8723BS: assoc success
[ 1657.263406] RTL8723BS: send eapol packet
[ 1658.256554] RTL8723BS: send eapol packet
[ 1659.257052] RTL8723BS: send eapol packet
[ 1660.258222] RTL8723BS: send eapol packet
[ 1660.320802] RTL8723BS: rtw_aes_decrypt(wlan0) no_gkey_bc_cnt:1, no_gkey_mc_cnt:0
[ 1661.260196] RTL8723BS: sta recv deauth reason code(2) sta:70:78:8b:33:94:be, ignore = 0
[ 1663.128079] RTL8723BS: nolinked power save enter

离线

#29 2018-01-13 15:52:42

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

[ 1657.221159] RTL8723BS: start auth
[ 1657.229345] RTL8723BS: auth success, start assoc



看起来连接路由器成功了
你按上面设置静态ip,然后ping路由器ip试一试。





离线

楼主 #30 2018-01-13 20:14:07

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:

[ 1657.221159] RTL8723BS: start auth
[ 1657.229345] RTL8723BS: auth success, start assoc



看起来连接路由器成功了
你按上面设置静态ip,然后ping路由器ip试一试。



谢谢晕哥帮忙,设置静态ip
# ifconfig wlan0 192.168.1.99 就可以了
# wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
wpa_supplicant v2.6
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
ap_scan=1
Priority group 5
   id=0 ssid='www.13aiyt.com'
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Using driver-based off-channel TX
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x1975d8
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0104
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 01 04
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=040a
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 04 0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=040b
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 04 0b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=040c
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 04 0c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=040d
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 04 0d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=090a
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 09 0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=090b
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 09 0b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=090c
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 09 0c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=090d
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 09 0d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0409506f9a09
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=6): 04 09 50 6f 9a 09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=7f506f9a09
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=5): 7f 50 6f 9a 09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0801
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 08 01
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=06
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=1): 06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0a07
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 0a 07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0a11
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 0a 11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0a1a
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 0a 1a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=1101
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 11 01
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=1102
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 11 02
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0505
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 05 05
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1975d8 match=0500
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 05 00
nl80211: Failed to register Action frame processing - ignore for now
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
wlan0: Own MAC address: a0:2c:36:01:55:64
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlan0: Setting scan request: 0.100000 sec
wlan0: WPS: UUID based on MAC address: 2447cb60-e65e-50be-824c-bb9134881be3
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
Using existing control interface directory.
ctrl_interface_group=0
ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

Failed to add interface wlan0
wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 state=DISCONNECTED
nl80211: Data frame filter flags=0x0
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wlan0: WPA: Clear old PMK and PTK
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout
Off-channel: Clear pending Action frame TX (pending_action_tx=(nil)
nl80211: Data frame filter flags=0x0
nl80211: Failed to open /proc/sys/net/ipv6/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
nl80211: Failed to set IPv6 unicast in multicast filter
Remove interface wlan0 from radio phy0
Remove radio phy0
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=3 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Unsubscribe mgmt frames handle 0x8891fd51 (mode change)
# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=6.107 ms
64 bytes from 192.168.1.1: seq=1 ttl=64 time=1.567 ms
64 bytes from 192.168.1.1: seq=2 ttl=64 time=1.586 ms
64 bytes from 192.168.1.1: seq=3 ttl=64 time=1.583 ms
64 bytes from 192.168.1.1: seq=4 ttl=64 time=1.610 ms
64 bytes from 192.168.1.1: seq=5 ttl=64 time=1.544 ms
64 bytes from 192.168.1.1: seq=6 ttl=64 time=1.890 ms
64 bytes from 192.168.1.1: seq=7 ttl=64 time=1.564 ms
64 bytes from 192.168.1.1: seq=8 ttl=64 time=1.734 ms
64 bytes from 192.168.1.1: seq=9 ttl=64 time=3.203 ms
64 bytes from 192.168.1.1: seq=10 ttl=64 time=1.633 ms
64 bytes from 192.168.1.1: seq=11 ttl=64 time=1.593 ms
64 bytes from 192.168.1.1: seq=12 ttl=64 time=1.628 ms
64 bytes from 192.168.1.1: seq=13 ttl=64 time=1.526 ms
64 bytes from 192.168.1.1: seq=14 ttl=64 time=1.579 ms
64 bytes from 192.168.1.1: seq=15 ttl=64 time=2.015 ms
64 bytes from 192.168.1.1: seq=16 ttl=64 time=1.815 ms
64 bytes from 192.168.1.1: seq=17 ttl=64 time=2.008 ms
64 bytes from 192.168.1.1: seq=18 ttl=64 time=1.557 ms
64 bytes from 192.168.1.1: seq=19 ttl=64 time=1.652 ms

离线

#31 2018-01-13 20:30:28

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

非常高兴听到这个好消息。
下一步用dhcp获取动态IP吧。





离线

楼主 #32 2018-01-18 11:51:44

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

晕哥 说:

非常高兴听到这个好消息。
下一步用dhcp获取动态IP吧。

谢谢,晕哥的一路的支持,dhcp获取动态IP可以了
# vi connect_wx.sh
#!/bin/sh
wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf &
udhcpc -i wlan0
# vi wifi.sh
#!/bin/sh
insmod /root/r8723bs.ko
ifconfig wlan0 up
/root/connect_wx.sh


# ./wifi.sh
[  164.538315] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[  164.554820] RTL8723BS: module init start
[  164.558887] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[  164.565930] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[  164.573609] pnetdev = c3ba1800
[  164.609772] RTL8723BS: rtw_ndev_init(wlan0)
[  164.615509] RTL8723BS: module init ret =0
[  164.627672] rtl8723bs: acquire FW from file:rtlwifi/rtl8723bs_nic.bin
udhcpc: started, v1.27.2
udhcpc: sending discover
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
wlan0: Trying to associate with e0:05:c5:c5:5c:c2 (SSID='www.13a[  167.902052] RTL8723BS: rtw_set_802_11_connect(wlan0)  fw_state = 0x00000008
iyt.com' freq=2452 MHz)
[  168.197404] RTL8723BS: start auth
[  168.202503] RTL8723BS: auth success, start assoc
[  168.211985] RTL8723BS: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
[  168.219147] RTL8723BS: assoc success
wlan0: Associated with e0:05:c5:c5:5c:c2
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
[  168.230660] RTL8723BS: send eapol packet
[  168.241207] RTL8723BS: send eapol packet
[  168.245761] RTL8723BS: set pairwise key camid:4, addr:e0:05:c5:c5:5c:c2, kid:0, type:AES
wlan0: WPA: Key negotiation completed with e0:05:c5:c5:5c:c2 [PT[  168.256602] RTL8723BS: set group key camid:5, addr:e0:05:c5:c5:5c:c2, kid:1, type:AES
K=CCMP GTK=CCMP]
wlan0: CTRL-EVENT-CONNECTED - Connection to e0:05:c5:c5:5c:c2 completed [id=0 id_str=]
udhcpc: sending discover
udhcpc: sending select for 192.168.1.103
udhcpc: lease of 192.168.1.103 obtained, lease time 7200

离线

#33 2018-01-18 11:56:44

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 编译出错误,谁能我看下这是什么错误,这错误要怎么才解决?

真是一个消息,星辰大海的路上又多了一位挖坑人。   *_*





离线

页脚

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

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