From: Larry Finger <Larry.Finger@lwfinger.net>
To: Fred Plissonneau <cohomewp4@gmail.com>
Cc: ali@internetdog.org, linux-wireless@vger.kernel.org
Subject: Re: Makefile deletes previous driver install when two WiFi interfaces are from the same chip vendor
Date: Tue, 21 Jun 2011 11:21:35 -0500 [thread overview]
Message-ID: <4E00C50F.6030708@lwfinger.net> (raw)
In-Reply-To: <BANLkTi=EygUbm5VB+H-mm+ofpbuaK8xafA@mail.gmail.com>
On 06/21/2011 10:02 AM, Fred Plissonneau wrote:
>
> No, no it is not after the power-cycle. I just mention here that after
> power-on, my first installed
> driver as disappeared and I suspect the Makefile to contain "rm"
> command which does too much cleaning
> in my particular case.
>
> I am following the README information here (or may I've made a
> mistake, let me know).
> ./scripts/driver-select ath9k
> make
> sudo make install (I'm running UBUNTU)
> sudo modprode ath9k
>
> ./scripts/driver-select carl9170
> make
> sudo make install
> sudo modprode carl9170
>
> If I don't switch off, everything works fine (just because both
> modules are loaded into the memory).
>
>
> -->> Last minute (4:30PM today !-) :
> I've found the lines causing the problem. There located just after the
> "uninstall:" tag which is also built during "make install".
> If I delete lines #318 to #326 in the Makefile (right after the "make"
> command and before "make install") it works fine now.
> That is to say, the ath9k.ko file is not deleted anymore during the
> installation of the second driver.
> This workaround is working fine. I am not sure my specific problem is
> relevant in the normal use case .
Your problem is that you are using the driver-select script wrong. It has
nothing to do with your interfaces having the same chip vendor. In addition,
your "workaround" is likely to cause many problems with dead modules not being
removed.
You need to select ALL the modules you will ever need before you do the make
step. By deleting ath9k from the configuration when you select carl9170 and
vice-versa, you tell the system that you no longer want the other one. Strangely
enough, but that is exactly what it does.
You need to use
./scripts/driver-select ath
That will build ath5k, which you do not need; however, the other two will be
available. In you want, you could always edit config.mk and remove the line with
"CONFIG_ATH5K=m".
Larry
next prev parent reply other threads:[~2011-06-21 16:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-21 9:59 Makefile deletes previous driver install when two WiFi interfaces are from the same chip vendor Fred Plissonneau
2011-06-21 13:07 ` Ali Bahar
2011-06-21 15:02 ` Fred Plissonneau
2011-06-21 16:21 ` Larry Finger [this message]
2011-06-21 16:23 ` Ali Bahar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E00C50F.6030708@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=ali@internetdog.org \
--cc=cohomewp4@gmail.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).