[PlanetCCRMA] fc6/7: new kernels

Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU
Mon Sep 3 13:57:00 2007


On Mon, 2007-09-03 at 14:58 +0200, andersvi@extern.uio.no wrote:
> Great.
> 
> The latest kernel-rt (2.6.22.6-1) seems to work fine on a T61P laptop.
> Alsa/sound works with the kmod-alsa-rt package.

(I'm using it myself in a t61)

> Im trying to build the module for this machines Intel 4965AGN
> wireless-card, using files and guides lying fex. at
> http://intellinuxwireless.org/
> 
> I can load the mac80211 module and see its there with lsmod.
> 
> Theres alread a package called iwlwifi-firmware, which i tried to load
> in without much help.
> 
> Trying to compile (using 'make') in the driver-directory tells me
> there are missing files in the kernel-source-tree.  Heres the output:
> (You can probably guess what "Ingen slik fil eller filkatalog..."
> means?  In case not its the "No such file or directory" error)
> 
> I had hopes to not mess up further by installing the whole
> kernel-source-tree, but if this is whats needed of course ill do it.
> 
> Any hopes?
> 
> 
> [root@josefk kernel-greier]# cd iwlwifi-1.0.0
> [root@josefk iwlwifi-1.0.0]# make
> Checking kernel compatibility in:
>         /lib/modules/2.6.22.6-1.rt9.1.fc7.ccrmart/source
>  * Kernel supports required features for 'tip' version.
> Building compatibility version in 'compatible/' directory:
> Copying compatible/ from origin/...done
> make -C /lib/modules/2.6.22.6-1.rt9.1.fc7.ccrmart/source O=/lib/modules/2.6.22.6-1.rt9.1.fc7.ccrmart/build M=/root/kernel-greier/iwlwifi-1.0.0/compatible/ modules
> make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1.rt9.1.fc7.ccrma-rt-i686'
>   CC [M]  /root/kernel-greier/iwlwifi-1.0.0/compatible/base-3945.o
>   CC [M]  /root/kernel-greier/iwlwifi-1.0.0/compatible/iwl-3945.o
>   CC [M]  /root/kernel-greier/iwlwifi-1.0.0/compatible/iwl-3945-rs.o
> /root/kernel-greier/iwlwifi-1.0.0/compatible/iwl-3945-rs.c:43:44: error: ../net/mac80211/ieee80211_rate.h: Ingen slik fil eller filkatalog...

Hmm, yes, that file is not there. Maybe the kernel is too new or too old
for that driver? Or maybe it needs a custom version of mac80211?

... later ...

I started a kernel build to test, and yes, the kernel source includes
that file but most probably it is an "internal" header file that is not
normally needed to build external modules (but is needed in your
particular case):

# find . -name ieee80211\*.h
./include/config/ieee80211.h
./include/linux/ieee80211.h
./include/net/ieee80211.h
./include/net/ieee80211_crypt.h
./include/net/ieee80211_radiotap.h
./include/net/ieee80211softmac.h
./include/net/ieee80211softmac_wx.h
./net/ieee80211/softmac/ieee80211softmac_priv.h
./net/mac80211/ieee80211_cfg.h
./net/mac80211/ieee80211_common.h
./net/mac80211/ieee80211_i.h
./net/mac80211/ieee80211_key.h
./net/mac80211/ieee80211_led.h
./net/mac80211/ieee80211_rate.h

-- Fernando