a couple of small bugs in compat-wireless
"make unload" doesn't unload iwlagn, and iwlagn keeps mac80211 in the kernel, which results in make unload failing. Needs to include iwlagn in the unload list in script/unload.sh. Should be trivial to fix, and
probably quicker "just do it" then having a patch from me :-).
There is another annoyance - probably not strictly speaking a bug, but nonetheless, for some unexplainable reasons, I expect "make clean" to do the usual thing, and it doesn't - this is probably easy to fix by having an almost empty libertas_tf/Makefile ? (this shows an older compat-wireless , but current compat-wireless also seem to have this problem if I remember correctly):
---------------scripts/Makefile.clean:17: /tmp/compat-wireless-2008-10-23/drivers/net/wireless/libertas_tf/Makefile: No such file or directory
make[4]: *** No rule to make target `/tmp/compat-wireless-2008-10-23/drivers/net/wireless/libertas_tf/Makefile'. Stop.
make[3]: *** [/tmp/compat-wireless-2008-10-23/drivers/net/wireless/libertas_tf] Error 2
make[2]: *** [/tmp/compat-wireless-2008-10-23/drivers/net/wireless] Error 2
make[1]: *** [_clean_/tmp/compat-wireless-2008-10-23] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.5-92.fc10.x86_64'
make: *** [clean] Error 2
---------------
Quoted 4 lines · Hin-Tak Leung
"make unload" doesn't unload iwlagn, and iwlagn keeps mac80211 in the kernel, which results in make unload failing. Needs to include iwlagn in the unload list in
script/unload.sh. Should be trivial to fix, and
probably quicker "just do it" then having a patch from me :-).
Quoted 11 lines
There is another annoyance - probably not strictly speaking a bug, but nonetheless, for some unexplainable reasons, I expect "make clean" to do the usual thing, and it doesn't - this is probably easy to fix by having an almost empty libertas_tf/Makefile ? (this shows an older compat-wireless , but current compat-wireless also seem to have this problem if I remember correctly):
---------------scripts/Makefile.clean:17:/tmp/compat-wireless-2008-10-23/drivers/net/wireless/libertas_tf/Makefile: No such file or directory
make[4]: *** No rule to make target `/tmp/compat-wireless-2008-10-23/drivers/net/wireless/libertas_tf/Makefile'. Stop.
make[3]: *** [/tmp/compat-wireless-2008-10-23/drivers/net/wireless/libertas_tf] Error 2
make[2]: *** [/tmp/compat-wireless-2008-10-23/drivers/net/wireless] Error 2
make[1]: *** [_clean_/tmp/compat-wireless-2008-10-23] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.5-92.fc10.x86_64'
make: *** [clean] Error 2
---------------
Try this patch, but the issue you see is related to libertas... anyway, I've added this patch I'll try to see what's wrong with libertas.
Luis
From: Luis R. Rodriguez <[email protected]>
[PATCH] Add iwl-load, and make sure we disable iwl4965 upon install
We now has two drivers for different kernel releases for the Intel 4965 device. To account for this we add a script to allow us to disable and enable one or each other. By default we disable iwl4965 as we are replacing it with iwlagn.
If you want to enable iwl4965:
iwl-load iwl4965
If you want to enable iwlagn:
iwl-load iwlagn
By default we'll use iwlagn.
--- Makefile | 14 ++++++++++++ scripts/iwl-enable | 47 ++++++++++++++++++++++++++++++++++++++++++ scripts/iwl-load | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+), 0 deletions(-) create mode 100755 scripts/iwl-enable create mode 100755 scripts/iwl-load
Makefile +14 -0
@@ -9,6 +9,7 @@ export KLIB_BUILD ?= $(KLIB)/build # Sometimes not available in the path MODPROBE := /sbin/modprobe MADWIFI=$(shell $(MODPROBE) -l ath_pci) +OLD_IWL=$(shell $(MODPROBE) -l iwl4965) ifneq ($(KERNELRELEASE),)
@@ -67,8 +68,10 @@ install: uninstall modules @# This is to allow switching between drivers without blacklisting @install scripts/athenable /usr/sbin/ @install scripts/b43enable /usr/sbin/ + @install scripts/iwl-enable /usr/sbin/ @install scripts/athload /usr/sbin/ @install scripts/b43load /usr/sbin/ + @install scripts/iwl-load /usr/sbin/ @if [ ! -z $(MADWIFI) ]; then \ echo ;\ echo -n "Note: madwifi detected, we're going to disable it. " ;\
@@ -79,6 +82,15 @@ install: uninstall modules /usr/sbin/athenable ath5k ;\ fi @/sbin/depmod -ae + @if [ ! -z $(OLD_IWL) ]; then \ + echo ;\ + echo -n "Note: iwl4965 detected, we're going to disable it. " ;\ + echo "If you would like to enable it later you can run:" ;\ + echo " sudo iwl-load iwl4965" ;\ + echo ;\ + echo Running iwl-enable iwlagn...;\ + /usr/sbin/iwl-enable iwlagn ;\ + fi @echo @echo "Currently detected wireless subsystem modules:" @echo
@@ -95,6 +107,7 @@ install: uninstall modules @$(MODPROBE) -l ssb @$(MODPROBE) -l iwl3945 @$(MODPROBE) -l iwl4965 + @$(MODPROBE) -l iwlagn @$(MODPROBE) -l ipw2100 @$(MODPROBE) -l ipw2200 @$(MODPROBE) -l ieee80211
@@ -153,6 +166,7 @@ uninstall: @$(MODPROBE) -l rc80211_simple @$(MODPROBE) -l iwl3945 @$(MODPROBE) -l iwl4965 + @$(MODPROBE) -l iwlagn @$(MODPROBE) -l ipw2100 @$(MODPROBE) -l ipw2200 @$(MODPROBE) -l ieee80211
scripts/iwl-enable new file +47 -0
47 lines not on this page · raw message
scripts/iwl-load new file +58 -0
58 lines not on this page · raw message
Signature · 1 line
1.5.6.rc2.15.g457bb.dirty
Re: a couple of small bugs in compat-wireless -- libertas
Quoted 17 lines · Luis Rodriguez
Quoted 4 lines · Hin-Tak Leung
"make unload" doesn't unload iwlagn, and iwlagn keeps mac80211 in the kernel, which results in make unload failing. Needs to include iwlagn in the unload list in
script/unload.sh. Should be trivial to fix, and
probably quicker "just do it" then having a patch from me :-).Quoted 11 lines
There is another annoyance - probably not strictly speaking a bug, but nonetheless, for some unexplainable reasons, I expect "make clean" to do the usual thing, and it doesn't - this is probably easy to fix by having an almost empty libertas_tf/Makefile ? (this shows an older compat-wireless , but current compat-wireless also seem to have this problem if I remember correctly):
---------------scripts/Makefile.clean:17:/tmp/compat-wireless-2008-10-23/drivers/net/wireless/libertas_tf/Makefile: No such file or directory
make[4]: *** No rule to make target `/tmp/compat-wireless-2008-10-23/drivers/net/wireless/libertas_tf/Makefile'. Stop.
make[3]: *** [/tmp/compat-wireless-2008-10-23/drivers/net/wireless/libertas_tf] Error 2
make[2]: *** [/tmp/compat-wireless-2008-10-23/drivers/net/wireless] Error 2
make[1]: *** [_clean_/tmp/compat-wireless-2008-10-23] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.5-92.fc10.x86_64'
make: *** [clean] Error 2
---------------
Quoted 2 lines
Try this patch, but the issue you see is related to libertas... anyway, I've added this patch I'll try to see what's wrong with libertas.
OK for your issue you can try this patch. Essentially it adds libertas_tf to compat-wireless but it will only compile if you had it enabled in your kernel (which hopefully means you didn't enable the old driver (CONFIG_LIBERTAS_USB).
Right now I don't see libertas_tf_usb driver being shipped or enabled on FC10 or Ubuntu 8.10 so this follows the assumption that they did the right thing, which I think they did as the thin firmware driver is rather new.
Makefile +2 -0
@@ -113,6 +113,7 @@ install: uninstall modules @$(MODPROBE) -l ieee80211 @$(MODPROBE) -l ieee80211_crypt @$(MODPROBE) -l libertas_cs + @$(MODPROBE) -l libertas_tf @$(MODPROBE) -l ub8xxx @$(MODPROBE) -l p54_pci @$(MODPROBE) -l p54_usb
@@ -172,6 +173,7 @@ uninstall: @$(MODPROBE) -l ieee80211 @$(MODPROBE) -l ieee80211_crypt @$(MODPROBE) -l libertas_cs + @$(MODPROBE) -l libertas_tf @$(MODPROBE) -l mac80211 @$(MODPROBE) -l ub8xxx @$(MODPROBE) -l p54pci
config.mk +2 -0
@@ -230,9 +230,11 @@ CONFIG_SSB_PCICORE_HOSTMODE=n # CONFIG_SSB_DRIVER_EXTIF=y ifneq ($(CONFIG_USB),) +ifneq ($(LIBERTAS_THINFIRM_USB),m) CONFIG_LIBERTAS_USB=m NEED_LIBERTAS=y endif +endif ifneq ($(CONFIG_PCMCIA),) CONFIG_LIBERTAS_CS=m NEED_LIBERTAS=y
scripts/admin-update.sh +1 -0
@@ -58,6 +58,7 @@ DRIVERS="$DRIVERS drivers/net/wireless/zd1211rw" DRIVERS="$DRIVERS drivers/net/wireless/libertas" DRIVERS="$DRIVERS drivers/net/wireless/p54" DRIVERS="$DRIVERS drivers/net/wireless/rtl818x" +DRIVERS="$DRIVERS drivers/net/wireless/libertas_tf" # Drivers that belong the the wireless directory DRIVER_FILES="adm8211.c adm8211.h"
Re: a couple of small bugs in compat-wireless -- libertas
Quoted 18 lines · Luis R. Rodriguez
Quoted 17 lines · Luis Rodriguez
Quoted 15 lines · Hin-Tak Leung
"make unload" doesn't unload iwlagn, and iwlagn keeps mac80211 in the kernel, which results in make unload failing. Needs to include iwlagn in the unload list in
script/unload.sh. Should be trivial to fix, and
probably quicker "just do it" then having a patch from me :-).There is another annoyance - probably not strictly speaking a bug, but nonetheless, for some unexplainable reasons, I expect "make clean" to do the usual thing, and it doesn't - this is probably easy to fix by having an almost empty libertas_tf/Makefile ? (this shows an older compat-wireless , but current compat-wireless also seem to have this problem if I remember correctly):
---------------scripts/Makefile.clean:17:/tmp/compat-wireless-2008-10-23/drivers/net/wireless/libertas_tf/Makefile: No such file or directory
make[4]: *** No rule to make target `/tmp/compat-wireless-2008-10-23/drivers/net/wireless/libertas_tf/Makefile'. Stop.
make[3]: *** [/tmp/compat-wireless-2008-10-23/drivers/net/wireless/libertas_tf] Error 2
make[2]: *** [/tmp/compat-wireless-2008-10-23/drivers/net/wireless] Error 2
make[1]: *** [_clean_/tmp/compat-wireless-2008-10-23] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.5-92.fc10.x86_64'
make: *** [clean] Error 2
---------------
Quoted 4 lines
Quoted 2 lines
Try this patch, but the issue you see is related to libertas... anyway, I've added this patch I'll try to see what's wrong with libertas.
OK for your issue you can try this patch.
This patch should actually be useless to you as you probably are just downloading the tarball.. so just download the latest tarball, I just regenerated it with the patches applied.
Luis
Re: a couple of small bugs in compat-wireless -- libertas
Quoted 1 line · Luis R. Rodriguez
From: Luis R. Rodriguez <[email protected]>
<snipped>
Quoted 7 lines
Quoted 1 line
OK for your issue you can try this patch.
This patch should actually be useless to you as you probably are just
downloading the tarball.. so just download the latest tarball, I just
regenerated it with the patches applied.
Thanks for doing this - I actually do both: I have local git-clones of compat-wireless and and wireless-testing, which I use for checking out the "latest and greatest". However, to hunt down a regression which turned out to happen about 20 days ago, I had to roll back both of them and it was getting a bit painful to roll them back in sync, so I downloaded two whole months' worth of daily tarballs and bisected the "old fashion way" until I got within a day, then I read the tags off two daily snapshots and use the git-clone to spit out the 48 commits within that day. Some of the 48 are obviously irrelevant so it narrows it down to under 20 probables, and just a few obvious candidates. Then back to one of the snapshots and try out the obvious candidates; found the commit which breaks and verify that it breaks git-clone HEAD, etc. So it was going back and forth between the daily tarballs and the git-clones.
Thanks for compat-wireless - it takes about 1/2 hour to build a snapshot (I just worked out how to edit the Makefile to skip some bits I
don't need, so it has gone quicker), but it is better than building a whole new kernel... and the best thing about it is that I don't have to reboot, just losing connectivity briefly (hopefully) to swap and try new snapshots.
Hin-Tak