All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Otavio Salvador <otavio.salvador@ossystems.com.br>
To: Allan Matthew <amatthew@3drobotics.com>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: udev for two wireless lan devices
Date: Thu, 16 Jul 2015 10:33:39 -0300	[thread overview]
Message-ID: <CAP9ODKqUFmDJSkD==iTY1ySuSfSDaUu4iUe8C95M732huaRaCw@mail.gmail.com> (raw)
In-Reply-To: <CAPHXWesopEfzygbC8-Wn6qRisSUe=WkhKZaT3+wM1FvnHXFNSw@mail.gmail.com>

Hello Allan,

On Tue, Jul 14, 2015 at 9:52 PM, Allan Matthew <amatthew@3drobotics.com> wrote:
> I have two wireless cards connected to my i.MX6.  One via USB and one via
> PCIe.  Both work just fine, but the way they are enumerated at bootup seems
> completely random.  They always get wlan0 or wlan1, but its never consistent
> which one gets which.
>
> I've tried adding some udev rules that specify the name based on the MAC
> address, but they didn't seem to work.
>
> How do I go about ensuring that the PCI device always gets wlan0 and the USB
> device always gets wlan1?

You should look at the persistent rules which Debian and other generic
distributions use. Basically those rules rename the device after those
are discovered by the kernel and udev receives the event.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


      reply	other threads:[~2015-07-16 13:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-15  0:52 udev for two wireless lan devices Allan Matthew
2015-07-16 13:33 ` Otavio Salvador [this message]

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='CAP9ODKqUFmDJSkD==iTY1ySuSfSDaUu4iUe8C95M732huaRaCw@mail.gmail.com' \
    --to=otavio.salvador@ossystems.com.br \
    --cc=amatthew@3drobotics.com \
    --cc=meta-freescale@yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.