antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

SDIO1 CM3+ WILC1000

Wed Apr 24, 2019 9:49 am

Hello everyone,

I'm trying to connect the WILC1000-SD card to my Raspberry Pi Compute Module IO Board (with a CM3+).

I want to use SDIO1.

I have added "dtoverlay=sdio,poll_once=off" on /boot/config.txt

I connected the WILC1000-SD to the GPIO22-27 which are setup in ALT3 mode. Although, the Pi and the module don't communicate.

The problem seems to be the clock :

[email protected]:~ $ dmesg | grep sdio
[ 0.804391] mmc-bcm2835 3f300000.sdio: could not get clk, deferring probe
[ 1.872941] mmc-bcm2835 3f300000.sdio: mmc_debug:0 mmc_debug2:0
[ 1.881101] mmc-bcm2835 3f300000.sdio: DMA channel allocated

Here is the signal of the clock pin : http://www.zupimages.net/viewer.php?id=19/17/di26.jpg

Do you have any idea of what I could have done wrong ?

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2224
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: SDIO1 CM3+ WILC1000

Wed Apr 24, 2019 9:59 am

Code: Select all

[email protected]:~ $ dmesg | grep sdio
[ 0.804391] mmc-bcm2835 3f300000.sdio: could not get clk, deferring probe
[ 1.872941] mmc-bcm2835 3f300000.sdio: mmc_debug:0 mmc_debug2:0
[ 1.881101] mmc-bcm2835 3f300000.sdio: DMA channel allocated
This isn't an error - it's just an artifact of the way Linux manages dependencies between devices. Between the first message and the other two the kernel has loaded the clock driver, allowing the second probe attempt to succeed.

1. I'm only a software engineer, but that oscilloscope trace looks quite noisy. How long are your wires? Do they run close to anything else that might be radiating?

2. Do you get any messages in the kernel log when you insert an SD card?

3. Have you tried with the "bus_width=1" parameter ("dtoverlay siod,poll_once=off,bus_width=1"), in case one of the other DAT lines is bad?

antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

Re: SDIO1 CM3+ WILC1000

Wed Apr 24, 2019 10:16 am

PhilE wrote:
Wed Apr 24, 2019 9:59 am

Code: Select all

[email protected]:~ $ dmesg | grep sdio
[ 0.804391] mmc-bcm2835 3f300000.sdio: could not get clk, deferring probe
[ 1.872941] mmc-bcm2835 3f300000.sdio: mmc_debug:0 mmc_debug2:0
[ 1.881101] mmc-bcm2835 3f300000.sdio: DMA channel allocated
This isn't an error - it's just an artifact of the way Linux manages dependencies between devices. Between the first message and the other two the kernel has loaded the clock driver, allowing the second probe attempt to succeed.

1. I'm only a software engineer, but that oscilloscope trace looks quite noisy. How long are your wires? Do they run close to anything else that might be radiating?

2. Do you get any messages in the kernel log when you insert an SD card?

3. Have you tried with the "bus_width=1" parameter ("dtoverlay siod,poll_once=off,bus_width=1"), in case one of the other DAT lines is bad?
1. Yes the trace is really noisy but they don't run close to anything radiating

2. I'm not connecting a SD card, I solder the WILC1000-SD output with wire that I connect to the GPIO (The noise might come from that). Can I just plug the module into the sd socket of the CM IO Board ?

3. It isn't working either. Same output from dmesg.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2224
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: SDIO1 CM3+ WILC1000

Wed Apr 24, 2019 10:25 am

I think your problem is in the wiring - either the signal integrity is too bad, or you have not connected (or misconnected) something.

The SD card adaptor on the CMIO board is only for the CM Lite variant - it isn't connected to the right GPIOs to be useful as a secondary device.

antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

Re: SDIO1 CM3+ WILC1000

Wed Apr 24, 2019 10:30 am

PhilE wrote: The SD card adaptor on the CMIO board is only for the CM Lite variant - it isn't connected to the right GPIOs to be useful as a secondary device.
So if I understood, I can't use it to plug my external WiFi module ? Do you know if there is an easy way to do that ?

Anyway, thank you for your response. I was focused on the software but I think you are right, there is a problem with the wiring.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2224
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: SDIO1 CM3+ WILC1000

Wed Apr 24, 2019 10:34 am

So if I understood, I can't use it to plug my external WiFi module ? Do you know if there is an easy way to do that ?
There is no easy way - you would need to break the tracks and reconnect them to other GPIOs, which is harder than what you are doing now.

antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

Re: SDIO1 CM3+ WILC1000

Wed Apr 24, 2019 11:09 am

PhilE wrote:
Wed Apr 24, 2019 10:34 am
So if I understood, I can't use it to plug my external WiFi module ? Do you know if there is an easy way to do that ?
There is no easy way - you would need to break the tracks and reconnect them to other GPIOs, which is harder than what you are doing now.

OK thank you. I will try to remake my wiring.

antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

Re: SDIO1 CM3+ WILC1000

Thu Apr 25, 2019 4:09 am

I have manage to have a nice wiring and, now, the signal are clean. Although, the PI still doesn't recognize the module.

Here is my wiring and the signal D7 (the signal top signal) is the SD1_CLK ; D3 is SD1_DAT3 ; D2 is SD1_CMD

http://zupimages.net/viewer.php?id=19/17/bo82.jpg
http://zupimages.net/viewer.php?id=19/17/uywt.jpg
http://zupimages.net/viewer.php?id=19/17/643m.jpg

I'm using the 1 line mode (dtoverlay=sdio,poll_once=off,bus_width=1)

Am I supposed to do some device tree modification or something like that ? I don't really understand this type of comment : https://github.com/linux4wilc/driver/is ... -398595919

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2224
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: SDIO1 CM3+ WILC1000

Thu Apr 25, 2019 8:26 am

That comment is just saying that the standard Compute Module DTB doesn't enable the other MMC interface - the one used for WiFi on the 3B etc. This isn't a problem for you because you are using the "sdio" overlay - that's what it was designed for.

Now that your wiring is better, what do the following commands return?

Code: Select all

$ dmesg | grep mmc1
$ sudo cat /sys/kernel/debug/mmc1/ios

# For the rest you can stop at the first failure
$ ls /sys/class/mmc
$ ls /sys/class/mmc/mmc1
$ ls /sys/class/mmc/mmc1/mmc1:001
$ grep . /sys/class/mmc/mmc1/*/*/vendor
$ grep . /sys/class/mmc/mmc1/*/*/device

antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

Re: SDIO1 CM3+ WILC1000

Thu Apr 25, 2019 9:04 am

PhilE wrote:
Thu Apr 25, 2019 8:26 am
That comment is just saying that the standard Compute Module DTB doesn't enable the other MMC interface - the one used for WiFi on the 3B etc. This isn't a problem for you because you are using the "sdio" overlay - that's what it was designed for.

Now that your wiring is better, what do the following commands return?

Code: Select all

$ dmesg | grep mmc1
$ sudo cat /sys/kernel/debug/mmc1/ios

# For the rest you can stop at the first failure
$ ls /sys/class/mmc
$ ls /sys/class/mmc/mmc1
$ ls /sys/class/mmc/mmc1/mmc1:001
$ grep . /sys/class/mmc/mmc1/*/*/vendor
$ grep . /sys/class/mmc/mmc1/*/*/device

Code: Select all

$ dmesg | grep mmc1

$ sudo cat /sys/kernel/debug/mmc1/ios
clock:          0 Hz
vdd:            0 (invalid)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     0 (off)
bus width:      0 (1 bits)
timing spec:    0 (legacy)
signal voltage: 0 (3.30 V)
driver type:    0 (driver type B)


# For the rest you can stop at the first failure
$ ls /sys/class/mmc
ls: cannot access '/sys/class/mmc': No such file or directory
This should be the problem, I will try to find a solution. Thank you for pointing that out.

kaushalyas
Posts: 19
Joined: Fri Apr 05, 2019 4:10 am

Re: SDIO1 CM3+ WILC1000

Tue Apr 30, 2019 11:09 pm

Hi,

I am trying the same and seeing the same results as yours.

Did you manage to find a solution?

Cheers,
Kay

antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

Re: SDIO1 CM3+ WILC1000

Thu May 02, 2019 9:30 am

kaushalyas wrote:
Tue Apr 30, 2019 11:09 pm
Hi,

I am trying the same and seeing the same results as yours.

Did you manage to find a solution?

Cheers,
Kay
Can you send your log ? I had some problem because of the wiring order of my pin. The wilc1000 schematic can fool you, be careful.

Concerning the driver, I'm not able to make it work despite the support help. I don't think that it's a consistent solution and I'm actually looking for another solution.

antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

Re: SDIO1 CM3+ WILC1000

Thu May 02, 2019 9:36 am

You need to wire the SDIO pin according this image : http://3.bp.blogspot.com/_8JZhVVmpICU/T ... pinout.jpg

kaushalyas
Posts: 19
Joined: Fri Apr 05, 2019 4:10 am

Re: SDIO1 CM3+ WILC1000

Fri May 03, 2019 3:11 am

Hi,

Many thanks for your reply.

The pin out diagram you mentioned has the pin 1 and 2 description not matching the signal name. Could you please clarify?

I have already checked the pin out of the wilc1000-sd Dev kit with the Dev kit schematic and it seems correct. What I have connected is as follows.

ARWILC1000-SD Pin -- CMIO J5 Pin
1 (DAT3) <> 27 (GPIO 27)
2 (CMD) <> 23 (GPIO 23)
3 (GND) <> 6 (GND)
4 (VSS) <> 8 (3V3)
5 (CLK) <> 22 (GPIO 22)
6 (GND) Not Connected
7 (DAT0) <> 24 (GPIO 24)
8 (DAT1) <> 25 (GPIO 25)
9 (DAT2) <> 26 (GPIO 26)

My SD pin numbering is based on standard SD card pin out as show in
sd.png
sd.png (4 KiB) Viewed 1487 times

antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

Re: SDIO1 CM3+ WILC1000

Fri May 03, 2019 4:48 am

kaushalyas wrote:
Fri May 03, 2019 3:11 am
Hi,

Many thanks for your reply.

The pin out diagram you mentioned has the pin 1 and 2 description not matching the signal name. Could you please clarify?

I have already checked the pin out of the wilc1000-sd Dev kit with the Dev kit schematic and it seems correct. What I have connected is as follows.

ARWILC1000-SD Pin -- CMIO J5 Pin
1 (DAT3) <> 27 (GPIO 27)
2 (CMD) <> 23 (GPIO 23)
3 (GND) <> 6 (GND)
4 (VSS) <> 8 (3V3)
5 (CLK) <> 22 (GPIO 22)
6 (GND) Not Connected
7 (DAT0) <> 24 (GPIO 24)
8 (DAT1) <> 25 (GPIO 25)
9 (DAT2) <> 26 (GPIO 26)

My SD pin numbering is based on standard SD card pin out as show in sd.png
Hi,

Excuse me I didn't pay attention to the description. The figure should be OK so I think that your connection is good..

Does your Pi recognize the sdio ? You should have this message: "mmc1: new high speed SDIO card at address 0001" when you execute dmesg.

Maybe we can make this WiFi module work together, I have been trying for 2 weeks !

kaushalyas
Posts: 19
Joined: Fri Apr 05, 2019 4:10 am

Re: SDIO1 CM3+ WILC1000

Fri May 03, 2019 6:39 am

Hi,
Thanks mate. Appreciate your help. Yes we can work together till we get this solved.

I think I have gone one step further. I was seeing high frequency oscillation on DAT3 and CMD. I thought may be this is due to long wires I used to connect the dev kit to CMIO. So I shorted them to about 3 cm. Now I can see in dmesg "mmc1: new high speed SDIO card at address 0001"

Then I manually insmod the driver and it loaded without any issue. When I
#dmesg |grep mmc1

I get

Code: Select all

[    1.968440] mmc1: new high speed SDIO card at address 0001
[  124.064302] wilc_sdio mmc1:0001:1: failed to get Reset GPIO, try default
[  124.064308] wilc_sdio mmc1:0001:1: failed to get default Reset GPIO
[  124.064315] wilc_sdio mmc1:0001:1: failed to get Reset GPIO, try default
[  124.064320] wilc_sdio mmc1:0001:1: failed to get default Reset GPIO
[  124.064501] wilc_sdio mmc1:0001:1: Driver Initializing success
[  124.300878] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.300887] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.300922] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.300927] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.300961] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.300966] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.300998] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301004] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301036] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301041] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301074] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301079] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301111] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301116] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301149] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301154] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301190] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301195] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301230] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301235] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301267] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301272] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301304] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301309] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301341] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301346] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301379] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301384] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301416] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301421] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301454] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301459] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301491] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301496] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301572] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[  124.301583] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  124.301592] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  124.301597] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_init_locks]Initializing Locks ...
[  124.301603] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  124.301610] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[  124.302076] wilc_sdio mmc1:0001:1: chipid 001003a0
[  124.302729] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_initialize]WILC Initialization done
[  124.302736] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  124.302742] wilc_sdio mmc1:0001:1: failed to load default irq
[  124.302747] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinit_locks]De-Initializing Locks
[  124.302754] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:1204] WLAN initialization FAILED
[  124.302759] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1248] Failed to initialize wilc
[  124.302793] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_send_config_pkt:1903] Set Timed out
[  124.302800] wilc_sdio mmc1:0001:1 wlan0: ERR [handle_set_wfi_drv_handler:433] Failed to set driver handler
[  124.303075] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303080] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303088] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303093] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303099] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303104] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303110] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303115] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303121] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303126] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303132] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303136] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303142] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303147] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303153] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303158] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303164] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303169] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303175] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303180] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303186] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303191] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303197] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303201] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303207] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303212] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303218] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303223] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303229] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303234] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303240] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303245] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303251] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303256] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303486] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[  124.303501] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  124.303510] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  124.303515] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_init_locks]Initializing Locks ...
[  124.303520] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  124.304175] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_initialize]WILC Initialization done
[  124.304181] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  124.304187] wilc_sdio mmc1:0001:1: failed to load default irq
[  124.304193] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinit_locks]De-Initializing Locks
[  124.304198] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:1204] WLAN initialization FAILED
[  124.304204] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1248] Failed to initialize wilc
[  124.304231] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_send_config_pkt:1903] Set Timed out
[  124.304237] wilc_sdio mmc1:0001:1 wlan0: ERR [handle_set_wfi_drv_handler:433] Failed to set driver handler
[  124.354856] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[  124.354875] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  124.354886] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  124.354892] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_init_locks]Initializing Locks ...
[  124.354898] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  124.355599] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_initialize]WILC Initialization done
[  124.355606] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  124.355612] wilc_sdio mmc1:0001:1: failed to load default irq
[  124.355617] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinit_locks]De-Initializing Locks
[  124.355623] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:1204] WLAN initialization FAILED
[  124.355628] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1248] Failed to initialize wilc
[  124.355664] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_send_config_pkt:1903] Set Timed out
[  124.355670] wilc_sdio mmc1:0001:1 wlan0: ERR [handle_set_wfi_drv_handler:433] Failed to set driver handler
[  124.389190] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389200] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389234] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389239] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389272] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389278] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389311] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389316] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389348] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389353] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389385] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389390] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389423] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389428] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389460] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389465] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389501] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389506] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389540] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389545] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389577] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389583] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389614] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389619] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389651] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389656] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389689] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389694] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389726] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389731] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389763] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389768] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389801] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389806] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389881] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] p2p0
[  124.389896] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  124.389908] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_open]*** re-init ***
[  124.389914] wilc_sdio mmc1:0001:1 p2p0: INFO [wlan_init_locks]Initializing Locks ...
[  124.389919] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  124.390614] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_wlan_initialize]WILC Initialization done
[  124.390621] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  124.390627] wilc_sdio mmc1:0001:1: failed to load default irq
[  124.390632] wilc_sdio mmc1:0001:1 p2p0: INFO [wlan_deinit_locks]De-Initializing Locks
[  124.390638] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_wlan_initialize:1204] WLAN initialization FAILED
[  124.390643] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_mac_open:1248] Failed to initialize wilc
[  124.390675] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_send_config_pkt:1903] Set Timed out
[  124.390682] wilc_sdio mmc1:0001:1 p2p0: ERR [handle_set_wfi_drv_handler:433] Failed to set driver handler
[  124.390861] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390866] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390873] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390878] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390884] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390889] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390895] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390900] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390906] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390911] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390917] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390922] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390928] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390933] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390939] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390943] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390950] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390954] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390960] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390965] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390971] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390976] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390982] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390987] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390993] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390998] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.391004] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.391009] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.391015] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.391020] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.391026] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.391031] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.391037] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.391042] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.391266] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] p2p0
[  124.391279] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  124.391287] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_open]*** re-init ***
[  124.391292] wilc_sdio mmc1:0001:1 p2p0: INFO [wlan_init_locks]Initializing Locks ...
[  124.391297] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  124.392825] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_wlan_initialize]WILC Initialization done
[  124.392836] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  124.392843] wilc_sdio mmc1:0001:1: failed to load default irq
[  124.392849] wilc_sdio mmc1:0001:1 p2p0: INFO [wlan_deinit_locks]De-Initializing Locks
[  124.392854] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_wlan_initialize:1204] WLAN initialization FAILED
[  124.392860] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_mac_open:1248] Failed to initialize wilc
[  124.392894] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_send_config_pkt:1903] Set Timed out
[  124.392900] wilc_sdio mmc1:0001:1 p2p0: ERR [handle_set_wfi_drv_handler:433] Failed to set driver handler
[  124.430841] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] p2p0
[  124.430860] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  124.430872] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_open]*** re-init ***
[  124.430877] wilc_sdio mmc1:0001:1 p2p0: INFO [wlan_init_locks]Initializing Locks ...
[  124.430883] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  124.431569] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_wlan_initialize]WILC Initialization done
[  124.431576] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  124.431582] wilc_sdio mmc1:0001:1: failed to load default irq
[  124.431587] wilc_sdio mmc1:0001:1 p2p0: INFO [wlan_deinit_locks]De-Initializing Locks
[  124.431593] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_wlan_initialize:1204] WLAN initialization FAILED
[  124.431599] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_mac_open:1248] Failed to initialize wilc
It seems this is due to me not connecting reset and IRQ lines. So I will do it next.
Question, how do you modify the device tree to map these to what ever GPIOs used?

Cheers,
Kay

antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

Re: SDIO1 CM3+ WILC1000

Mon May 06, 2019 1:23 am

kaushalyas wrote:
Fri May 03, 2019 6:39 am
Hi,
Thanks mate. Appreciate your help. Yes we can work together till we get this solved.

I think I have gone one step further. I was seeing high frequency oscillation on DAT3 and CMD. I thought may be this is due to long wires I used to connect the dev kit to CMIO. So I shorted them to about 3 cm. Now I can see in dmesg "mmc1: new high speed SDIO card at address 0001"

Then I manually insmod the driver and it loaded without any issue. When I
#dmesg |grep mmc1

I get

Code: Select all

[    1.968440] mmc1: new high speed SDIO card at address 0001
[  124.064302] wilc_sdio mmc1:0001:1: failed to get Reset GPIO, try default
[  124.064308] wilc_sdio mmc1:0001:1: failed to get default Reset GPIO
[  124.064315] wilc_sdio mmc1:0001:1: failed to get Reset GPIO, try default
[  124.064320] wilc_sdio mmc1:0001:1: failed to get default Reset GPIO
[  124.064501] wilc_sdio mmc1:0001:1: Driver Initializing success
[  124.300878] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.300887] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.300922] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.300927] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.300961] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.300966] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.300998] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301004] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301036] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301041] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301074] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301079] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301111] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301116] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301149] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301154] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301190] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301195] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301230] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301235] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301267] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301272] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301304] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301309] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301341] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301346] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301379] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301384] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301416] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301421] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301454] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301459] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301491] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.301496] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.301572] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[  124.301583] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  124.301592] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  124.301597] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_init_locks]Initializing Locks ...
[  124.301603] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  124.301610] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[  124.302076] wilc_sdio mmc1:0001:1: chipid 001003a0
[  124.302729] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_initialize]WILC Initialization done
[  124.302736] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  124.302742] wilc_sdio mmc1:0001:1: failed to load default irq
[  124.302747] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinit_locks]De-Initializing Locks
[  124.302754] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:1204] WLAN initialization FAILED
[  124.302759] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1248] Failed to initialize wilc
[  124.302793] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_send_config_pkt:1903] Set Timed out
[  124.302800] wilc_sdio mmc1:0001:1 wlan0: ERR [handle_set_wfi_drv_handler:433] Failed to set driver handler
[  124.303075] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303080] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303088] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303093] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303099] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303104] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303110] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303115] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303121] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303126] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303132] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303136] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303142] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303147] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303153] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303158] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303164] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303169] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303175] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303180] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303186] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303191] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303197] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303201] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303207] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303212] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303218] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303223] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303229] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303234] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303240] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303245] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303251] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.303256] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.303486] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[  124.303501] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  124.303510] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  124.303515] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_init_locks]Initializing Locks ...
[  124.303520] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  124.304175] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_initialize]WILC Initialization done
[  124.304181] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  124.304187] wilc_sdio mmc1:0001:1: failed to load default irq
[  124.304193] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinit_locks]De-Initializing Locks
[  124.304198] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:1204] WLAN initialization FAILED
[  124.304204] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1248] Failed to initialize wilc
[  124.304231] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_send_config_pkt:1903] Set Timed out
[  124.304237] wilc_sdio mmc1:0001:1 wlan0: ERR [handle_set_wfi_drv_handler:433] Failed to set driver handler
[  124.354856] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] wlan0
[  124.354875] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  124.354886] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[  124.354892] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_init_locks]Initializing Locks ...
[  124.354898] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  124.355599] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_initialize]WILC Initialization done
[  124.355606] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  124.355612] wilc_sdio mmc1:0001:1: failed to load default irq
[  124.355617] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_deinit_locks]De-Initializing Locks
[  124.355623] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:1204] WLAN initialization FAILED
[  124.355628] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1248] Failed to initialize wilc
[  124.355664] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_send_config_pkt:1903] Set Timed out
[  124.355670] wilc_sdio mmc1:0001:1 wlan0: ERR [handle_set_wfi_drv_handler:433] Failed to set driver handler
[  124.389190] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389200] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389234] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389239] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389272] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389278] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389311] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389316] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389348] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389353] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389385] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389390] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389423] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389428] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389460] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389465] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389501] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389506] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389540] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389545] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389577] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389583] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389614] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389619] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389651] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389656] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389689] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389694] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389726] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389731] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389763] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389768] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389801] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 1
[  124.389806] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.389881] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] p2p0
[  124.389896] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  124.389908] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_open]*** re-init ***
[  124.389914] wilc_sdio mmc1:0001:1 p2p0: INFO [wlan_init_locks]Initializing Locks ...
[  124.389919] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  124.390614] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_wlan_initialize]WILC Initialization done
[  124.390621] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  124.390627] wilc_sdio mmc1:0001:1: failed to load default irq
[  124.390632] wilc_sdio mmc1:0001:1 p2p0: INFO [wlan_deinit_locks]De-Initializing Locks
[  124.390638] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_wlan_initialize:1204] WLAN initialization FAILED
[  124.390643] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_mac_open:1248] Failed to initialize wilc
[  124.390675] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_send_config_pkt:1903] Set Timed out
[  124.390682] wilc_sdio mmc1:0001:1 p2p0: ERR [handle_set_wfi_drv_handler:433] Failed to set driver handler
[  124.390861] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390866] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390873] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390878] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390884] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390889] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390895] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390900] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390906] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390911] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390917] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390922] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390928] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390933] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390939] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390943] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390950] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390954] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390960] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390965] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390971] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390976] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390982] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390987] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.390993] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.390998] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.391004] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.391009] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.391015] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.391020] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.391026] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.391031] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.391037] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Frame registering Frame Type: d0: Boolean: 0
[  124.391042] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[  124.391266] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] p2p0
[  124.391279] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  124.391287] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_open]*** re-init ***
[  124.391292] wilc_sdio mmc1:0001:1 p2p0: INFO [wlan_init_locks]Initializing Locks ...
[  124.391297] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  124.392825] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_wlan_initialize]WILC Initialization done
[  124.392836] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  124.392843] wilc_sdio mmc1:0001:1: failed to load default irq
[  124.392849] wilc_sdio mmc1:0001:1 p2p0: INFO [wlan_deinit_locks]De-Initializing Locks
[  124.392854] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_wlan_initialize:1204] WLAN initialization FAILED
[  124.392860] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_mac_open:1248] Failed to initialize wilc
[  124.392894] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_send_config_pkt:1903] Set Timed out
[  124.392900] wilc_sdio mmc1:0001:1 p2p0: ERR [handle_set_wfi_drv_handler:433] Failed to set driver handler
[  124.430841] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_open]MAC OPEN[(ptrval)] p2p0
[  124.430860] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_init_host_int]Host[(ptrval)][(ptrval)]
[  124.430872] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_open]*** re-init ***
[  124.430877] wilc_sdio mmc1:0001:1 p2p0: INFO [wlan_init_locks]Initializing Locks ...
[  124.430883] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[  124.431569] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_wlan_initialize]WILC Initialization done
[  124.431576] wilc_sdio mmc1:0001:1: failed to get IRQ GPIO, load default
[  124.431582] wilc_sdio mmc1:0001:1: failed to load default irq
[  124.431587] wilc_sdio mmc1:0001:1 p2p0: INFO [wlan_deinit_locks]De-Initializing Locks
[  124.431593] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_wlan_initialize:1204] WLAN initialization FAILED
[  124.431599] wilc_sdio mmc1:0001:1 p2p0: ERR [wilc_mac_open:1248] Failed to initialize wilc
It seems this is due to me not connecting reset and IRQ lines. So I will do it next.
Question, how do you modify the device tree to map these to what ever GPIOs used?

Cheers,
Kay
Hi,

You're right about the problem. I don't know how to modify the device tree. Although, you can modify the default hardcoded GPIO's in the file wilc_wlan.h:
#define GPIO_NUM 0x5B
#define GPIO_NUM_CHIP_EN 94
#define GPIO_NUM_RESET 60

Cheers,
Antoine

kaushalyas
Posts: 19
Joined: Fri Apr 05, 2019 4:10 am

Re: SDIO1 CM3+ WILC1000

Mon May 13, 2019 1:17 am

sdio-overlay-final.zip
(911 Bytes) Downloaded 26 times
Hi, I have managed to pass the GPIOs to the driver and now I can load the driver. I see wlan0 and p2p0 interfaces. I ran 'raspi-config' and created wpa_cupplicant.conf to suit my ssid. But still it cant get IP from DHCP sever nor wok with static IP. Also occasionally I get kernel oops as follows.

sudo modprobe wilc-sdio
[email protected]:~$
[email protected]:~$
[email protected]:~$ arp -n[ 125.998274] Unable to handle kernel NULL pointer dereference at virtual address 00000022
[ 126.010526] pgd = (ptrval)
[ 126.015294] [00000022] *pgd=00000000
[ 126.020950] Internal error: Oops: 17 [#1] SMP ARM
[ 126.027710] Modules linked in: wilc_sdio sha256_generic cfg80211 rfkill bcm2835_codec(C) bcm2835_v4l2(C) v4l2_mem2mem bcm2835_mmal_vchiq(C) raspberrypi_hwmon videobuf2_dma_contig v4l2_common hwmon videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common vc_sm_cma(C) videodev media fixed uio_pdrv_genirq uio ip_tables x_tables ipv6
[ 126.069139] CPU: 3 PID: 477 Comm: K_TXQ_TASK Tainted: G C 4.19.30-v7+ #6
[ 126.081986] Hardware name: BCM2835
[ 126.087918] PC is at wilc_wlan_txq_remove_from_head+0x60/0xa8 [wilc_sdio]
[ 126.097312] LR is at 0x100
[ 126.102560] pc : [<7f35cff0>] lr : [<00000100>] psr: a0000093
[ 126.111510] sp : b830dd48 ip : b830c000 fp : b830dd64
[ 126.119414] r10: 000000ff r9 : 7f36e43c r8 : 00000029
[ 126.127320] r7 : b8294058 r6 : b8294040 r5 : 0000001e r4 : b8294000
[ 126.136559] r3 : b8297294 r2 : b8297278 r1 : 80000013 r0 : 00000200
[ 126.145791] Flags: NzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
[ 126.155721] Control: 10c5383d Table: 3812806a DAC: 00000055
[ 126.164113] Process K_TXQ_TASK (pid: 477, stack limit = 0x(ptrval))

It seems like the kernel null ref is invoked in 'K_TXQ_TASK', which is a kernel thread. But I dont have any idea how to debug deeper?
Do you have any ideas?

I have attached the my current sdio-overlays.dts
sdio-overlay-final.zip
(911 Bytes) Downloaded 26 times

Cheers,
Kay

kaushalyas
Posts: 19
Joined: Fri Apr 05, 2019 4:10 am

Re: SDIO1 CM3+ WILC1000

Thu May 16, 2019 12:14 pm

Hi,

I have figured out that seems to cause the kernel oops. As soon as interface is up, I can see

[ 74.162353] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_xmit]DHCP Message transmitted, type:35 1 1
[ 74.352357] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_xmit]DHCP Message transmitted, type:35 1 1
[ 78.327467] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_xmit]DHCP Message transmitted, type:35 1 1
[ 78.549960] wilc_sdio mmc1:0001:1: wilc_sdio_cmd52..failed, err(-84)
[ 78.549976] wilc_sdio mmc1:0001:1: Failed cmd 52, read reg (000000f1) ...
[ 78.549984] Bus error (5).0 0
[ 79.161527] wilc_sdio mmc1:0001:1 p2p0: INFO [wilc_mac_xmit]DHCP Message transmitted, type:35 1 1
[ 79.168370] Unable to handle kernel NULL pointer dereference at virtual address 00000004

The error is happening when CMD52 read fails.

Anyone can think why this is failing?

I have reduced the interconnecting wires as short as possible to keep signal integrity. Will hook up a scope to see the clk and data and update here.

Cheers,
Kay

antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

Re: SDIO1 CM3+ WILC1000

Fri May 17, 2019 1:32 am

Hi,

I gave up with this module and I don't have any answer for you. Maybe you can ask on their github :https://github.com/linux4wilc/driver/issues

kaushalyas
Posts: 19
Joined: Fri Apr 05, 2019 4:10 am

Re: SDIO1 CM3+ WILC1000

Fri May 17, 2019 2:07 am

Hi, I am almost at the point of going for another, but I felt like I was almost there. Even I manage to run a ssh session couple of times.

The problem I see is the failure of read cycle of CMD 52. Now as a last resort, I am tryig to lower the sdio clock, assuming its a signal integrity issue.

Did you manage to find a another working solution?

Cheers,
Kay

antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

Re: SDIO1 CM3+ WILC1000

Fri May 17, 2019 2:17 am

I also almost succeed few times but this solution isn't consistent enough for me.

Not yet, for the moment, I'm trying with the Cypress solutions as the CYW43438 is used in the Raspi 3B+.

I have tried the ISM43362-L36 as I only need WiFi but it doesn't work (thread here: https://www.raspberrypi.org/forums/view ... 8&t=240522)
I have purchased the ISM43362-M3G-L44 but I think it won't work either.

If I understand this wiki : https://wikidevi.com/wiki/Cypress, you can only use the module that support SDIO/SPI interface. I think I will try the ISM4343-WBM-L151.

Another solution might be to use a USB dongle. As I need a small footprint, I have bought the ra-wn110606c but I have this problem: https://unix.stackexchange.com/question ... -not-ready

I'm starting to think that I won't be able to make this work and just buy a big USB-WiFi dongle like the TL-WN722N that works for me.

kaushalyas
Posts: 19
Joined: Fri Apr 05, 2019 4:10 am

Re: SDIO1 CM3+ WILC1000

Fri May 17, 2019 6:27 am

Hi,

I managed to get it up and going with some certainty.

The issue was with signal integrity of the wiring between CMIO and ATWILC1000-SD dev kits.

So I reduced the sdio clock from 50MHz to 25MHz via sdio-overlay.dts. I have attached it in case anyone can use.
sdio-overlay-final.zip
(945 Bytes) Downloaded 30 times
I could check the sdio config using

Code: Select all

[email protected]:~$ sudo cat /sys/kernel/debug/mmc1/ios
clock:          25000000 Hz
actual clock:   25000000 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      2 (4 bits)
timing spec:    2 (sd high-speed)
signal voltage: 0 (3.30 V)
driver type:    0 (driver type B)
I updated wpa_supplicant as follows.

Code: Select all

[email protected]:~ $ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=[YOUR COUNTRY CODE]

network={
 ssid="[YOUR SSID]"
 psk="[YOUR PASSPHRASE]"
 key_mgmt=WPA-PSK
}
Edit the /etc/network/interfaces

Code: Select all

[email protected]:~$ sudo nano /etc/network/interfaces

Code: Select all

source-directory /etc/network/interfaces.d
auto wlan0

allow-hotplug wlan0
iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Finally add the driver to /etc/modules to auto load it.

Code: Select all

[email protected]:~$ sudo nano /etc/modules

Code: Select all

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

wilc-sdio
I have done
1. ping www.google.com for 5-6 minutes
2. ssh to it
3. 200MB file download in 82 sec
4. 512MB file downloaded in 2m 37s

I will run iperf to check further. But for now, it seems like holding.

kernel version: Linux raspberrypi 4.19.42-v7+

Cheers,

antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

Re: SDIO1 CM3+ WILC1000

Fri May 17, 2019 6:48 am

Thank you for the feedback, I will try. Could you share a picture of your set up ?

Do you use your device tree like an overlay with dtoverlay=sdio-overlay-final in /boot/config.txt ?

Cheers,
Last edited by antoinebore on Fri May 17, 2019 7:13 am, edited 1 time in total.

antoinebore
Posts: 51
Joined: Fri Apr 12, 2019 4:01 am

Re: SDIO1 CM3+ WILC1000

Fri May 17, 2019 7:32 am

By the way, did you use the WILC1000 last version that you can download on the wilc1000 git or did you use the one available in raspberrypi/linux git ?

Return to “Compute Module”