I've just compiled the 2.6.22.1 kernel for slackware 12.0, which fixed the problem with my sound, but I needed to install madwifi again. I followed the guide on the wiki, and it creates the package in /tmp, but it is incomplete and the modules are not being created.
Here is what the logs say:
make-madwifi.log
Code:
for i in ./ath ./ath_hal ./ath_rate ./net80211; do \
make -C $i clean; \
done
make[1]: Entering directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath'
rm -f *~ *.o *.ko *.mod.c .*.cmd
rm -f .depend .version .*.o.flags .*.o.d
rm -rf .tmp_versions
make[1]: Leaving directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath'
make[1]: Entering directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath_hal'
rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
rm -f .depend .version .*.o.flags .*.o.d
rm -rf .tmp_versions
make[1]: Leaving directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath_hal'
make[1]: Entering directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath_rate'
for i in amrr/ onoe/ sample/; do \
make -C $i clean; \
done
make[2]: Entering directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath_rate/amrr'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[2]: Leaving directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath_rate/amrr'
make[2]: Entering directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath_rate/onoe'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[2]: Leaving directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath_rate/onoe'
make[2]: Entering directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath_rate/sample'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[2]: Leaving directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath_rate/sample'
make[1]: Leaving directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath_rate'
make[1]: Entering directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/net80211'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[1]: Leaving directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/net80211'
make -C ./tools clean
make[1]: Entering directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/tools'
rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug wlanconfig core a.out
make[1]: Leaving directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/tools'
rm -rf .tmp_versions
rm -f *.symvers svnversion.h
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.22.1-smp/build SUBDIRS=/tmp/build/tmp-madwifi/madwifi-0.9.3.1 modules
make[1]: Entering directory `/usr/src/linux-2.6.22.1'
CC [M] /tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath/if_ath.o
CC [M] /tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath/if_ath_pci.o
cc1: warnings being treated as errors
/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath/if_ath_pci.c: In function 'ath_pci_probe':
/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath/if_ath_pci.c:210: warning: 'deprecated_irq_flag' is deprecated (declared at include/linux/interrupt.h:66)
make[3]: *** [/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath/if_ath_pci.o] Error 1
make[2]: *** [/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath] Error 2
make[1]: *** [_module_/tmp/build/tmp-madwifi/madwifi-0.9.3.1] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.22.1'
make: *** [modules] Error 2
install-madwifi.log
Code:
sh scripts/find-madwifi-modules.sh 2.6.22.1-smp /tmp/build/package-madwifi
for i in ./ath ./ath_hal ./ath_rate ./net80211; do \
make -C $i install || exit 1; \
done
make[1]: Entering directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath'
test -d /tmp/build/package-madwifi//lib/modules/2.6.22.1-smp/net || mkdir -p /tmp/build/package-madwifi//lib/modules/2.6.22.1-smp/net
cp ath_pci.ko /tmp/build/package-madwifi//lib/modules/2.6.22.1-smp/net
cp: cannot stat `ath_pci.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/tmp/build/tmp-madwifi/madwifi-0.9.3.1/ath'
make: *** [install-modules] Error 1
makepkg-madwifi.log
Code:
Slackware package maker, version 2.1.
Searching for symbolic links:
No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.
This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!
Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n
Creating tar file madwifi-0.9.3.1_2.6.22.1_smp-i486-1.tar...
./
usr/
usr/bin/
usr/man/
usr/include/
usr/include/madwifi/
usr/include/madwifi/include/
usr/include/madwifi/include/sys/
usr/include/madwifi/include/sys/queue.h
usr/include/madwifi/include/compat.h
usr/include/madwifi/net80211/
usr/include/madwifi/net80211/ieee80211_ioctl.h
usr/include/madwifi/net80211/if_media.h
usr/include/madwifi/net80211/_ieee80211.h
usr/include/madwifi/net80211/ieee80211.h
usr/include/madwifi/net80211/ieee80211_crypto.h
usr/include/madwifi/net80211/ieee80211_scan.h
usr/include/madwifi/net80211/ieee80211_node.h
usr/include/madwifi/net80211/if_llc.h
usr/include/madwifi/net80211/ieee80211_rate.h
usr/include/madwifi/net80211/if_athproto.h
usr/include/madwifi/net80211/if_ethersubr.h
usr/include/madwifi/net80211/ieee80211_monitor.h
usr/include/madwifi/net80211/ieee80211_var.h
usr/include/madwifi/net80211/ieee80211_power.h
usr/include/madwifi/net80211/ieee80211_linux.h
usr/include/madwifi/net80211/version.h
usr/include/madwifi/net80211/ieee80211_radiotap.h
usr/include/madwifi/net80211/ieee80211_proto.h
usr/doc/
usr/doc/madwifi-0.9.3.1/
usr/doc/madwifi-0.9.3.1/COPYRIGHT
usr/doc/madwifi-0.9.3.1/INSTALL
usr/doc/madwifi-0.9.3.1/README
usr/doc/madwifi-0.9.3.1/THANKS
usr/doc/madwifi-0.9.3.1/COPYRIGHT.hal
usr/doc/madwifi-0.9.3.1/README.hal
usr/doc/madwifi-0.9.3.1/README.patches
usr/doc/madwifi-0.9.3.1/WEP-HOWTO.txt
usr/doc/madwifi-0.9.3.1/users-guide.pdf
usr/doc/madwifi-0.9.3.1/scripts/
usr/doc/madwifi-0.9.3.1/scripts/get_arch.mk
usr/doc/madwifi-0.9.3.1/scripts/find-madwifi-modules.sh
usr/doc/madwifi-0.9.3.1/scripts/make-release.bash
usr/doc/madwifi-0.9.3.1/scripts/madwifi-unload.bash
lib/
lib/modules/
lib/modules/2.6.22.1-smp/
lib/modules/2.6.22.1-smp/net/
install/
install/slack-desc
install/doinst.sh
tar-1.13: madwifi-0.9.3.1_2.6.22.1_smp-i486-1.tar is the archive; not dumped
Gzipping madwifi-0.9.3.1_2.6.22.1_smp-i486-1.tar...
Renaming madwifi-0.9.3.1_2.6.22.1_smp-i486-1.tar.gz to madwifi-0.9.3.1_2.6.22.1_smp-i486-1.tgz...
Moving madwifi-0.9.3.1_2.6.22.1_smp-i486-1.tgz to /tmp...
Package creation complete.
I have no idea what the problem is. So, now I have a kernel where sound doesn't work and wireless does and another kernel where sound works but wireless doesn't.