rk3288 buildroot wifi 驱动调试

ap6236 芯片

[root@rk3288:/sys/devices/platform/ff0d0000.dwmmc/mmc_host/mmc2/mmc2:0001/mmc2:0001:1]# ifconfig wlan0 up
[ 2901.920263] dhd_open: Enter ee21b800
[ 2901.923843] dhd_open : no mutex held. set lock
[ 2901.928289]
[ 2901.928289] Dongle Host Driver, version 1.579.77.41.10 (r)
[ 2901.935263] wl_ext_iapsta_attach_netdev: ifidx=0, bssidx=0
[ 2901.940753] wl_android_wifi_on in 1
[ 2901.944243] wl_android_wifi_on in 2: g_wifi_on=0
[ 2901.948866] wifi_platform_set_power = 1
[ 2901.952715] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 2901.957853] [WLAN_RFKILL]: rockchip_wifi_power: 1
[ 2901.962565] [WLAN_RFKILL]: wifi turn on power. -1
[ 2902.270262] sdio_reset_comm():
[ 2902.288582] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 2902.324305] mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
[ 2902.331376] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2902.338411] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2902.346761] mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
[ 2902.355720] mmc2: queuing unknown CIS tuple 0x81 (9 bytes)
[ 2902.453880] mmc_host mmc2: Bus speed (slot 0) = 49500000Hz (slot req 50000000Hz, actual 49500000HZ div = 0)
[ 2902.464109] sdioh_start: set sd_f2_blocksize 256
[ 2902.470252]
[ 2902.470252]
[ 2902.470252] dhd_bus_devreset: == WLAN ON ==
[ 2902.477834] F1 signature read @0x18000000=0x1532a9a6
[ 2902.491635] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x2 pkg:0x3
[ 2902.500197] DHD: dongle ram size is set to 524288(orig 524288) at 0x0
[ 2902.506889] dhd_bus_set_default_min_res_mask: Unhandled chip id
[ 2902.513371] dhd_conf_read_config: Ignore config file /system/etc/firmware/config.txt
[ 2902.521155] Final fw_path=/system/etc/firmware/fw_bcm43436b0.bin
[ 2902.527160] Final nv_path=/system/etc/firmware/nvram_ap6236.txt
[ 2902.533114] Final clm_path=/system/etc/firmware/clm.blob
[ 2902.538431] Final conf_path=/system/etc/firmware/config.txt
[ 2902.544708] dhdsdio_download_code_file: Open firmware file failed /system/etc/firmware/fw_bcm43436b0.bin
[ 2902.554200] _dhdsdio_download_firmware: dongle image file download failed
[ 2902.561018] dhd_bus_devreset Failed to download binary to the dongle
[ 2902.567372] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 2902.572622] dhd_wl_ioctl: returning as busstate=0
[ 2902.577324] dhd_dbg_detach_pkt_monitor, 2204
[ 2902.581610] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 2902.586876] wifi_platform_set_power = 0
[ 2902.590736] ======== PULL WL_REG_ON(-1) LOW! ========
[ 2902.595787] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 2902.600506] [WLAN_RFKILL]: wifi shut off power.
[ 2902.605031] wl_android_wifi_on: Failed
[ 2902.608777] dhd_open : wl_android_wifi_on failed (-35)
[ 2902.613923] dhd_stop: Enter ee21b800
[ 2902.617501] wl_android_wifi_off in 1
[ 2902.621081] wl_android_wifi_off in 2: g_wifi_on=0, on_failure=1
[ 2902.626997] dhd_wl_ioctl: returning as busstate=0
[ 2902.631706] dhd_dbg_detach_pkt_monitor, 2204
[ 2902.635972] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 2902.641227] sdioh_disable_func_intr: error for read SDIO_CCCR_IENx : 0xffffff92
[ 2902.648527] wifi_platform_set_power = 0
[ 2902.652382] ======== PULL WL_REG_ON(-1) LOW! ========
[ 2902.657429] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 2902.662138] [WLAN_RFKILL]: wifi shut off power.
[ 2902.666665] wl_android_wifi_off out
[ 2902.670164] wl_ext_iapsta_dettach_netdev: ifidx=0
[ 2902.674872] dhd_stop: Exit
[ 2902.677581] dhd_open : the lock is released.
[ 2902.681856] dhd_open: Exit ret=-1


可以看出

驱动和固件加载失败


修改buildroot配置,增加 BR2_PACKAGE_RKWIFIBT_AP6236=y

rk3288-linux-v1/buildroot/configs$ vi rockchip_rk3288_defconfig


BR2_TARGET_GENERIC_HOSTNAME="rk3288"
BR2_TARGET_GENERIC_ISSUE="Welcome to RK3288 Buildroot"
BR2_PACKAGE_RKWIFIBT_AP6335=y
BR2_PACKAGE_RKWIFIBT_AP6236=y
BR2_PACKAGE_RKWIFIBT_BTUART="ttyS0"


参考

http://wiki.t-firefly.com/ROC-RK3308-CC/sdkbuilding.html

image
~                                    

posted on 2020-12-31 13:03  katago  阅读(2672)  评论(0编辑  收藏  举报