[Q] How to compile atrix wifi drivers?

ambrice

Senior Member
Dec 5, 2011
71
56
0
I am building an Atrix CM7 image with a kernel based on faux123's github kernel-MB860. That kernel builds and works fine. The wifi drivers however, are not working. I have also cloned faux123's atrix-wifi-dev project and built the dhd module by:

Code:
cd open-src/src/dhd/linux
make ANDROID_BUILD_TOP=~/projects/android/system LINUXSRCDIR=~/projects/android/kernel-MB860 BCM_INSTALLDIR=~/projects/android/system/device/motorola/olympus/modules CROSS_COMPILE=$CCOMPILER dhd-cdc-sdstd
I get "Error" from the enable wifi option in network settings. I tried insmod'ing the dhd.ko from the adb shell:

Code:
insmod /system/lib/modules/dhd.ko firmware_path=/system/etc/wl/sdio-ag-cdc-full11n-minioctl-roml-pno-wme-aoe-pktfilter-keepalive.bin nvram_path=/system/etc/wl/nvram.txt

insmod: init_module '/system/lib/modules/dhd.ko' failed (Invalid argument)
dmesg shows:

<4>[ 310.662019] Dongle Host Driver, version 4.218.248.31
<4>[ 310.662023] Compiled in /home/bricea/projects/android/atrix-wifi-module/open-src/src/dhd/linux/../.. on Feb 16 2012 at 11:30:24
<7>[ 310.972212] mmc1: queuing CIS tuple 0x91 length 3
<6>[ 310.972246] mmc1: new SDIO card at address 0001
<4>[ 322.653577] dhd_module_init: sdio_register_driver timeout

Am I building this correctly? Has anyone successfully rebuilt the kernel and dhd driver?
 

kwick60073

Member
Mar 30, 2011
41
3
0
Gurnee, IL
Did you ever figure this out?

Did you (or anyone) figure out how to build the wifi module for CM7? Where do you get the source?

I have successfully built both the kernel and the filesystem, but have not been able to get the wifi module built.
 

Colt45ws

Member
Mar 30, 2011
6
1
0
Central Washington
Okay, so apparently this is some sort of secret because I had no luck finding the proper way to build the driver module.
Well, I finally got tired of trying the same thing ('make dhd-cdc-sdstd') over and over only to get nowhere. I went into the makefile and looked around at what kind of options it had for building the module. Turns out there are about 2 dozen different options.
The default option is 'dhd-cdc-sdmmc-oob-gpl' and what it will build if you just type 'make' in the proper folder. Finding that it was probably just as likely as any other option, I did that.
It WORKED!
So the proper command is 'make dhd-cdc-sdmmc-oob-gpl' or just 'make'.
I hope no one minds me digging up an older thread, but I thought I might share if anyone else wanted to try cooking their own kernel. I flailed around with this issue for two days trying desperately to find the answer before I finally figured it out.
 
Last edited:
  • Like
Reactions: Newbleeto