YAWP - Yet Another Wifi Problem

Discussion of your EDM baseboard, your add-on boards or other peripherals for your wandboard.

YAWP - Yet Another Wifi Problem

Postby igitur » Sun Sep 18, 2016 1:23 pm

I have a Wandboard Quad Rev B1 and I'm unable to get the wlan0 interface. I have search high and low on this forum and elsewhere and found many threads on the topic (hence my tongue in cheek title of this thread), but none of the advice worked.

I believe the rev B1 still has the brcm4329 WiFi chip, not the brcm4330. I hope this is correct.

At the moment I'm running the Ubuntu 12.04 image.
The contents of my /lib/firmware/brcm/ directory is:
Code: Select all
~# ls -al /lib/firmware/brcm/
total 280
drwxr-xr-x  2 root root   4096 Sep 17 13:44 .
drwxr-xr-x 11 root root   4096 Jul  8  2013 ..
-rw-r--r--  1 root root  17332 Sep 17 13:44 bcm4329.hcd
-rw-r--r--  1 root root 253748 Jan  1  1970 brcmfmac-sdio.bin
-rwxr-xr-x  1 root root   1293 Jan  1  1970 brcmfmac-sdio.txt

and I've check that they match the latest files at https://github.com/Freescale/meta-fsl-a ... /wandboard

I have loaded the brcmfmac and brcmutil using modprobe.
Code: Select all
~# lsmod
Module                  Size  Used by
brcmfmac               73971  0
brcmutil                2411  1 brcmfmac


But I still can't see the wlan0 interface:
Code: Select all
~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:1f:7b:b4:04:7f brd ff:ff:ff:ff:ff:ff


I have tried other images too: Ubuntu 15.04, ArchLinux. On these, I had to create the symbolic links to brcmfmac4329-sdio.txt and brcmfmac4329-sdio.bin. Symbolic link names brcmfmac-sdio.txt and brcmfmac-sdio.bin. (as explained in http://blog.oaktreepeak.com/2014/10/ena ... _quad.html . I tried it for bcrm4329 and brcm4330 just for good measure.) Absolutely nothing works.

I suspect there might be a hardware issue, but the seller of the device has guaranteed me that the WiFi works. Before I go back to him, I want to be assured that I've tried everything. What else can I do to, for starters, just ensure that the WiFi chip isn't damanged? Any help would be appreciated.

Francois
igitur
 
Posts: 2
Joined: Sun Sep 18, 2016 12:54 pm

Re: YAWP - Yet Another Wifi Problem

Postby jury093 » Mon Sep 19, 2016 11:09 am

Hi!
what showing command:
Code: Select all
dmesg |grep brcm

or put full dmesg output to pastebin.com and link here..
and try put firmware with native name:
Code: Select all
/lib/firmware/brcm/brcmfmac4329-sdio.bin
jury093
 
Posts: 59
Joined: Fri Feb 06, 2015 10:41 am
Location: Sankt-Peterburg, Russia

Re: YAWP - Yet Another Wifi Problem

Postby igitur » Wed Sep 21, 2016 5:18 pm

Code: Select all
linaro@linaro-ubuntu-desktop:~$ dmesg | grep -i brcm
linaro@linaro-ubuntu-desktop:~$


Code: Select all
linaro@linaro-ubuntu-desktop:~$ dmesg | grep -i sdio
linaro@linaro-ubuntu-desktop:~$


Code: Select all
linaro@linaro-ubuntu-desktop:~$ dmesg | grep -i broadcom
linaro@linaro-ubuntu-desktop:~$


Full dmesg pastebin: https://www.pastiebin.com/57e2becf73ec7

I also tried the different filenames, as you suggested. Currently my brcm folder contents is:
Code: Select all
~$ ls -al /lib/firmware/brcm/
total 532
drwxr-xr-x  2 root root   4096 Sep 21 17:13 .
drwxr-xr-x 11 root root   4096 Jul  8  2013 ..
-rwxr-xr-x  1 root root  17332 Jan  1  1970 bcm4329.hcd
-rw-r--r--  1 root root 253748 Jan  1  1970 brcmfmac-sdio.bin
-rwxr-xr-x  1 root root   1293 Jan  1  1970 brcmfmac-sdio.txt
-rw-r--r--  1 root root 253748 Sep 21 17:13 brcmfmac4329-sdio.bin
-rwxr-xr-x  1 root root   1293 Sep 21 17:13 brcmfmac4329-sdio.txt


And I have reboot a few times. Still no sign of the wlan0 interface.

thanks.
igitur
 
Posts: 2
Joined: Sun Sep 18, 2016 12:54 pm

Re: YAWP - Yet Another Wifi Problem

Postby jury093 » Thu Sep 22, 2016 9:10 am

ok. you need make a few steps (you have WQ rev B1)
check in kernel sources sdio chanel for you wifi module and gpio setting (reset, wake) in file imx6qdl-wandboard.dtsi section:
Code: Select all
rfkill {
                compatible = "wand,imx6qdl-wandboard-rfkill";
                pinctrl-names = "default";
                pinctrl-0 = <>;

                bluetooth-on = <&gpio3 13 0>;
                bluetooth-wake = <&gpio3 14 0>;
                bluetooth-host-wake = <&gpio3 15 0>;

                wifi-ref-on = <&gpio2 29 0>;
                wifi-rst-n = <&gpio5 2 0>;
                wifi-reg-on = <&gpio1 26 0>;
                wifi-host-wake = <&gpio1 29 0>;
                wifi-wake = <&gpio1 30 0>;

      /* Rev C1 gpio definitions */
                bluetooth-on-revc1 = <&gpio5 30 0>;
                bluetooth-wake-revc1 = <&gpio1 30 0>;
                bluetooth-host-wake-revc1 = <&gpio5 20 0>;

                wifi-ref-on-revc1 = <&gpio5 31 0>; /* Controls external FET switch */

      /* Rev B/C probe gpio */
      wand-rev-gpio = <&gpio2 28 0>;
        };

next, rebuild brcm as modules (*.ko) and try modprobe
if hardware was true connected you can see the same:
viewtopic.php?f=3&t=512
Code: Select all
root ~ # dmesg | grep brcm
[    9.453933] brcmfmac: F1 signature read @0x18000000=0x16044330
[    9.881181] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 25 2011 19:34:12 version 5.90.125.104


and from here
http://forum.armbian.com/index.php/topi ... #entry6644
Code: Select all
brcmfmac              154271  0
brcmutil                3997  1 brcmfmac
cfg80211              157970  1 brcmfmac
rfkill                 12201  2 cfg80211,bluetooth

may be you need rfkill..

just in case you actual kernel version:
Code: Select all
uname -a
jury093
 
Posts: 59
Joined: Fri Feb 06, 2015 10:41 am
Location: Sankt-Peterburg, Russia


Return to Hardware and peripherals

Who is online

Users browsing this forum: No registered users and 2 guests