Search Linux Wireless

Re: Broadcom brcmfmac vs bcmdhd on Android

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/24/2013 04:18 PM, Bruno Randolf wrote:
I succeeded to compile brcmfmac from recent compat-drivers against the
"tuna" (Galaxy Nexus) kernel, the modules load, but no device is
recognized. Has anyone succeeded doing this? Is there any chance it can
work?

That is how we did it and with success. What do you mean by 'no device
is recognized'? Do you have any traces to look at?

Good to know. What I did is I compiled the "tuna" kernel (3.0.31)
without bcmdhd, then brcmfmac from compat-drivers, loaded the brcmfmac
module (+ dependencies), but then nothing happens. It looks like the
device is not recognized on SDIO. Is there anything special I need to do
to activate the chip?

I spent some more time tracing the problem, without much success. Still it simply looks like no SDIO device is detected. Please see below for what I found, maybe something rings a bell for you?

Enabling tracing in the brcmfmac driver shows me
"brcmfmac: brcmf_sdio_init: Enter", nothing more.

Then, I enabled function tracing, here are the relevant parts:

sdio_register_driver <-brcmf_sdio_init
driver_register <-sdio_register_driver
driver_find <-driver_register
bus_add_driver <-driver_register
driver_attach <-bus_add_driver
bus_for_each_dev <-driver_attach
module_add_driver <-bus_add_driver

The rest is sysfs file registration, nothing more interesting, but I can send you the full dump if you want... No driver probe functions are called.

I see a strange problem with the brcmf_sdmmc_ids:

{SDIO_DEVICE(SDIO_VENDOR_ID_BROADCOM, SDIO_DEVICE_ID_BROADCOM_43241)},
{SDIO_DEVICE(SDIO_VENDOR_ID_BROADCOM, SDIO_DEVICE_ID_BROADCOM_4329)},
{SDIO_DEVICE(SDIO_VENDOR_ID_BROADCOM, SDIO_DEVICE_ID_BROADCOM_4330)},
{SDIO_DEVICE(SDIO_VENDOR_ID_BROADCOM, SDIO_DEVICE_ID_BROADCOM_4334)},

On the Galaxy Nexus modinfo just shows:

alias:          sdio:c*v02D0d4334*
alias:          sdio:c*v02D0d4329*

I.e. every second device, while on my host the modinfo list looks OK.

I manually changed the list to only include 4330 and that way modinfo shows it correctly also on the device, but maybe this is part of the problem?

How did you get it to work? Which device did you use (Galaxy Nexus?)?
Do I need to activate CONFIG_BRCMFMAC_SDIO_OOB (I tried with no difference)?

Thank you for any hints,
bruno




--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux