bcm4329 wifi module

913 views
Skip to first unread message

Vadim

unread,
Sep 6, 2011, 6:10:38 PM9/6/11
to Android Linux Kernel Development
i am trying to compile the 2.6.35.7 kernel supplied by huawei, the
kernel builds fine but the bcm4329 wifi module gives

ERROR: "wifi_get_irq_number" [drivers/net/wireless/bcm4329/bcm4329.ko]
undefined!
ERROR: "wifi_set_power" [drivers/net/wireless/bcm4329/bcm4329.ko]
undefined!
ERROR: "wifi_get_mac_addr" [drivers/net/wireless/bcm4329/bcm4329.ko]
undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

I built the kernel as follows:

make hw_msm7x27_defconfig

export ARCH=arm

export PATH=$PATH:/home/vadim/Documents/Android_building/CyanogenMod_7/
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin

make -j16 ARCH=arm CROSS_COMPILE=arm-eabi-

Can anyone tell me whats going on?

parth shah

unread,
Sep 6, 2011, 10:43:15 PM9/6/11
to android...@googlegroups.com
Hi Vadim,

Did you change anything in driver source files?

Thanks,
Parth


Franky

unread,
Sep 7, 2011, 12:15:20 AM9/7/11
to Android Linux Kernel Development
Where did you get your wifi driver source code? And how did you
compile it?
Looks like there were some options missing when you compiled bcm4329.

Franky

Vadim

unread,
Sep 7, 2011, 1:27:23 AM9/7/11
to Android Linux Kernel Development
Thanks Parth,
for the interest, i have actually figured it out, the reason for the
errors was that the defconfig had the bcm4329 not set, what i did was
change it to be built as a module, and got that error, but just
figured out that you also need to set enable wifi control function
abstraction under device system type in the .config and it all built
fine ;)

blueskycoco

unread,
Sep 6, 2011, 9:35:16 PM9/6/11
to android...@googlegroups.com
You should find the code have "wifi_get_irq_number" "wifi_set_power"
function, and be sure this code had been compiled success.

-----邮件原件-----
发件人: android...@googlegroups.com [mailto:android-kernel@googlegroups.
com] 代表 Vadim
发送时间: 2011年9月7日 6:11
收件人: Android Linux Kernel Development
主题: [android-kernel] bcm4329 wifi module

make hw_msm7x27_defconfig

export ARCH=arm

export PATH=$PATH:/home/vadim/Documents/Android_building/CyanogenMod_7/
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin

make -j16 ARCH=arm CROSS_COMPILE=arm-eabi-

--

Vadim Sofiyskiy

unread,
Sep 6, 2011, 10:58:22 PM9/6/11
to android...@googlegroups.com

I Have not changed anything in the source. All I did after the defconfig was change the .config to build bcm4329 as a module

Hamilton Vera

unread,
Sep 8, 2011, 10:38:38 AM9/8/11
to android...@googlegroups.com
Hi Vadim, is it possible to get this source code ? Is it available for public?

[]'s

Hamilton Vera

--
Hamilton Vera
int Administrator (char Network[],char ComputationalSystems[])
http://hvera.wordpress.com

Yue Zeng

unread,
Sep 9, 2011, 10:59:21 PM9/9/11
to android...@googlegroups.com
Check Your .Config File Firstly.

Vadim

unread,
Sep 10, 2011, 8:50:34 PM9/10/11
to Android Linux Kernel Development
hi, this is the kernel source,
http://www.huaweidevice.com/worldwide/downloadCenter.do?method=toDownloadFile&flay=software&softid=NDAzNzg=
i have gotten it to compile now, but insmod is refuring to load the
driver

William W.-Y. Liang

unread,
Sep 10, 2011, 10:17:46 PM9/10/11
to android...@googlegroups.com

insmod doesn't work, probably because the MODULE_LOAD option is not enabled in the kernel.

William Liang

Vadim

unread,
Sep 11, 2011, 12:13:09 AM9/11/11
to Android Linux Kernel Development
I could not find the MODULE_LOAD option , but doing a dmesg after the
insmod, gives a dhd_modyle_init timeout and a do_exitcode=65280

On Sep 10, 7:17 pm, "William W.-Y. Liang" <wyli...@mail.ntut.edu.tw>
wrote:
> insmod doesn't work, probably because the MODULE_LOAD option is not enabled
> in the kernel.
>
> William Liang
>
> 2011 9 11 08:50 於 "Vadim" <vso...@gmail.com> 寫道:> hi, this is the kernel source,
>
> http://www.huaweidevice.com/worldwide/downloadCenter.do?method=toDown...

William W.-Y. Liang

unread,
Sep 11, 2011, 12:18:37 AM9/11/11
to android...@googlegroups.com
Sorry, I've typed a wrong option. It should be CONFIG_MODULES.
Please set it in <kernel>/.config with CONFIG_MODULES=y.

William Liang

2011/9/11 Vadim <vso...@gmail.com>

Vadim

unread,
Sep 11, 2011, 2:22:26 AM9/11/11
to Android Linux Kernel Development
The CONFIG_MODULES=y is already there after doing the defconfig, its
weird because the kernel and wifi module build fine, but the module
refuses to load, the original wifi module does work with the new
kernel that i built. the new bcm4329.ko is about 40k bytes bigger two

On Sep 10, 9:18 pm, "William W.-Y. Liang" <wyli...@mail.ntut.edu.tw>

William W.-Y. Liang

unread,
Sep 11, 2011, 2:32:05 AM9/11/11
to android...@googlegroups.com
Is there any log (from dmesg) related to the problem?
(For example, what has been logged while you were trying to insmod it.)

jagan

unread,
Sep 11, 2011, 9:23:23 AM9/11/11
to android...@googlegroups.com
I think your missing these func definitions.
Those def are likely to be defined in dhd_linux.c.

Check it the defn'...

Regards,
Jagan

Franky

unread,
Sep 11, 2011, 9:14:18 PM9/11/11
to Android Linux Kernel Development
If you are trying to load the module manually, make sure you have
rooted. Original "shell" user doesn't have enough privilege to run
insmod.

BRs
Franky

Vadim

unread,
Sep 14, 2011, 3:51:10 AM9/14/11
to Android Linux Kernel Development
i was doing it with root, and just turning on wifi from the ui gives
error

Vadim

unread,
Sep 15, 2011, 5:06:40 AM9/15/11
to Android Linux Kernel Development
im 99% sure that i cant load it because i am compiling it with wrong
dhcdflags in the makefile of the bcm4329 directory, anyone know how to
get them? i do have the original module

On Sep 6, 3:10 pm, Vadim <vso...@gmail.com> wrote:

Franky

unread,
Sep 16, 2011, 2:50:27 AM9/16/11
to Android Linux Kernel Development
You could try the one in android common kernel.
But kernel.org is down. I can send you want if you want.

BRs
Franky

zhoul...@aol.com

unread,
Sep 16, 2011, 9:19:23 AM9/16/11
to Android Linux Kernel Development, 4195...@qq.com
excuse me !
My words is none of business about this topic!
I just want to send a mail, with deeply apologize,
Thank you!!


Yan, honey
I am sorry to tell you that I think I should work overtime today,
Thanks for your waiting, I will back soon.
This mail is just to indicate that I miss you!
Thanks for your Reading! thank you!

yours Jacking Zhou
0916 22:18

Vadim Sofiyskiy

unread,
Sep 16, 2011, 6:37:48 PM9/16/11
to android...@googlegroups.com

I tried it from the cm kernel with same results

George

unread,
Sep 16, 2011, 7:42:49 PM9/16/11
to Android Linux Kernel Development
try
make showenv
Check your TARGET,

and CUSTOMER_HW2,CONFIG_WIFI_CONTROL_FUNC for C defines.


On 9月16日, 下午3时37分, Vadim Sofiyskiy <vso...@gmail.com> wrote:
> I tried it from the cm kernel with same results
> On Sep 15, 2011 11:50 PM, "Franky" <frankyla...@gmail.com> wrote:> You could try the one in android common kernel.

Vinicius Tinti

unread,
Apr 15, 2012, 4:25:07 PM4/15/12
to android...@googlegroups.com
Hi,

Also, be sure that after generating your target you have it in your '.config'. If it is not defined in your 'Kconfig' it will me removed by the command 'make $target'.
Reply all
Reply to author
Forward
0 new messages