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

Re: Build the bcm43xx with own kernel



Joerg Sommer wrote:

Hi,

I tried to build the bcm43xx driver from the debian package with a
self-made kernel, but I failed.

Firstly I needed the header files for ieee80211softmac. After building
and installing the package I found the include files in
/usr/src/linux-headers-2.6.15.1. The bcm43xx make file searches for them
in my kernel tree /usr/src/linux-2.6.15.1/. How can I "merge" them except
copy the header files into the kernel directory?

But I did it (copy the header files into the kernel directory) and then
got this message:
#v+
 CC [M]  /usr/src/modules/bcm43xx/bcm43xx_main.o
/usr/src/modules/bcm43xx/bcm43xx_main.c:667: warning: 'bcm43xx_disassociate' defined but not used
/usr/src/modules/bcm43xx/bcm43xx_main.c:696: warning: 'bcm43xx_associate' defined but not used
 CC [M]  /usr/src/modules/bcm43xx/bcm43xx_dma.o
 CC [M]  /usr/src/modules/bcm43xx/bcm43xx_debugfs.o
 CC [M]  /usr/src/modules/bcm43xx/bcm43xx_radio.o
 CC [M]  /usr/src/modules/bcm43xx/bcm43xx_phy.o
 CC [M]  /usr/src/modules/bcm43xx/bcm43xx_power.o
 CC [M]  /usr/src/modules/bcm43xx/bcm43xx_wx.o
/usr/src/modules/bcm43xx/bcm43xx_wx.c: In function 'bcm43xx_wx_set_channelfreq':
/usr/src/modules/bcm43xx/bcm43xx_wx.c:118: warning: unused variable 'softmac'
/usr/src/modules/bcm43xx/bcm43xx_wx.c: At top level:
/usr/src/modules/bcm43xx/bcm43xx_wx.c:227: warning: 'bcm43xx_wx_set_sensitivity' defined but not used
/usr/src/modules/bcm43xx/bcm43xx_wx.c:237: warning: 'bcm43xx_wx_get_sensitivity' defined but not used
/usr/src/modules/bcm43xx/bcm43xx_wx.c:525: warning: 'bcm43xx_wx_set_retry' defined but not used
/usr/src/modules/bcm43xx/bcm43xx_wx.c:535: warning: 'bcm43xx_wx_get_retry' defined but not used
/usr/src/modules/bcm43xx/bcm43xx_wx.c:575: warning: 'bcm43xx_wx_set_power' defined but not used
/usr/src/modules/bcm43xx/bcm43xx_wx.c:585: warning: 'bcm43xx_wx_get_power' defined but not used
 CC [M]  /usr/src/modules/bcm43xx/bcm43xx_pio.o
 CC [M]  /usr/src/modules/bcm43xx/bcm43xx_ilt.o
 LD [M]  /usr/src/modules/bcm43xx/bcm43xx.o
 Building modules, stage 2.
 MODPOST
*** Warning: "free_ieee80211softmac" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_stop" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_set_genie" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_set_wap" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_get_essid" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_get_rate" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_get_wap" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_set_essid" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_start" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_get_genie" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_get_scan_results" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_trigger_scan" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
*** Warning: "alloc_ieee80211softmac" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
*** Warning: "ieee80211softmac_wx_set_rate" [/usr/src/modules/bcm43xx/bcm43xx.ko] undefined!
 CC      /usr/src/modules/bcm43xx/bcm43xx.mod.o
 LD [M]  /usr/src/modules/bcm43xx/bcm43xx.ko
#v-

The package build fine, but when I try to load the driver I get many
error messages from the kernel

ieee80211_crypt: unregistered algorithm 'NULL'
ieee80211_crypt: registered algorithm 'NULL'
ieee80211: 802.11 data/management/control stack, git-1.1.7
ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
ieee80211softmac: Unknown symbol wireless_send_event
bcm43xx: Unknown symbol ieee80211softmac_wx_set_rate
bcm43xx: Unknown symbol alloc_ieee80211softmac
bcm43xx: Unknown symbol ieee80211softmac_wx_trigger_scan
bcm43xx: Unknown symbol ieee80211softmac_wx_get_scan_results
bcm43xx: Unknown symbol ieee80211softmac_wx_get_genie
bcm43xx: Unknown symbol ieee80211softmac_start
bcm43xx: Unknown symbol ieee80211softmac_wx__essid
bcm43xx: Unknown symbol ieee80211softmac_wx_get_wap
bcm43xx: Unknown symbol ieee80211softmac_wx_get_rate
bcm43xx: Unknown symbol ieee80211softmac_wx_get_essid
bcm43xx: Unknown symbol ieee80211softmac_wx_set_wap
bcm43xx: Unknown symbol ieee80211softmac_wx_set_genie
bcm43xx: Unknown symbol ieee80211softmac_stop
bcm43xx: Unknown symbol free_ieee80211softmac

Can someone give me a hint, what went wrong?

Have a nice weekend, Jörg.

Well this reminds me of the kind of experiments I did myself
trying to build the module "on top" of the kernel's own source!
So if I recall correctly (there is a more extensive report in a previous
post in the list) the errors you get are due to differences between the
header files from the softmac own source and the respective files in the
kernel source. Besides there are specific files (those related to the wx_* errors!)
which are completely missing from the kernel source and in my opinion make
the compilation of bcm43xx with the softmac source inevitable at the moment!

best regards

emmanuel



Reply to: