I'm using Luckfox Pico SDK for RV1106.
Kernel - 5.10.160
I take AIC8800DC driver from here.
Compile with next settings
export CONFIG_USE_FW_REQUEST = n
export CONFIG_PREALLOC_RX_SKB = n
export CONFIG_PREALLOC_TXQ = y
export CONFIG_OOB = n
export CONFIG_GPIO_WAKEUP = n
export CONFIG_RESV_MEM_SUPPORT = y
But get very intresting error.
insmod aic8800_bsp.ko
[ 141.545347] aic8800_bsp: loading out-of-tree module taints kernel.
[ 141.547732] aicbsp_init
[ 141.547753] RELEASE_DATE:2024_0327_3561b08f
[ 141.547762] aicbsp_resv_mem_init
[ 141.548094] aicbsp: aicbsp_set_subsys, subsys: AIC_BLUETOOTH, state to: 1
[ 141.548109] aicbsp: aicbsp_set_subsys, power state change to 1 dure to AIC_BLUETOOTH
[ 141.548115] aicbsp: aicbsp_platform_power_on
[ 141.579225] aicbsp: aicbsp_sdio_probe:1 vid:0xC8A1 did:0xC08D
[ 141.579398] aicbsp: aicbsp_sdio_probe:2 vid:0xC8A1 did:0xC18D
[ 141.579410] aicbsp: aicbsp_sdio_probe after replace:1
[ 141.579421] AICWFDBG(LOGINFO) aicwf_sdio_chipmatch USE AIC8800DC
[ 141.579427] the device is PRODUCT_ID_AIC8800DC
[ 141.579435] aicbsp: aicbsp_get_feature, set FEATURE_SDIO_CLOCK 50 MHz
[ 141.579441] aicbsp: aicwf_sdio_reg_init
[ 141.579762] mmc_host mmc1: Bus speed (slot 0) = 49500000Hz (slot req 50000000Hz, actual 49500000HZ div = 0)
[ 141.579781] aicbsp: Set SDIO Clock 50 MHz
[ 141.584152] AICWFDBG(LOGINFO) btenable = 1
[ 141.584195] AICWFDBG(LOGINFO) IS_CHIP_ID_H
[ 141.584206] AICWFDBG(LOGINFO) aicbsp: aicbsp_driver_fw_init, chip rev: 7
[ 141.584218] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fw_patch_table_8800dc_u02h.bin
[ 141.586334] file md5:131dfe88d71caff1a6ac1504a9c607a9
[ 141.586453] rwnx_plat_bin_fw_upload_android
[ 141.586467] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fw_adid_8800dc_u02h.bin
[ 141.587036] file md5:f00fbd9fe6509b786018967936203dd3
[ 141.588207] rwnx_plat_bin_fw_upload_android
[ 141.588230] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fw_patch_8800dc_u02h.bin
[ 141.589417] file md5:d6e698b33c4ba7575e58a01d3cf7930d
[ 141.596969] aicbt_patch_table_load bt btmode[1]:1
[ 141.596990] aicbt_patch_table_load bt uart_baud[1]:1500000
[ 141.596997] aicbt_patch_table_load bt uart_flowctrl[1]:1
[ 141.597004] aicbt_patch_table_load bt lpm_enable[1]:0
[ 141.597011] aicbt_patch_table_load bt tx_pwr[1]:28463
[ 141.600961] aicbsp: bt patch version: - Mar 25 2024 18:04:42 - git a4316d5
[ 141.601024] ############ aicwifi_init begin
[ 141.601808] AICWFDBG(LOGINFO) chip_id=c7, chip_sub_id=2!!
[ 141.602026] AICWFDBG(LOGDEBUG) set_bbpll_config rd_mem_addr_cfm.memdata:4
[ 141.602037] AICWFDBG(LOGINFO) set_bbpll_config Crystal not provided by CPU
[ 141.602593] AICWFDBG(LOGDEBUG) [0x40500010]=6
[ 144.609192] cmd timed-out
[ 144.609221] tkn[75] flags:0012 result: -4 cmd:1041 - reqcfm(1042)
[ 144.609233] AICWFDBG(LOGERROR) 70001028 mask write fail: -110
[root@luckfox ko]# [ 144.609240] ############ system_config_8800dc done
[ 144.609247] AICWFDBG(LOGTRACE) >>> rwnx_plat_patch_load()
[ 144.609253] AICWFDBG(LOGINFO) testmode=0
[ 144.609259] AICWFDBG(LOGINFO) rwnx_plat_patch_loading
[ 144.609264] h_u02 is loaing ###############
[ 144.609271] rwnx_plat_bin_fw_upload_android
[ 144.609281] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fmacfw_patch_8800dc_h_u02.bin
[ 144.611530] file md5:7726c614f63a38bbc2a8a5496f67aeb5
[ 144.611557] cmd queue crashed
[ 144.611567] bin upload fail: 180000, err:-32
[ 144.611587] AICWFDBG(LOGINFO) load patch bin fail: -32
[ 144.611594] patch load return -32
[ 144.611721] aicbsp: aicbsp_sdio_remove
[ 144.611734] aicbsp: aicwf_sdio_release
[ 144.611775] aicbsp: aicwf_sdio_release_func2
[ 144.611800] aicbsp: sdio_err:<aicwf_sdio_release_func2,1604>: reg:4 write failed!
[ 144.611833] aicbsp: aicwf_bus_deinit
[ 144.611839] aicbsp: aicwf_sdio_bus_stop
[ 144.611861] aicbsp: sdio_err:<aicwf_sdio_bustx_thread,1343>: sdio bustx thread stop
[ 144.611943] aicbsp: sdio_err:<aicwf_sdio_busrx_thread,1362>: sdio busrx thread stop
[ 144.612066] aicbsp: aicbsp_sdio_remove done
[ 144.612164] aicbsp: aicbsp_platform_power_off
[ 144.612207] aicbsp: aicbsp_set_subsys, fail to set AIC_BLUETOOTH power state to 1
Can you kindly give me any idea what is going wrong and how can I fix it?
最近编辑记录 zavdimka (2025-05-26 09:36:03)
离线