我测试似乎也是,make kernel_menuconfig后打开某个wifi(输出为KO),然后make、pack,但是生成的image文件中没有选择wifi的KO文件。
Z
zhangwei 发布的最新帖子
-
回复: 求助,Tina使能一个包后,文件系统没有包含该包的程序
-
回复: T113-S3 Longan SDK 调试AP6212问题求助
换了AP6181测试还是不行,缺少一个文件。但是又不知道这个文件需要从哪里获取。贴一下日志。
依次执行了以下命令现在是这样挂载驱动的:
# cd /lib/modules/5.4.61+ # modprobe brcmfmac.ko # lsmod # modprobe brcmfmac.ko
下面是详细日志:
# # # # # cd /lib/modules/5.4.61+ # modprobe brcmfmac.ko [ 23.169151] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 23.246668] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' # lsmod Module Size Used by Not tainted brcmfmac 249856 0 brcmutil 16384 1 brcmfmac cfg80211 303104 1 brcmfmac # modprobe bcmdhd.ko [ 30.131064] dhd_module_init: in Dongle Host Driver, version 1.579.77.41.11 (r) [ 30.146509] ======== dhd_wlan_init_plat_data ======== [ 30.152206] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=234, oob_irq_flags=0x414 [ 30.160665] dhd_wlan_init_gpio: WL_REG_ON=-1 [ 30.165455] dhd_wifi_platform_load: Enter [ 30.170011] Power-up adapter 'DHD generic adapter' [ 30.175573] wifi_platform_set_power = 1 [ 30.179879] ======== PULL WL_REG_ON(-1) HIGH! ======== [ 30.211757] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success [ 30.535581] wifi_platform_bus_enumerate device present 1 [ 30.541556] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1 [ 30.547834] ======== Card detection to detect SDIO card! ======== [ 30.554725] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 30.566014] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator [ 30.586173] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 30.611247] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 30.618929] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 30.625803] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 30.640439] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 30.662909] mmc1: queuing unknown CIS tuple 0x80 (2 bytes) [ 30.670608] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 30.678326] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 30.687218] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) [ 30.696718] mmc1: queuing unknown CIS tuple 0x81 (9 bytes) [ 30.712865] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 30.724498] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 30.736413] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B [ 30.750018] mmc1: new high speed SDIO card at address 0001 [ 30.791819] brcmfmac: F1 signature read @0x18000000=0x1591a962 [ 30.846007] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43362-sdio for chip BCM43362/1 [ 30.879805] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43362-sdio.allwinner,r528.txt failed with error -2 [ 30.892404] brcmfmac mmc1:0001:1: loading /lib/firmware/brcm/brcmfmac43362-sdio.txt failed with error -22 [ 30.903234] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43362-sdio.txt failed with error -22 [ 31.916676] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50 [ 32.615591] failed to power up DHD generic adapter, 3 retry left [ 32.638482] wifi_platform_set_power = 0 [ 32.642796] ======== PULL WL_REG_ON(-1) LOW! ======== [ 32.648544] sunxi-rfkill soc@3000000:rfkill@0: wlan power off success [ 32.655791] wifi_platform_bus_enumerate device present 0 [ 32.661755] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1 [ 32.668028] ======== Card detection to remove SDIO card! ======== [ 32.675052] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 32.681939] dummy_sdmmc: probe of mmc1:0001:1 failed with error -110 [ 32.689211] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 32.696093] dummy_sdmmc: probe of mmc1:0001:2 failed with error -110 [ 32.703310] wifi_platform_set_power = 1 [ 32.709231] ======== PULL WL_REG_ON(-1) HIGH! ======== [ 32.725040] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success [ 33.045555] wifi_platform_bus_enumerate device present 1 [ 33.051522] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1 [ 33.057797] ======== Card detection to detect SDIO card! ======== [ 35.095580] failed to power up DHD generic adapter, 2 retry left [ 35.118454] wifi_platform_set_power = 0 [ 35.122766] ======== PULL WL_REG_ON(-1) LOW! ======== [ 35.128524] sunxi-rfkill soc@3000000:rfkill@0: wlan power off success [ 35.135777] wifi_platform_bus_enumerate device present 0 [ 35.141741] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1 [ 35.148013] ======== Card detection to remove SDIO card! ======== [ 35.155046] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 35.161936] dummy_sdmmc: probe of mmc1:0001:1 failed with error -110 [ 35.169214] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 35.176121] dummy_sdmmc: probe of mmc1:0001:2 failed with error -110 [ 35.183341] wifi_platform_set_power = 1 [ 35.188067] ======== PULL WL_REG_ON(-1) HIGH! ======== [ 35.203869] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success [ 35.525574] wifi_platform_bus_enumerate device present 1 [ 35.531555] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1 [ 35.537860] ======== Card detection to detect SDIO card! ======== [ 37.575581] failed to power up DHD generic adapter, 1 retry left [ 37.598463] wifi_platform_set_power = 0 [ 37.602777] ======== PULL WL_REG_ON(-1) LOW! ======== [ 37.608594] sunxi-rfkill soc@3000000:rfkill@0: wlan power off success [ 37.615868] wifi_platform_bus_enumerate device present 0 [ 37.621831] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1 [ 37.628104] ======== Card detection to remove SDIO card! ======== [ 37.635133] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 37.642021] dummy_sdmmc: probe of mmc1:0001:1 failed with error -110 [ 37.649295] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 37.656175] dummy_sdmmc: probe of mmc1:0001:2 failed with error -110 [ 37.663392] wifi_platform_set_power = 1 [ 37.668089] ======== PULL WL_REG_ON(-1) HIGH! ======== [ 37.683893] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success [ 38.005557] wifi_platform_bus_enumerate device present 1 [ 38.011525] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1 [ 38.017805] ======== Card detection to detect SDIO card! ========
-
回复: T113-S3 Longan SDK 调试AP6212问题求助
@whycan 感谢晕哥,后来还是没有调通。直接买了XR829模块回来代替了AP6212,目前WIFI可以正常工作。
-
回复: T113-S3 Longan SDK 调试AP6212问题求助
@whycan 请教一下晕哥,编译出来的有好几个KO,应该用哪一个啊【brcmutil.ko,brcmfmac.ko,bcmdhd.ko,b43.ko,...】,这个WiFi移植真是困扰了好久。
-
T113-S3 Longan SDK 调试AP6212问题求助
自己画的T113-S3的板子,使用的LonganSDK,调试AP6212,装载bcmdhd.ko时,出现如下错误,网上搜索大概知道是内存分配问题,但不知道如何解决。
挂载ko时的日志# # insmod /lib/modules/5.4.61+/cfg80211.ko [ 97.532005] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 97.602050] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' # insmod /lib/modules/5.4.61+/bcmdhd.ko [ 110.589718] dhd_module_init: in Dongle Host Driver, version 1.579.77.41.11 (r) [ 110.597969] ======== dhd_wlan_init_plat_data ======== [ 110.603708] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=234, oob_irq_flags=0x414 [ 110.612111] dhd_wlan_init_gpio: WL_REG_ON=-1 [ 110.616937] dhd_wifi_platform_load: Enter [ 110.621516] Power-up adapter 'DHD generic adapter' [ 110.627088] wifi_platform_set_power = 1 [ 110.631410] ======== PULL WL_REG_ON(-1) HIGH! ======== [ 110.647707] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success [ 110.973563] wifi_platform_bus_enumerate device present 1 [ 110.979535] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1 [ 110.985817] ======== Card detection to detect SDIO card! ======== [ 110.992710] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 111.003996] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator [ 111.024157] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 111.049231] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 111.056910] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 111.063779] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 111.078415] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 111.100852] mmc1: queuing unknown CIS tuple 0x80 (2 bytes) [ 111.108579] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 111.116327] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 111.125260] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) [ 111.218770] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 111.230399] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 111.242292] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B [ 111.256043] mmc1: new high speed SDIO card at address 0001 [ 111.298550] bcmsdh_register: register client driver [ 111.369276] bcmsdh_sdmmc_probe: Enter num=1 [ 111.377830] bcmsdh_sdmmc_probe: Enter num=2 [ 111.382538] bus num (host idx)=1, slot num (rca)=1 [ 111.406204] found adapter info 'DHD generic adapter' [ 111.411897] sdioh_attach: set sd_f2_blocksize 256 [ 111.417325] sdioh_attach: sd clock rate = 0 [ 111.422622] dhdsdio_probe : no mutex held. set lock [ 111.428731] F1 signature read @0x18000000=0x1530a9a6 [ 111.437281] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x3 [ 111.445586] DHD: dongle ram size is set to 524288(orig 524288) at 0x0 [ 111.452987] dhd_conf_set_chiprev: chip=0xa9a6, chiprev=0 [ 111.459217] CFG80211-ERROR) wl_setup_wiphy : [ 111.459221] Registering Vendor80211 [ 111.468054] ------------[ cut here ]------------ [ 111.473437] WARNING: CPU: 1 PID: 1541 at /home/xiaowei/1.t113-s3/sdk/T113-Linux-Auto-v1.1/kernel/linux-5.4/net/wireless/core.c:882 wiphy_register+0x80c/0x9f0 [cfg80211] [ 111.490359] Modules linked in: bcmdhd(+) cfg80211 [ 111.495684] CPU: 1 PID: 1541 Comm: insmod Not tainted 5.4.61+ #18 [ 111.502518] Hardware name: Generic DT based system [ 111.507915] [<c010e2f8>] (unwind_backtrace) from [<c010a8bc>] (show_stack+0x10/0x14) [ 111.516612] [<c010a8bc>] (show_stack) from [<c06f3e30>] (dump_stack+0x7c/0x98) [ 111.524723] [<c06f3e30>] (dump_stack) from [<c0119638>] (__warn+0xac/0xdc) [ 111.532442] [<c0119638>] (__warn) from [<c01196d8>] (warn_slowpath_fmt+0x70/0x9c) [ 111.540983] [<c01196d8>] (warn_slowpath_fmt) from [<bf0014c0>] (wiphy_register+0x80c/0x9f0 [cfg80211]) [ 111.551993] [<bf0014c0>] (wiphy_register [cfg80211]) from [<bf0bc460>] (wl_cfg80211_attach+0x368/0xbec [bcmdhd]) [ 111.564353] [<bf0bc460>] (wl_cfg80211_attach [bcmdhd]) from [<bf05a7e8>] (dhd_attach+0x3b0/0x8b0 [bcmdhd]) [ 111.576034] [<bf05a7e8>] (dhd_attach [bcmdhd]) from [<bf093724>] (dhdsdio_probe+0x228/0x5dc [bcmdhd]) [ 111.587129] [<bf093724>] (dhdsdio_probe [bcmdhd]) from [<bf083a3c>] (bcmsdh_probe+0x110/0x190 [bcmdhd]) [ 111.598224] [<bf083a3c>] (bcmsdh_probe [bcmdhd]) from [<bf086b8c>] (bcmsdh_sdmmc_probe+0x1c8/0x25c [bcmdhd]) [ 111.609534] [<bf086b8c>] (bcmsdh_sdmmc_probe [bcmdhd]) from [<c054c4b0>] (sdio_bus_probe+0xe4/0x138) [ 111.619794] [<c054c4b0>] (sdio_bus_probe) from [<c040f028>] (really_probe+0x150/0x418) [ 111.628683] [<c040f028>] (really_probe) from [<c040f558>] (driver_probe_device+0x10c/0x154) [ 111.638059] [<c040f558>] (driver_probe_device) from [<c040f72c>] (device_driver_attach+0x44/0x5c) [ 111.648018] [<c040f72c>] (device_driver_attach) from [<c040f7f0>] (__driver_attach+0xac/0xb8) [ 111.657587] [<c040f7f0>] (__driver_attach) from [<c040d58c>] (bus_for_each_dev+0x64/0xa0) [ 111.666767] [<c040d58c>] (bus_for_each_dev) from [<c040e494>] (bus_add_driver+0xd8/0x1b4) [ 111.675946] [<c040e494>] (bus_add_driver) from [<c040ffd0>] (driver_register+0xb0/0xf8) [ 111.685203] [<c040ffd0>] (driver_register) from [<bf083bf4>] (bcmsdh_register+0x20/0x50 [bcmdhd]) [ 111.695671] [<bf083bf4>] (bcmsdh_register [bcmdhd]) from [<bf05d9a4>] (dhd_wifi_platform_load+0x23c/0x380 [bcmdhd]) [ 111.707893] [<bf05d9a4>] (dhd_wifi_platform_load [bcmdhd]) from [<bf05dd28>] (dhd_wifi_platform_register_drv+0xc4/0x114 [bcmdhd]) [ 111.721472] [<bf05dd28>] (dhd_wifi_platform_register_drv [bcmdhd]) from [<bf12807c>] (dhd_module_init+0x7c/0x1000 [bcmdhd]) [ 111.734226] [<bf12807c>] (dhd_module_init [bcmdhd]) from [<c0102f6c>] (do_one_initcall+0x7c/0x1bc) [ 111.744289] [<c0102f6c>] (do_one_initcall) from [<c01893e4>] (do_init_module+0x50/0x1d4) [ 111.753372] [<c01893e4>] (do_init_module) from [<c0188018>] (load_module+0x18f4/0x1df0) [ 111.762355] [<c0188018>] (load_module) from [<c01886f4>] (sys_finit_module+0x94/0xb4) [ 111.771143] [<c01886f4>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54) [ 111.780317] Exception stack(0xc5e15fa8 to 0xc5e15ff0) [ 111.785985] 5fa0: 00cb4008 bea33dd8 00000003 00cb4008 00000000 bea33dd8 [ 111.795164] 5fc0: 00cb4008 bea33dd8 bea33cb4 0000017b bea33dd8 00000000 b6f25000 00000000 [ 111.804339] 5fe0: bea33b18 bea33b08 00026fb8 b6e81242 [ 111.810114] ---[ end trace 2daad2344cff8bf8 ]--- [ 111.815355] CFG80211-ERROR) wl_setup_wiphy : [ 111.815362] Couldn not register wiphy device (-22) [ 111.825671] ^^========, wl_setup_wiphy(11266), wdev->wiphy->interface_modes = 0000070E [ 111.834590] wl_cfg80211_attach failed [ 111.953563] bcmsdh_oob_intr_unregister: Enter [ 111.958453] bcmsdh_oob_intr_unregister: irq is not registered [ 111.964934] dhd_wlfc_deinit():3751, Already disabled! [ 111.970637] dhd_tcpack_suppress_set 362: already set to 0 [ 111.976738] dhd_deferred_work_deinit: deferred work has been freed already [ 111.984490] dhdsdio_probe: dhd_attach failed [ 111.989282] dhdsdio_probe : the lock is released. [ 111.994579] bcmsdh_probe: device attach failed [ 111.999571] sdioh_probe: bcmsdh_probe failed [ 112.004550] bcmsdh_sdmmc: probe of mmc1:0001:2 failed with error -12
看日志出现,是不是说明已经识别到WIFI模块了??
mmc1: new high speed SDIO card at address 0001
menuconfig中配置了cfg80211和
调试8723DS也没有调通,编译时候找不到头文件。
之前做的V3S的板子,调试AP6212和AP6181,也是没有调通。