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

Re: Build the bcm43xx with own kernel



Hello Rene,

Rene Engelhard <rene@debian.org> wrote:
> Hi,
>
> Joerg Sommer wrote:
>> Rene Engelhard <rene@debian.org> wrote:
>> > Rene Engelhard wrote:
>> >> > 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
>> >> [...]
>> >> 
>> >> No idea yet. Just works here. Although I use 2.6.15-1-powerpc..
>> >
>> > Additional question: Everything built fine?
>> 
>> Yes.
>
> OK.
>
>> 
>> > And installed fine?
>> 
>> Yes
>
> Did you install the ieee80211softmac-headers-2.6.15.1 package before
> building bcm43xx? As we see from the other part of the thread you
> apparently built against the wrong headers.

You should add these lines to debian/rules for the build process

#v+
ifeq "$(wildcard $(KSRC)/include/net/ieee80211softmac.h)" ""
	$(MAKE) SOFTMAC_DIR=/usr/src/linux-headers-$(KVERS)/include KDIR=$(KSRC) KVER=$(KVERS)
else
	$(MAKE) SOFTMAC_DIR=$(KSRC)/include KDIR=$(KSRC) KVER=$(KVERS)
endif	
#v-

BTW: Why did you write the variable _before_ the make command?

But the build raises this messages again:

#v+
/usr/bin/make SOFTMAC_DIR=/usr/src/linux-headers-2.6.15.1/include KDIR=/usr/src/linux-2.6.15.1 KVER=2.6.15.1
make[3]: Entering directory `/usr/src/modules/bcm43xx'
/usr/bin/make -C /usr/src/linux-2.6.15.1 M=/usr/src/modules/bcm43xx modules
make[4]: Entering directory `/usr/src/linux-2.6.15.1'
  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
make[4]: Leaving directory `/usr/src/linux-2.6.15.1'
#v-

The package builds fine and I can install it. But I can not load the
modules bcm43xx and the ieee80211softmac module.

#v+
# modprobe ieee80211softmac; modprobe bcm43xx ; dmesg | tail -n20
FATAL: Error inserting ieee80211softmac (/lib/modules/2.6.15.1/kernel/net/ieee80211softmac/ieee80211softmac.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting ieee80211softmac (/lib/modules/2.6.15.1/kernel/net/ieee80211softmac/ieee80211softmac.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting bcm43xx (/lib/modules/2.6.15.1/kernel/drivers/net/bcm43xx/bcm43xx.ko): Unknown symbol in module, or unknown parameter (see dmesg)
bcm43xx: Unknown symbol ieee80211softmac_wx_set_wap
bcm43xx: Unknown symbol ieee80211softmac_wx_set_genie
bcm43xx: Unknown symbol ieee80211softmac_stop
bcm43xx: Unknown symbol free_ieee80211softmac
ieee80211softmac: Unknown symbol wireless_send_event
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_set_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
#v-

Regards, Jörg.
-- 
Objektivität ist die Wahnvorstellung, Beobachtungen könnten ohne
Beobachter gemacht werden - Heinz v. Foerster



Reply to: