大佬我又来了,Wi-Fi问题求助
-
上次我编译好了那个ctrl,但是不出我所料,Wi-Fi还是用不了
在melis里面用那个wifi -s扫描网络,报了一堆错误,最后所有程序都结束。。。。
这个Wi-Fi为啥会用到SD卡的东西啊
xradio_load_mac_addr
这个需要往SD卡里面写配置信息?能不能直接往 norflash里面写啊,我准备不用SD卡求助求助,谢谢啦
错误报告如下
msh />wifi -c leo 88888888 [sysinfo] mac addr source: 2 [sysinfo] random mac addr [sysinfo] set default value [wifi_event_init,93]:wlan init, register network observer [wifi_event_init,102]:wifi init success!! [wifi_on,841]:starting Station mode. [net DBG] net_switch_mode(), mode 3 --> 0 [net DBG] net_open(), mode 0 [wlan D] wlan_attach() [wlan D] wlan_attach() [ERR:1535]xradio_load_mac_addr, 1535, '/data/xr_wifi.conf' doesn't exist, just create it! [ERR:1483]xradio_save_mac_addr, 1483, open '/data/xr_wifi.conf' fail! [xr_taskqueue_start_thread , 131]+-+0x40807fe0 :umac,8192 card id is 1 SD:mmc_card_create card:0x413bf378 id:1 host debug mask 18[ERR] SDC:name ???,port 7,port_num 0,mul_sel 2, pull 1, drv_level 1 [ERR] SDC:name ???,port 7,port_num 1,mul_sel 2, pull 1, drv_level 1 [ERR] SDC:name ???,port 7,port_num 2,mul_sel 2, pull 1, drv_level 1 [ERR] SDC:name ???,port 7,port_num 3,mul_sel 2, pull 1, drv_level 1 [ERR] SDC:name ???,port 7,port_num 4,mul_sel 2, pull 1, drv_level 1 [ERR] SDC:name ???,port 7,port_num 5,mul_sel 2, pull 1, drv_level 1 HAL_GetHFClock,53 Warning Use fix value 24000000 HAL_GetHFClock,53 Warning Use fix value 24000000 HAL_GetHFClock,53 Warning Use fix value 24000000 HAL_GetHFClock,53 Warning Use fix value 24000000 [ERR] SDC:__mci_irq_handler,903 raw_int:100 err! [ERR] SDC:SDC err, cmd 52, RTO [ERR] SDC:sdc 688 abnormal status: RespErr [ERR] SDC:__mci_irq_handler,903 raw_int:100 err! [ERR] SDC:SDC err, cmd 52, RTO [ERR] SDC:sdc 688 abnormal status: RespErr [ERR] SDC:__mci_irq_handler,903 raw_int:100 err! [ERR] SDC:SDC err, cmd 8, RTO [ERR] SDC:sdc 688 abnormal status: RespErr SD:sd1.0 or mmc SD:***** Try sdio ***** [ERR] SDC:__mci_irq_handler,903 raw_int:100 err! [ERR] SDC:SDC err, cmd 5, RTO [ERR] SDC:sdc 688 abnormal status: RespErr
-
xradio_load_mac_addr
这个好像是封装在那个40M.a的库里面的补充一个-s的错误代码
msh />wifi -s [sysinfo] mac addr source: 2 [sysinfo] random mac addr [sysinfo] set default value [wifi_event_init,93]:wlan init, register network observer [wifi_event_init,102]:wifi init success!! [wifi_on,841]:starting Station mode. [net DBG] net_switch_mode(), mode 3 --> 0 [net DBG] net_open(), mode 0 [wlan D] wlan_attach() [wlan D] wlan_attach() [ERR:1535]xradio_load_mac_addr, 1535, '/data/xr_wifi.conf' doesn't exist, just create it! [ERR:1483]xradio_save_mac_addr, 1483, open '/data/xr_wifi.conf' fail! [xr_taskqueue_start_thread , 131]+-+0x40807fe0 :umac,8192 card id is 1 SD:mmc_card_create card:0x413bf518 id:1 host debug mask 18[ERR] SDC:name ???,port 7,port_num 0,mul_sel 2, pull 1, drv_level 1 [ERR] SDC:name ???,port 7,port_num 1,mul_sel 2, pull 1, drv_level 1 [ERR] SDC:name ???,port 7,port_num 2,mul_sel 2, pull 1, drv_level 1 [ERR] SDC:name ???,port 7,port_num 3,mul_sel 2, pull 1, drv_level 1 [ERR] SDC:name ???,port 7,port_num 4,mul_sel 2, pull 1, drv_level 1 [ERR] SDC:name ???,port 7,port_num 5,mul_sel 2, pull 1, drv_level 1 HAL_GetHFClock,53 Warning Use fix value 24000000 HAL_GetHFClock,53 Warning Use fix value 24000000 HAL_GetHFClock,53 Warning Use fix value 24000000 HAL_GetHFClock,53 Warning Use fix value 24000000 [ERR] SDC:__mci_irq_handler,903 raw_int:100 err! [ERR] SDC:SDC err, cmd 52, RTO [ERR] SDC:sdc 688 abnormal status: RespErr [ERR] SDC:__mci_irq_handler,903 raw_int:100 err! [ERR] SDC:SDC err, cmd 52, RTO [ERR] SDC:sdc 688 abnormal status: RespErr [ERR] SDC:__mci_irq_handler,903 raw_int:100 err! [ERR] SDC:SDC err, cmd 8, RTO [ERR] SDC:sdc 688 abnormal status: RespErr SD:sd1.0 or mmc SD:***** Try sdio ***** [ERR] SDC:__mci_irq_handler,903 raw_int:100 err! [ERR] SDC:SDC err, cmd 5, RTO [ERR] SDC:sdc 688 abnormal status: RespErr ===================================================================================================== EXC_LOAD_PAGE_FAULT =================================================================
-
@leomini5 在 大佬我又来了,Wi-Fi问题求助 中说:
xradio_save_mac_addr
root@leomini:/home/leo/miles-d1s/miles/d1s-melis-master# grep -r "xradio_save_mac_addr" ./* grep: ./drivers/drv/source/net/xradio/libxr829_40M.a: 匹配到二进制文件 grep: ./ekernel/melis30.bin: 匹配到二进制文件 ./ekernel/melis30.dis:0000000040021750 <xradio_save_mac_addr>: ./ekernel/melis30.dis: 40021788: eb85 bnez a5,400217b8 <xradio_save_mac_addr+0x68> ./ekernel/melis30.dis: 40021792: 16f05263 blez a5,400218f6 <xradio_save_mac_addr+0x1a6> ./ekernel/melis30.dis: 400217b6: a289 j 400218f8 <xradio_save_mac_addr+0x1a8> ./ekernel/melis30.dis: 40021838: 02e7d263 bge a5,a4,4002185c <xradio_save_mac_addr+0x10c> ./ekernel/melis30.dis: 4002187e: 02f71d63 bne a4,a5,400218b8 <xradio_save_mac_addr+0x168> ./ekernel/melis30.dis: 4002188e: 04e7dd63 bge a5,a4,400218e8 <xradio_save_mac_addr+0x198> ./ekernel/melis30.dis: 400218b6: a80d j 400218e8 <xradio_save_mac_addr+0x198> ./ekernel/melis30.dis: 400218c0: 02f05463 blez a5,400218e8 <xradio_save_mac_addr+0x198> ./ekernel/melis30.dis: 400218f4: a011 j 400218f8 <xradio_save_mac_addr+0x1a8> ./ekernel/melis30.dis: 40021b6e: be3ff0ef jal ra,40021750 <xradio_save_mac_addr> ./ekernel/melis30.dis: 40022d36: a1bfe0ef jal ra,40021750 <xradio_save_mac_addr> grep: ./ekernel/arch/boot/Image: 匹配到二进制文件 grep: ./ekernel/arch/boot/zImage.bin: 匹配到二进制文件 grep: ./ekernel/arch/boot/zImage: 匹配到二进制文件 ./ekernel/System.map:0000000040021750 t xradio_save_mac_addr grep: ./ekernel/melis30.elf: 匹配到二进制文件 grep: ./ekernel/drivers/drv/source/net/xradio/libxr829_40M.a: 匹配到二进制文件 grep: ./out/d1s-nezha/image/epos.img: 匹配到二进制文件 grep: ./projects/d1s-nezha/epos.img: 匹配到二进制文件 root@leomini:/home/leo/miles-d1s/miles/d1s-melis-master#
-
我发现在那个sys_nor_config.fex 文件里面的Wi-Fi就没配置SDIO,但是也没看到xr829的配置参数,那么这要怎么配置呀大佬,求助呀
[wifi_para] wifi_used = 1 wifi_sdc_id = 1 wifi_usbc_id = 1 wifi_usbc_type = 1 wifi_mod_sel = 3 wifi_power = "axp22_aldo1" ; 1 - bcm40181 sdio wifi gpio config ;bcm40181_vdd_en = port:PG18<1><default><default><0> ;bcm40181_vcc_en = port:PG18<1><default><default><0> ;bcm40181_shdn = port:PG10<1><default><default><0> ;bcm40181_host_wake = port:PG12<0><default><default><0> ; 2 - bcm40183 sdio wifi gpio config ;bcm40183_vdd_en = port:PG18<1><default><default><0> ;bcm40183_vcc_en = port:PG18<1><default><default><0> ;bcm40183_wl_regon = port:PG10<1><default><default><0> ;bcm40183_wl_host_wake = port:PG12<0><default><default><0> ;bcm40183_bt_rst = port:PG11<1><default><default><0> ;bcm40183_bt_regon = port:PG11<1><default><default><0> ;bcm40183_bt_wake = port:XXX<1><default><default><0> ;bcm40183_bt_host_wake = port:XXX<0><default><default><0> ; 3 - rtl8723as sdio wifi + bt gpio config ;rtk_rtl8723as_wl_dis = port:PG10<1><default><default><0> ;rtk_rtl8723as_bt_dis = port:PG11<1><default><default><0> ;rtk_rtl8723as_wl_host_wake = port:PG12<0><default><default><0> ;rtk_rtl8723as_bt_host_wake = port:PG17<0><default><default><0> ; 4 - rtl8189es sdio wifi gpio config ;rtl8189es_vdd_en = port:PG18<1><default><default><0> ;rtl8189es_vcc_en = port:PG18<1><default><default><0> ;rtl8189es_shdn = port:PG10<1><default><default><0> ;rtl8189es_wakeup = port:PG12<1><default><default><1> ; 5 - rtl8192cu usb wifi gpio config ;rtl8192cu_power = port:PH27<1><0><default><0> ; 6 - rtl8188eu usb wifi gpio conifg ;rtl8188eu_power = port:PH27<1><0><default><0>
-
我搞定了,过程一言难尽
-
@leomini5 WiFi和SD卡应该是都用的sdc接口吧,所以两个有牵扯,在设备树配置里面,如果配置的sd卡或者WiFi功能,配置是不一样的,我之前注意如果是WiFi的话,里面要加上 no-sd 的选项,如果是SD卡,也得加上 no-sdio 的选项,还有no-mmc 的功能,具体没有仔细研究
-
@spr2023 那个melis4 里面有很多个SDIO,SD卡默认是0号,然后wifi是1号,所以不冲突都可以用,只不过想要用这玩意的难度和重新移植一遍没有区别。。。。
-
说开源吧,又很多没有开。wifi这块想增加新驱动不好搞
-
@iincity 在 大佬我又来了,Wi-Fi问题求助 中说:
说开源吧,又很多没有开。wifi这块想增加新驱动不好搞
确实有些东西没开源。但是新增个wifi驱动应该还是能搞的,不过不熟悉的伙伴搞起来有一定难度是真的,原厂都是由专人干这活的
-
@nideyida 主要是用的人太少了,现在虽然价格便宜性能好,但是要想全用起来要掉层皮的……好难啊,这芯片有ledc控制器,但是没有一个好用的上层驱动库,不像esp32 的Arduino框架下那个fastled那么好用,要是能移植一个进来就好了
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号