sdioh_remove: Enter
dhdsdio_disconnect : no mutex held. set lock
bcmsdh_oob_intr_unregister: Enter
bcmsdh_oob_intr_unregister: irq is not registered
dhd_wlfc_deinit():3301, Already disabled!
dhd_detach(): thread:dhd_watchdog_thread:4e2 terminated OK
dhd_detach(): thread:dhd_rxf:4e4 terminated OK
dhd_dpc_thread: Unexpected up_cnt 0
dhd_detach(): thread:dhd_dpc:4e3 terminated OK
wl_event_handler: was terminated
wl_destroy_event_handler(): thread:wl_event_handler:4e1 terminated OK
dhd_os_prealloc: failed to alloc memory, section: 7, size: 0bytes
(dhd_common.c)---dhd_wl_ioctl_cmd@317---
dhd_prot_ioctl@259 : bus is down. we have nothing to do(dhd_cdc.c)
bcmsdh_oob_intr_unregister: Enter
bcmsdh_oob_intr_unregister: irq is not registered
dhd_txglom_enable: enable 0
dhd_bus_devreset: WLAN OFF DONE
这个“bus is down”是什么bus?SDIO总线挂了?
dhd_module_init: in
(dhd_gpio.c)------bcm_wlan_get_oob_irq@31------
GPIO(WL_HOST_WAKE) = WL_HOST_WAKE = 54
host_oob_irq: 244
(dhd_gpio.c)------bcm_wlan_get_oob_irq_flags@51------
host_oob_irq_flags=0x411
dhd_wifi_platform_load: Enter
Power-up adapter 'DHD generic adapter'
-------sdio_register_driver@260
----------(sdio_bus_match@98)
-------sdio_match_device@78
----------(sdio_bus_probe@134)
-------sdio_match_device@78
----------(sdio_bus_match@98)
-------sdio_match_device@78
----------(sdio_bus_probe@134)
-------sdio_match_device@78
wifi_platform_set_power = 1
--------- PULL WL_REG_ON HIGH! ---------
(dhd_gpio_power_init)-----request wifi-reset-gpio gpio Successed-----ret=0
wifi_platform_bus_enumerate device present 1
======== Card detection to detect SDIO card! ========
----------(sdio_bus_remove@176)
----------(sdio_bus_remove@176)
bcmsdh_register: register client driver
-------sdio_register_driver@260
----------(sdio_bus_match@98)
-------sdio_match_device@78
----------(sdio_bus_probe@134)
-------sdio_match_device@78
bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
----------(sdio_bus_match@98)
-------sdio_match_device@78
----------(sdio_bus_probe@134)
-------sdio_match_device@78
bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
bus num (host idx)=2, slot num (rca)=1
found adapter info 'DHD generic adapter'
dhdsdio_probe : no mutex held. set lock
F1 signature read @0x18000000=0x1530a9a6
F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x3
DHD: dongle ram size is set to 524288(orig 524288) at 0x0
dhd_conf_set_chiprev: chip=0xa9a6, chiprev=0
dhd_conf_set_conf_path_by_nv_path: config_path=/system/etc/firmware/config.txt
dhd_conf_read_config: Ignore config file /system/etc/firmware/config.txt
wl_create_event_handler(): thread:wl_event_handler:476 started
tsk Enter, tsk = 0x9676147c
dhd_attach(): thread:dhd_watchdog_thread:477 started
dhd_attach(): thread:dhd_dpc:478 started
dhd_dpc_thread: set dpc_cpucore 0 from config.txt
dhd_attach(): thread:dhd_rxf:479 started
dhd_deferred_work_init: work queue initialized
Dongle Host Driver, version 1.201.59.6 (r506368)
Compiled in drivers/net/wireless/bcmdhd on Dec 24 2015 at 10:08:47
Register interface [wlan0] MAC: 94:a1:a2:89:90:28
dhd_prot_ioctl : bus is down. we have nothing to do
bcmsdh_oob_intr_unregister: Enter
bcmsdh_oob_intr_unregister: irq is not registered
dhd_txglom_enable: enable 0
dhd_bus_devreset: WLAN OFF DONE
wifi_platform_set_power = 0
--------- PULL WL_REG_ON LOW! ---------
(dhd_gpio_power_init)-----request wifi-reset-gpio gpio Successed-----ret=0
dhdsdio_probe : the lock is released.
dhd_module_init: Exit err=0
rfkill: BT RF going to : off
dhd_open: Enter bcc05000
Dongle Host Driver, version 1.201.59.6 (r506368)
Compiled in drivers/net/wireless/bcmdhd on Dec 24 2015 at 10:08:47
wl_android_wifi_on in 1
wl_android_wifi_on in 2: g_wifi_on=0
wifi_platform_set_power = 1
--------- PULL WL_REG_ON HIGH! ---------
(dhd_gpio_power_init)-----request wifi-reset-gpio gpio Successed-----ret=0
sdio_reset_comm():
(sdio.c)---sdio_reset_comm@1278---
---mmc_select_voltage@1309---
(sdio.c)---sdio_reset_comm@1285---
---mmc_sdio_init_card@601---
---sdio_reset_comm@1288---
mmc2: Error resetting SDIO communications (-110)
sdioh_start Failed, error = -110
ANDROID-ERROR)
failed to power up wifi chip, retry again (3 left) **
dhd_bus_devreset: == WLAN ON ==
F1 signature read @0x18000000=0x1530a9a6
F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x3
DHD: dongle ram size is set to 524288(orig 524288) at 0x0
dhd_conf_read_config: Ignore config file /system/etc/firmware/config.txt
dhd_conf_set_fw_name_by_chip: firmware_path=/system/etc/firmware/fw_bcm43438a0.bin
dhdsdio_download_firmware: set use_rxchain 0 from config.txt
Final fw_path=/system/etc/firmware/fw_bcm43438a0.bin
Final nv_path=/system/etc/firmware/nvram.txt
Final conf_path=/system/etc/firmware/config.txt
dhdsdio_download_code_file: Open firmware file failed /system/etc/firmware/fw_bcm43438a0.bin
_dhdsdio_download_firmware: dongle image file download failed
dhd_net_bus_devreset: dhd_bus_devreset: -35
dhd_prot_ioctl : bus is down. we have nothing to do
dhd_net_bus_devreset: dhd_bus_devreset: -35
wifi_platform_set_power = 0
--------- PULL WL_REG_ON LOW! ---------
(dhd_gpio_power_init)-----request wifi-reset-gpio gpio Successed-----ret=0
wl_android_wifi_on: Failed
dhd_open : wl_android_wifi_on failed (-35)
dhd_stop: Enter bcc05000
wl_android_wifi_off in 1
wl_android_wifi_off in 2: g_wifi_on=0
wl_android_wifi_off out
dhd_stop: Exit
dhd_open: Exit ret=-1
现在是打开android界面wifi , 驱动可以正常加载,但是wifi打不开。logcat 有如下错误:
01-02 00:05:39.650 D/dalvikvm( 2651): GC_CONCURRENT freed 718K, 41% free 5739K/9676K, paused 2ms+5ms, total 60ms
01-02 00:05:39.650 E/WifiHW ( 2651): ctrl_interface != /data/misc/wifi/sockets
01-02 00:05:39.660 D/WifiMonitor( 2651): startMonitoring(wlan0) with mConnected = false
01-02 00:05:39.660 D/BluetoothAdapter( 2952): 1100962440: getState() : mService = null. Returning STATE_OFF
01-02 00:05:39.670 E/WifiHW ( 2651): Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
01-02 00:05:39.700 I/wpa_supplicant( 3438): Successfully initialized wpa_supplicant
01-02 00:05:39.700 I/wpa_supplicant( 3438): rfkill: Cannot open RFKILL control device
01-02 00:05:40.540 D/Tethering( 2651): sendTetherStateChangedBroadcast 1, 0, 0
01-02 00:05:40.620 I/wpa_supplicant( 3438): rfkill: Cannot open RFKILL control device
01-02 00:05:40.620 D/Tethering( 2651): sendTetherStateChangedBroadcast 2, 0, 0
01-02 00:05:40.670 E/WifiHW ( 2651): Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
01-02 00:05:41.670 E/WifiHW ( 2651): Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
01-02 00:05:42.670 E/WifiHW ( 2651): Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
01-02 00:05:43.680 E/WifiHW ( 2651): Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
01-02 00:05:44.680 E/WifiHW ( 2651): Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
01-02 00:05:44.680 E/WifiMonitor( 2651): startMonitoring(wlan0) failed!
01-02 00:05:44.680 E/WifiStateMachine( 2651): Failed to setup control channel, restart supplican
wifi_platform_bus_enumerate device present 0
======== Card detection to remove SDIO card! ========
dummy_sdmmc: probe of mmc2:0001:1 failed with error -110
dummy_sdmmc: probe of mmc2:0001:2 failed with error -110
wifi_platform_set_power = 1
======== PULL WL_REG_ON HIGH! ========
mmc2: card 0001 removed
wifi_platform_bus_enumerate device present 1
======== Card detection to detect SDIO card! ========
mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
mmc2: new high speed SDIO card at address 0001
bcmsdh_register: register client driver
bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
bus num (host idx)=2, slot num (rca)=1
found adapter info 'DHD generic adapter'
dhdsdio_probe : no mutex held. set lock
F1 signature read @0x18000000=0x1541a9a6
F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x1 pkg:0x4
DHD: dongle ram size is set to 524288(orig 524288) at 0x0
dhd_conf_set_chiprev: chip=0xa9a6, chiprev=1
dhd_conf_set_conf_path_by_nv_path: config_path=/opt/wifi/firmware/config.txt
dhd_conf_read_config: Ignore config file /opt/wifi/firmware/config.txt
wl_create_event_handler(): thread:wl_event_handler:61 started
tsk Enter, tsk = 0xcec6137c
dhd_attach(): thread:dhd_watchdog_thread:62 started
dhd_attach(): thread:dhd_dpc:63 started
dhd_dpc_thread: set dpc_cpucore 0 from config.txt
dhd_attach(): thread:dhd_rxf:64 started
dhd_deferred_work_init: work queue initialized
Dongle Host Driver, version 1.201.59.5 (r506368)
Compiled from
Register interface [wlan0] MAC: 94:a1:a2:9e:6a:9e
dhd_prot_ioctl : bus is down. we have nothing to do
bcmsdh_oob_intr_unregister: Enter
bcmsdh_oob_intr_unregister: irq is not registered
dhd_txglom_enable: enable 0
dhd_bus_devreset: WLAN OFF DONE
wifi_platform_set_power = 0
======== PULL WL_REG_ON LOW! ========
dhdsdio_probe : the lock is released.
dhd_module_init: Exit err=0
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
dhd_open: Enter cec44800
Dongle Host Driver, version 1.201.59.5 (r506368)
Compiled from
wl_android_wifi_on in 1
wl_android_wifi_on in 2: g_wifi_on=0
wifi_platform_set_power = 1
======== PULL WL_REG_ON HIGH! ========
sdio_reset_comm():
mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
hi_gmac_v200 10050000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
dhd_bus_devreset: == WLAN ON ==
F1 signature read @0x18000000=0x1541a9a6
F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x1 pkg:0x4
DHD: dongle ram size is set to 524288(orig 524288) at 0x0
dhd_conf_read_config: Ignore config file /opt/wifi/firmware/config.txt
dhd_conf_set_fw_name_by_chip: firmware_path=/opt/wifi/firmware/fw_bcm43438a1.bin
dhdsdio_download_firmware: set use_rxchain 0 from config.txt
Final fw_path=/opt/wifi/firmware/fw_bcm43438a1.bin
Final nv_path=/opt/wifi/firmware/nvram_ap6212.txt
Final conf_path=/opt/wifi/firmware/config.txt
NVRAM version: AP6214_AP6214A_NVRAM_V1.2_20150817
dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
bcmsdh_oob_intr_register: Enter
bcmsdh_oob_intr_register: HW_OOB enabled
bcmsdh_oob_intr_register OOB irq=76 flags=0
bcmsdh_oob_intr_register: enable_irq_wake
bcmsdh_oob_intr_register: enable_irq_wake failed with -6
dhd_conf_set_band: Set band 0
dhd_preinit_ioctls: Set tcpack_sup_mode 0
Firmware up: op_mode=0x0005, MAC=94:a1:a2:9e:6a:9e
dhd_conf_set_country: Set country CN, revision 0
Country code: CN (CN/0)
dhd_conf_set_roam: Set roam_off 1
Firmware version = wl0: Nov 27 2015 16:52:34 version 7.46.57.4.x4 (A1 Station/P2P) FWID 01-8fc8897c es4.c3
Driver: 1.201.59.5 (r506368)
Firmware: wl0: Nov 27 2015 16:52:34 version 7.46.57.4.x4 (A1 Station/P2P) FWID 01-8fc8897c es4.c3
dhd_txglom_enable: enable 0
dhd_conf_set_disable_proptx: set disable_proptx 0
dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64
wl_android_wifi_on: Success
dhd_open: Exit ret=0
Connectting with 9c:21:6a:63:f8:88 channel (1) ssid "TPLINK_HTRS", len (11)
wl_bss_connect_done succeeded with 9c:21:6a:63:f8:88
wl_bss_connect_done succeeded with 9c:21:6a:63:f8:88
udhcpc (v1.20.2) started
Setting IP address 0.0.0.0 on wlan0
Sending discover...
Auto login as root ...
Jan 1 08:00:08 login[106]: root login on 'ttyS000'
Welcome to HiLinux.
None of nfsroot found in cmdline.
Sending select for 192.168.1.66...
~ # cdSending select for 192.168.1.66...
Lease of 192.168.1.66 obtained, lease time 7200
Setting IP address 192.168.1.66 on wlan0
Deleting routers
route: SIOCDELRT: No such process
Adding router 192.168.100.1
Recreating /etc/resolv.conf
Adding DNS server 202.96.134.33
Adding DNS server 202.96.128.86
~ # cd /opt/wifi/
/opt/wifi # ping 192.168.1.99
PING 192.168.1.99 (192.168.1.99): 56 data bytes
64 bytes from 192.168.1.99: seq=0 ttl=64 time=66.887 ms
64 bytes from 192.168.1.99: seq=1 ttl=64 time=19.936 ms
64 bytes from 192.168.1.99: seq=2 ttl=64 time=16.238 ms
64 bytes from 192.168.1.99: seq=4 ttl=64 time=18.308 ms
64 bytes from 192.168.1.99: seq=5 ttl=64 time=31.869 ms
64 bytes from 192.168.1.99: seq=6 ttl=64 time=17.804 ms
64 bytes from 192.168.1.99: seq=7 ttl=64 time=16.560 ms