kendryte / k230_docs

Kendryte K230 SDK Docs
BSD 2-Clause "Simplified" License
85 stars 11 forks source link

[Errata]: CanMV_k230上启动wifi失败 #25

Closed wozwdaqian closed 8 months ago

wozwdaqian commented 9 months ago

Errata

执行K230_SDK_CanMV_Board_Demo使用指南中的 STA测试命令,在运行wpa_supplicant -D nl80211 -i wlan0 -c /etc/wpa_supplicant.conf -B后会一直出现下图的输出。 9(FQU)207MNDOBENDR`8661

wuwentao commented 8 months ago

@wozwdaqian 图挂了,无法打开,看不清楚是什么内容,可以考虑直接复制粘贴文本内容,用markdown语法里的代码格式化格式化后显示即可

xiangbingj commented 8 months ago

你好,你这个截图看着像是没有连接天线的现象。

ifconfig -a 如果能看到wlan0/wlan1接口说明wifi驱动是正常工作的

wozwdaqian commented 8 months ago

[root@canaan ~ ]#ifconfig wlan0 up [ 244.763531] [dhd] dhd_pri_open : no mutex held [ 244.768078] [dhd] dhd_pri_open : set mutex lock [ 244.772661] [dhd] [wlan0] dhd_open : Enter [ 244.776801] [dhd] Dongle Host Driver, version 101.10.361.33 (wlan=r892223-20230607-2) [ 244.776801] drivers/net/wireless/bcmdhd compiled on Dec 16 2023 at 14:20:07 [ 244.776801] [ 244.793168] [dhd] dhd_open: ######### called for ifidx=0 ######### [ 244.799388] [dhd] [wlan0] wl_android_wifi_on : in g_wifi_on=0 [ 244.805168] [dhd] wifi_platform_set_power = 1, delay: 200 msec [ 244.811038] [dhd] ======== PULL WL_REG_ON(1) HIGH! ======== [ 245.021187] [dhd] sdio_sw_reset: call mmc_sw_reset [ 245.059020] mmc0: queuing unknown CIS tuple 0x80 (2 bytes) [ 245.066341] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 245.073548] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 245.082068] mmc0: queuing unknown CIS tuple 0x80 (7 bytes) [ 245.091214] mmc0: queuing unknown CIS tuple 0x81 (9 bytes) [ 245.179891] [dhd] sdioh_start: set sd_f2_blocksize 256 [ 245.185663] [dhd] dhd_bus_devreset: == Power ON == [ 245.190620] [dhd] F1 signature read @0x18000000=0x1541a9a6 [ 245.199108] [dhd] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x1 pkg:0x4 [ 245.207058] [dhd] DHD: dongle ram size is set to 524288(orig 524288) at 0x0 [ 245.215505] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN [ 245.221126] [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN [ 245.226792] [dhd] dhd_conf_set_path_params : Final fw_path=/etc/firmware/fw_bcm43438a1.bin [ 245.235129] [dhd] dhd_conf_set_path_params : Final nv_path=/etc/firmware/nvram.txt [ 245.242792] [dhd] dhd_conf_set_path_params : Final clm_path=/etc/firmware/clm_bcm43438a1.blob [ 245.251348] [dhd] dhd_conf_set_path_params : Final conf_path=/etc/firmware/config.txt [ 245.260996] [dhd] dhd_os_open_image1: /etc/firmware/config.txt (19 bytes) open success [ 245.270165] [dhd] dhd_conf_read_log_level : android_msg_level = 0x1 [ 245.277919] [dhd] dhd_os_open_image1: /etc/firmware/fw_bcm43438a1.bin (428981 bytes) open success [ 245.348538] [dhd] dhd_os_open_image1: /etc/firmware/nvram.txt (1017 bytes) open success [ 245.357802] [dhd] #AP6212A_NVRAM_V1.0.2_20191121 [ 245.363210] [dhd] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded. [ 245.445851] [dhd] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us) [ 245.454495] [dhd] wlc_ver_major 4, wlc_ver_minor 1 [ 245.460188] [dhd] dhd_preinit_ioctls: preinit_status IOVAR not supported, use legacy preinit [ 245.468754] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 2 -> mode 0 [ 245.475837] [dhd] dhd_tcpack_suppress_set: TCPACK_INFO_MAXNUM=4, TCPDATA_INFO_MAXNUM=4 [ 245.485125] [dhd] dhd_legacy_preinit_ioctls: use firmware generated mac_address 08:fb:ea:2b:87:be [ 245.494126] [dhd] dhd_apply_default_clm: Ignore clm file /etc/firmware/clm_bcm43438a1.blob [ 245.505507] [dhd] Firmware up: op_mode=0x0005, MAC=08:fb:ea:2b:87:be [ 245.512621] [dhd] Disable tdls_auto_op failed. -1 [ 245.520654] [dhd] dhd_legacy_preinit_ioctls Set scancache failed -23 [ 245.527947] [dhd] dhd_legacy_preinit_ioctls: event_log_max_sets: 31 ret: -23 [ 245.538718] [dhd] arp_enable:1 arp_ol:0 [ 245.549138] [dhd] Driver: 101.10.361.33 (wlan=r892223-20230607-2) [ 245.549138] [dhd] Firmware: wl0: Mar 13 2023 15:47:07 version 7.45.96.174 (g65f8f9f2) FWID 01-c187d880 es7.c5.n4.a3 [ 245.549138] [dhd] CLM: 7.11.15 (2014-05-26 10:53:55) [ 245.571820] [dhd] dhd_txglom_enable: enable 1 [ 245.576237] [dhd] dhd_conf_set_txglom_params : txglom_mode=copy [ 245.582213] [dhd] dhd_conf_set_txglom_params : txglomsize=36, deferred_tx_len=0 [ 245.589573] [dhd] dhd_conf_set_txglom_params : txinrx_thres=-1, dhd_txminmax=1 [ 245.596869] [dhd] dhd_conf_set_txglom_params : tx_max_offset=0, txctl_tmo_fix=300 [ 245.604386] [dhd] dhd_conf_get_disable_proptx : fw_proptx=1, disable_proptx=-1 [ 245.613813] [dhd] dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64 [ 245.623310] [dhd] dhd_pno_init: Support Android Location Service [ 245.631048] [dhd] dhd_wl_ioctl_get_intiovar: get int iovar wnm_bsstrans_resp failed, ERR -23 [ 245.639547] [dhd] failed to get wnm_bsstrans_resp [ 245.645117] [dhd] failed to set WNM capabilities [ 245.676117] [dhd] dhd_legacy_preinit_ioctls: Failed to get preserve log # ! [ 245.710414] [dhd] dhd_conf_set_country : set country CN, revision 0 [ 245.719997] [dhd] dhd_conf_set_country : Country code: CN (CN/0) [ 245.732690] [dhd] CONFIG-ERROR) dhd_conf_set_intiovar : ampdu_mpdu setting failed -29 [ 245.741740] [dhd] [wlan0] wl_android_wifi_on : Success [ 245.776683] [dhd] CFG80211-ERROR) wl_update_wiphybands : error reading vhtmode (-23) [ 245.787791] [dhd] CFG80211-ERROR) wl_update_wiphybands : error get bw_cap 6g (-13) [ 245.809613] [dhd] CFG80211-ERROR) init_roam_cache : roamscan_mode iovar failed. -23 [ 245.817401] [dhd] CFG80211-ERROR) wl_cfg80211_up : Failed to enable RCC. [ 245.825696] [dhd] [wlan0] dhd_open : Exit ret=0 [ 245.830282] [dhd] [wlan0] dhd_pri_open : tx queue started [ 245.835735] [dhd] dhd_pri_open : mutex is released.

@wuwentao 你好我重新运行了以下,发现在ifconfig wlan0 up就有报错了

wozwdaqian commented 8 months ago

你好,你这个截图看着像是没有连接天线的现象。

ifconfig -a 如果能看到wlan0/wlan1接口说明wifi驱动是正常工作的

可以帮忙看一下上面运行ifconfig wlan0 up输出报错吗,运行ifconfig -a没有问题,但是ifconfig wlan0 up时出现了Failed to enable RCC

wozwdaqian commented 8 months ago

刚刚测试了手机热点可以连上,但是不知道为什么不能连到公司网络,扫描wifi找不到公司的wifi