WL1835mod with kernel 4.2.5-bone2

Hi,

I’m trying to get the WL1835mod cape working with kernel version 4.2.5-bone2, so I can have sleep mode enabled as well.

I’m using the ./wl8-build.sh script from here: http://processors.wiki.ti.com/index.php/WL1835_Cape_on_BeagleBone_with_MainLine_Kernel_Debian_Filesystem.

I’ve obviously modified the script to download 4.2.5-bone2, as well as a minimalist Ubuntu build instead of Debian.

Everything boots and works well, except the wl1835mod cape is not recognized. dmesg simply shows the following:

ubuntu@arm:~$ dmesg | grep wl
[ 5.319992] wlan-en-regulator: disabling
[ 8.778535] wl1271_sdio: probe of mmc1:0001:2 failed with error -12

…which kinda makes sense, if it’s trying to find a wl1271mod instead of a wl1835mod.

How do I make it search for the wl1835mod on mmc1 instead? Is it something in am335x-boneblack-wl1835mod-cape.dtsi or uEnv.txt that I have to modify?

Here is my uEnv.txt:

ubuntu@arm:/boot$ cat uEnv.txt
uname_r=4.2.5-bone2
uuid=09597df5-a634-419c-b9cb-3315c5284ec1
dtb=am335x-boneblack-wl1835mod.dtb

cmdline=coherent pool=1M quiet

Thank you,

Hi,
I think it must be the ubuntu fs change that is causing the problem. I have just rerun the script as is with debian 8.1 with

BBB_KERNEL_TAG=4.2.5-bone2

and it boots fine.

As some background the -12 error is out of memory but it is also used by the wlcore driver when it cannot parse the device tree file correctly. So that would be the first place I’d look.
It is usually something to do with the line

compatible = “ti,wl1835”;

line 141 in https://github.com/RobertCNelson/bb-kernel/blob/4.2.5-bone2/patches/beaglebone/capes/0003-ARM-dts-am335x-boneblack-enable-wl1835mod-cape-suppo.patch

Iain