linux4wilc / driver

DEPRECATED: Updated Linux drivers for the ATWILC1000/ATWILC3000 products are located at https://github.com/linux4microchip/linux/tree/master/drivers/net/wireless/microchip/wilc1000. To simplify development, the legacy Linux4WILC was merged into the Linux4Microchip repo where driver development continues (Please refer latest ATWILC1000/ATWILC 3000 Wi-Fi Link Controller Linux User Guide) Driver code for Microchip ATWILC Wireless Devices (ATWILC1000 & ATWILC3000)
https://www.microchip.com/wwwproducts/en/ATWILC1000
32 stars 19 forks source link

Raspberry pi compute modprobe fails #94

Closed mintu19 closed 4 years ago

mintu19 commented 4 years ago

I have installed drivers on Raspbian and trying to use the driver on Pi Compute module. I have attached enable to direct 3.3V rail and reset to gpio 0. IRQ is left as it is.

I get this error on modprobe...

[  870.325026] wilc_sdio: module is from the staging directory, the quality is unknown, you have been warned.
[  870.335990] Registering wifi device
[  870.336006] Max scan ids= 10,Max scan IE len= 1000,Signal Type= 1,Interface Modes= 844
[  870.336504] Initializing Locks ...
[  870.343836] wifi_pm : 0
[  870.343875] wilc_sdio mmc1:0001:1: failed to get Reset GPIO, try default
[  870.343898] wilc_sdio mmc1:0001:1: failed to get default Reset GPIO
[  870.343936] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_send_config_pkt:1806] Set Timed out
[  870.343951] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_set_operation_mode:1858] Failed to set driver handler
[  870.343982] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_netdev_cleanup]Unregistering netdev 53813024
[  870.457543] De-Initializing Locks
[  870.507350] Freeing wiphy
[  870.507367] Module_exit Done.
[  870.507395] wilc_sdio: probe of mmc1:0001:1 failed with error -5

Is there a way to provide reset pin number while doing modprobe like a modprobe option? or how else to set the reset pin to gpio 0? Also irq pin is needed or can be left alone?

ajaykathat commented 4 years ago

The reset pin can be configured via Devicetree or by modifying the default value of GPIO_NUM_RESET macro in wilc_wlan.h. Incase of SDIO, the in-band interrupt is used for data transfer, and the IRQ pin is used for host wakeup if it goes to sleep mode.

mintu19 commented 4 years ago

I set

#define MODALIAS        "WILC_SPI"
#define GPIO_NUM        0x5B
#define GPIO_NUM_CHIP_EN    94
#define GPIO_NUM_RESET      0

I have reset connected to GPIO0 as BCRM config in pi. Still getting same error. Do i need to set physical pin number here? or any other number?

mintu19 commented 4 years ago

I moved past that error by setting all gpio pins. Driver starts to load now but gets error. I have connected en to 3.3v direct and using dummy pin in driver. I have not connected IRQ and using dummy pin for that as well. Are these pins necessary to connect?

Logs:

[  671.825508] wilc_sdio: module is from the staging directory, the quality is unknown, you have been warned.
[  671.836502] Registering wifi device
[  671.836519] Max scan ids= 10,Max scan IE len= 1000,Signal Type= 1,Interface Modes= 844
[  671.837048] Initializing Locks ...
[  671.848865] wifi_pm : 0
[  671.848896] wilc_sdio mmc1:0001:1: failed to get Reset GPIO, try default
[  671.848925] wifi_pm : 1
[  671.848935] wilc_sdio mmc1:0001:1: failed to get Reset GPIO, try default
[  671.854328] wilc_sdio mmc1:0001:1: Driver Initializing success
[  672.009790] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.009829] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.009862] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.009893] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.009925] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.009957] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.009988] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.010020] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.010055] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.010088] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.010120] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.010151] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.010182] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.010214] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.010245] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.010278] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.010309] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.010341] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.010862] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[f89f741e] wlan0
[  672.010866] WILC POWER UP
[  672.010874] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[f89f741e][4e03a224]
[  672.010883] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  672.010889] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  672.010896] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[  672.010983] wilc_sdio mmc1:0001:1: wilc_sdio_cmd52..failed, err(-110)
[  672.010988] wilc_sdio mmc1:0001:1: Fail cmd 52, enable csa...
[  672.010995] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[  672.011001] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[  672.011180] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011186] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011192] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011197] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011203] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011209] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011214] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011220] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011226] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011231] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011237] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011242] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011248] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011254] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011259] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011265] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011271] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011276] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  672.011812] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[f89f741e] wlan0
[  672.011816] power up request for already powered up source Wifi
[  672.011819] Device already up. request source is Wifi
[  672.011826] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[f89f741e][4e03a224]
[  672.011833] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  672.011839] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  672.011844] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[  672.011901] wilc_sdio mmc1:0001:1: wilc_sdio_cmd52..failed, err(-110)
[  672.011905] wilc_sdio mmc1:0001:1: Fail cmd 52, enable csa...
[  672.011911] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[  672.011917] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[  672.047429] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[f89f741e] wlan0
[  672.047438] power up request for already powered up source Wifi
[  672.047441] Device already up. request source is Wifi
[  672.047449] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[f89f741e][4e03a224]
[  672.047459] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  672.047465] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  672.047472] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[  672.047553] wilc_sdio mmc1:0001:1: wilc_sdio_cmd52..failed, err(-110)
[  672.047558] wilc_sdio mmc1:0001:1: Fail cmd 52, enable csa...
[  672.047565] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[  672.047570] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[  672.717300] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_send_config_pkt:1806] Set Timed out
[  672.717314] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_set_operation_mode:1858] Failed to set driver handler
[  672.717330] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_netdev_cleanup]Unregistering netdev f89f741e
[  672.797368] De-Initializing Locks
[  672.877232] Freeing wiphy
[  672.877253] Module_exit Done.
[  672.877259] at_pwr_dev: deinit
[  672.877490] at_pwr_dev: unregistered
[  672.877610] mmc1: card 0001 removed
[  672.923650] mmc1: new high speed SDIO card at address 0001
[  672.924113] Registering wifi device
[  672.924125] Max scan ids= 10,Max scan IE len= 1000,Signal Type= 1,Interface Modes= 844
[  672.924490] Initializing Locks ...
[  672.929271] wilc_sdio mmc1:0001:1: Driver Initializing success
[  673.119876] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.119913] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.119946] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.119979] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120011] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120042] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120074] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120106] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120140] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120174] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120206] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120237] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120269] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120300] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120332] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120364] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120396] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120428] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  673.120953] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[f89f741e] wlan0
[  673.120957] WILC POWER UP
[  673.120965] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[f89f741e][4e03a224]
[  673.120974] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  673.120980] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  673.120987] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[  676.342749] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[  676.342762] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (003b0000)...
[  676.342785] [wilc start]: fail read reg 0x3b0000
[  679.564258] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[  679.564271] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (00001000)...
[  679.564298] wilc_sdio mmc1:0001:1: Unsupported chipid: 0
[  679.564314] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[  679.564326] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[  679.565998] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[f89f741e] wlan0
[  679.566010] power up request for already powered up source Wifi
[  679.566016] Device already up. request source is Wifi
[  679.566030] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[f89f741e][4e03a224]
[  679.566047] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  679.566059] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  679.566072] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[  682.788043] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[  682.788056] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (003b0000)...
[  682.788078] [wilc start]: fail read reg 0x3b0000
[  686.009539] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[  686.009551] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (00001000)...
[  686.009577] wilc_sdio mmc1:0001:1: Unsupported chipid: 0
[  686.009594] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[  686.009606] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[  686.012322] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012338] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012351] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012363] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012375] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012387] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012398] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012409] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012421] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012432] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012444] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012455] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012467] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012478] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012490] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012502] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012513] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.012524] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  686.075505] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[f89f741e] wlan0
[  686.075520] power up request for already powered up source Wifi
[  686.075526] Device already up. request source is Wifi
[  686.075541] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[f89f741e][4e03a224]
[  686.075559] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  686.075571] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  686.075584] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[  689.297417] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[  689.297430] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (003b0000)...
[  689.297437] [wilc start]: fail read reg 0x3b0000
[  692.518905] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[  692.518918] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (00001000)...
[  692.518928] wilc_sdio mmc1:0001:1: Unsupported chipid: 0
[  692.518944] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[  692.518956] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
mintu19 commented 4 years ago

still no luck with driver

ajaykathat commented 4 years ago

For WILC power-up, it's necessary to have CHIP_EN and RESET connected with the host to trigger the correct power sequence for the device. Please refer "ATWILC Power Control" section of user guide for details about the power-up sequence. You can try to reload the driver after rebooting the host and device by unplugging the power. But I recommend to connect the GPIO as suggested in the user guide to have correct power sequence for WILC device.

mintu19 commented 4 years ago

I got one step further by connecting cpi_en pin but now getting

$ sudo dmesg
[   61.155634] wilc_sdio: module is from the staging directory, the quality is unknown, you have been warned.
[   61.167385] Registering wifi device
[   61.167403] Max scan ids= 10,Max scan IE len= 1000,Signal Type= 1,Interface Modes= 844
[   61.167839] Initializing Locks ...
[   61.169261] wifi_pm : 0
[   61.169289] wilc_sdio mmc1:0001:1: failed to get Reset GPIO, try default
[   61.169319] wifi_pm : 1
[   61.169329] wilc_sdio mmc1:0001:1: failed to get Reset GPIO, try default
[   61.175449] wilc_sdio mmc1:0001:1: Driver Initializing success
[   61.382462] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382500] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382533] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382565] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382596] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382628] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382660] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382692] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382726] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382759] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382791] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382822] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382854] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382886] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382918] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382949] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382982] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.383020] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.383548] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[   61.383552] WILC POWER UP
[   61.383559] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[   61.383568] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[   61.383574] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[   61.383581] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[   66.752845] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[   66.752859] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (003b0000)...
[   66.752866] [wilc start]: fail read reg 0x3b0000
[   72.121886] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[   72.121898] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (00001000)...
[   72.121909] wilc_sdio mmc1:0001:1: Unsupported chipid: 0
[   72.121925] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[   72.121937] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[   72.122637] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122651] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122666] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122677] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122688] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122700] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122711] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122725] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122737] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122748] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122759] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122771] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122782] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122793] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122815] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122837] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122850] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122861] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.124032] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[   72.124041] power up request for already powered up source Wifi
[   72.124047] Device already up. request source is Wifi
[   72.124060] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[   72.124078] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[   72.124090] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[   72.124105] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
akshit@smart-door:~$ sudo dmesg
[   61.155634] wilc_sdio: module is from the staging directory, the quality is unknown, you have been warned.
[   61.167385] Registering wifi device
[   61.167403] Max scan ids= 10,Max scan IE len= 1000,Signal Type= 1,Interface Modes= 844
[   61.167839] Initializing Locks ...
[   61.169261] wifi_pm : 0
[   61.169289] wilc_sdio mmc1:0001:1: failed to get Reset GPIO, try default
[   61.169319] wifi_pm : 1
[   61.169329] wilc_sdio mmc1:0001:1: failed to get Reset GPIO, try default
[   61.175449] wilc_sdio mmc1:0001:1: Driver Initializing success
[   61.382462] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382500] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382533] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382565] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382596] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382628] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382660] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382692] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382726] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382759] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382791] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382822] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382854] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382886] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382918] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382949] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.382982] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.383020] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   61.383548] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[   61.383552] WILC POWER UP
[   61.383559] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[   61.383568] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[   61.383574] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[   61.383581] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[   66.752845] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[   66.752859] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (003b0000)...
[   66.752866] [wilc start]: fail read reg 0x3b0000
[   72.121886] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[   72.121898] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (00001000)...
[   72.121909] wilc_sdio mmc1:0001:1: Unsupported chipid: 0
[   72.121925] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[   72.121937] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[   72.122637] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122651] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122666] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122677] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122688] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122700] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122711] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122725] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122737] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122748] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122759] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122771] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122782] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122793] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122815] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122837] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122850] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.122861] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[   72.124032] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[   72.124041] power up request for already powered up source Wifi
[   72.124047] Device already up. request source is Wifi
[   72.124060] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[   72.124078] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[   72.124090] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[   72.124105] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[   77.493554] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[   77.493567] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (003b0000)...
[   77.493574] [wilc start]: fail read reg 0x3b0000
[   82.862554] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[   82.862566] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (00001000)...
[   82.862576] wilc_sdio mmc1:0001:1: Unsupported chipid: 0
[   82.862592] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[   82.862604] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[   82.940645] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[   82.940659] power up request for already powered up source Wifi
[   82.940666] Device already up. request source is Wifi
[   82.940679] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[   82.940698] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[   82.940709] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[   82.940722] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[   88.310059] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[   88.310073] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (003b0000)...
[   88.310080] [wilc start]: fail read reg 0x3b0000
[   93.679087] wilc_sdio mmc1:0001:1: wilc_sdio_cmd53..failed, err(-110)
[   93.679096] wilc_sdio mmc1:0001:1: Failed cmd53, read reg (00001000)...
[   93.679102] wilc_sdio mmc1:0001:1: Unsupported chipid: 0
[   93.679111] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[   93.679117] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc

wilc_sdio_cmd53..failed, err(-110)

mintu19 commented 4 years ago

Moved one step forward by connecting irq pin as well. Now chip id is detected. Still no luck with wifi

New logs:

$ sudo dmesg
[  276.495132] wilc_sdio: module is from the staging directory, the quality is unknown, you have been warned.
[  276.506181] Registering wifi device
[  276.506198] Max scan ids= 10,Max scan IE len= 1000,Signal Type= 1,Interface Modes= 844
[  276.506659] Initializing Locks ...
[  276.508231] wifi_pm : 0
[  276.508261] wilc_sdio mmc1:0001:1: failed to get Reset GPIO, try default
[  276.508288] wifi_pm : 1
[  276.508297] wilc_sdio mmc1:0001:1: failed to get Reset GPIO, try default
[  276.517523] wilc_sdio mmc1:0001:1: Driver Initializing success
[  276.683528] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683565] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683598] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683630] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683662] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683694] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683726] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683757] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683792] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683826] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683857] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683889] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683920] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683952] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.683984] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684016] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684048] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684080] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684605] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[  276.684609] WILC POWER UP
[  276.684616] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  276.684624] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  276.684630] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  276.684637] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[  276.684728] wilc_sdio mmc1:0001:1: wilc_sdio_cmd52..failed, err(-110)
[  276.684732] wilc_sdio mmc1:0001:1: Fail cmd 52, enable csa...
[  276.684739] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[  276.684745] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[  276.684928] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684934] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684940] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684945] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684950] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684956] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684961] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684966] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684972] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684977] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684983] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684988] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684993] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.684999] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.685004] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.685010] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.685015] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.685020] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  276.685560] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[  276.685564] power up request for already powered up source Wifi
[  276.685568] Device already up. request source is Wifi
[  276.685574] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  276.685580] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  276.685586] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  276.685592] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[  276.685651] wilc_sdio mmc1:0001:1: wilc_sdio_cmd52..failed, err(-110)
[  276.685656] wilc_sdio mmc1:0001:1: Fail cmd 52, enable csa...
[  276.685662] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[  276.685668] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[  276.721485] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[  276.721494] power up request for already powered up source Wifi
[  276.721498] Device already up. request source is Wifi
[  276.721505] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  276.721515] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  276.721521] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  276.721528] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[  276.721608] wilc_sdio mmc1:0001:1: wilc_sdio_cmd52..failed, err(-110)
[  276.721613] wilc_sdio mmc1:0001:1: Fail cmd 52, enable csa...
[  276.721623] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[  276.721629] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[  276.957163] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_send_config_pkt:1806] Set Timed out
[  276.957172] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_set_operation_mode:1858] Failed to set driver handler
[  276.957178] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_netdev_cleanup]Unregistering netdev (ptrval)
[  277.067131] De-Initializing Locks
[  277.167119] Freeing wiphy
[  277.167130] Module_exit Done.
[  277.167134] at_pwr_dev: deinit
[  277.167267] at_pwr_dev: unregistered
[  277.167333] mmc1: card 0001 removed
[  277.214178] mmc1: new high speed SDIO card at address 0001
[  277.214454] Registering wifi device
[  277.214462] Max scan ids= 10,Max scan IE len= 1000,Signal Type= 1,Interface Modes= 844
[  277.214660] Initializing Locks ...
[  277.215719] wilc_sdio mmc1:0001:1: Driver Initializing success
[  277.330831] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.330868] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.330901] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.330933] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.330965] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.330996] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.331028] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.331060] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.331094] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.331128] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.331159] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.331190] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.331222] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.331254] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.331285] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.331317] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.331349] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.331380] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  277.331904] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[  277.331908] WILC POWER UP
[  277.331915] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  277.331924] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  277.331931] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  277.331938] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[  277.332289] wilc_sdio mmc1:0001:1: chipid 003000d0
[  277.333071] wilc_sdio mmc1:0001:1 wlan0: INFO [init_chip]Bootrom sts = d
[  277.333306] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_initialize]WILC Initialization done
[  277.333337] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_initialize_threads]Initializing Threads ...
[  277.333347] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_initialize_threads]Creating kthread for transmission
[  277.334525] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_initialize_threads]Creating kthread for Debugging
[  277.334720] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  277.334776] wilc_sdio mmc1:0001:1 wlan0: INFO [init_irq]IRQ request succeeded IRQ-NUM= 166
[  277.334891] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_get_firmware]Detect chip WILC3000
[  277.334902] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_get_firmware]loading firmware mchp/wilc3000_wifi_firmware.bin
[  277.334913] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_get_firmware]WLAN firmware: mchp/wilc3000_wifi_firmware.bin
[  277.334971] wilc_sdio mmc1:0001:1: Direct firmware load for mchp/wilc3000_wifi_firmware.bin failed with error -2
[  277.334987] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_get_firmware:545] mchp/wilc3000_wifi_firmware.bin - firmware not available
[  277.334998] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:931] Can't get firmware
[  277.335007] wilc_sdio mmc1:0001:1: wilc_sdio_disable_interrupt
[  277.335112] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinitialize_threads]Deinitializing Threads
[  277.335122] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinitialize_threads]Deinit debug Thread
[  278.397062] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinitialize_threads]Deinitializing Threads
[  278.397151] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:985] WLAN initialization FAILED
[  278.397163] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[  278.397633] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397646] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397657] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397669] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397680] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397692] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397703] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397714] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397725] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397736] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397748] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397759] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397770] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397781] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397793] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397804] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397815] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.397826] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  278.398983] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[  278.398991] power up request for already powered up source Wifi
[  278.398998] Device already up. request source is Wifi
[  278.399011] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  278.399025] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  278.399037] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  278.399944] wilc_sdio mmc1:0001:1 wlan0: INFO [init_chip]Bootrom sts = d
[  278.400175] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_initialize]WILC Initialization done
[  278.400185] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_initialize_threads]Initializing Threads ...
[  278.400196] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_initialize_threads]Creating kthread for transmission
[  278.400358] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_initialize_threads]Creating kthread for Debugging
[  278.400461] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  278.400514] wilc_sdio mmc1:0001:1 wlan0: INFO [init_irq]IRQ request succeeded IRQ-NUM= 166
[  278.400602] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_get_firmware]Detect chip WILC3000
[  278.400614] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_get_firmware]loading firmware mchp/wilc3000_wifi_firmware.bin
[  278.400624] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_get_firmware]WLAN firmware: mchp/wilc3000_wifi_firmware.bin
[  278.400676] wilc_sdio mmc1:0001:1: Direct firmware load for mchp/wilc3000_wifi_firmware.bin failed with error -2
[  278.400693] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_get_firmware:545] mchp/wilc3000_wifi_firmware.bin - firmware not available
[  278.400704] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:931] Can't get firmware
[  278.400713] wilc_sdio mmc1:0001:1: wilc_sdio_disable_interrupt
[  278.400813] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinitialize_threads]Deinitializing Threads
[  278.400823] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinitialize_threads]Deinit debug Thread
[  279.437059] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinitialize_threads]Deinitializing Threads
[  279.437139] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:985] WLAN initialization FAILED
[  279.437151] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[  279.502764] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[  279.502779] power up request for already powered up source Wifi
[  279.502785] Device already up. request source is Wifi
[  279.502798] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  279.502817] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  279.502828] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  279.503787] wilc_sdio mmc1:0001:1 wlan0: INFO [init_chip]Bootrom sts = d
[  279.504030] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_initialize]WILC Initialization done
[  279.504041] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_initialize_threads]Initializing Threads ...
[  279.504052] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_initialize_threads]Creating kthread for transmission
[  279.504207] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_initialize_threads]Creating kthread for Debugging
[  279.504322] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  279.504377] wilc_sdio mmc1:0001:1 wlan0: INFO [init_irq]IRQ request succeeded IRQ-NUM= 166
[  279.504477] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_get_firmware]Detect chip WILC3000
[  279.504488] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_get_firmware]loading firmware mchp/wilc3000_wifi_firmware.bin
[  279.504499] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_get_firmware]WLAN firmware: mchp/wilc3000_wifi_firmware.bin
[  279.504557] wilc_sdio mmc1:0001:1: Direct firmware load for mchp/wilc3000_wifi_firmware.bin failed with error -2
[  279.504574] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_get_firmware:545] mchp/wilc3000_wifi_firmware.bin - firmware not available
[  279.504585] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:931] Can't get firmware
[  279.504595] wilc_sdio mmc1:0001:1: wilc_sdio_disable_interrupt
[  279.504707] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinitialize_threads]Deinitializing Threads
[  279.504718] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinitialize_threads]Deinit debug Thread
[  280.557076] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinitialize_threads]Deinitializing Threads
[  280.557150] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:985] WLAN initialization FAILED
[  280.557162] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc

Not able to resolve firmware not available. Was it problem in building drivers? or in sending firmware to device?

mintu19 commented 4 years ago

I was able to make it work.

Steps: 1) Download drivers and replace in kernel source. 2) enable building driver in menuconfig 3) change reset, en and irq pins as my own and set it in wilcwlan.h file (GPIO* as name) 4) build and install kernel 5) download firmware and paste it in /lib/firmware/mchp