All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* udev for two wireless lan devices
@ 2015-07-15  0:52 Allan Matthew
  2015-07-16 13:33 ` Otavio Salvador
  0 siblings, 1 reply; 2+ messages in thread
From: Allan Matthew @ 2015-07-15  0:52 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 476 bytes --]

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?

[-- Attachment #2: Type: text/html, Size: 626 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: udev for two wireless lan devices
  2015-07-15  0:52 udev for two wireless lan devices Allan Matthew
@ 2015-07-16 13:33 ` Otavio Salvador
  0 siblings, 0 replies; 2+ messages in thread
From: Otavio Salvador @ 2015-07-16 13:33 UTC (permalink / raw)
  To: Allan Matthew; +Cc: meta-freescale@yoctoproject.org

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-16 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-15  0:52 udev for two wireless lan devices Allan Matthew
2015-07-16 13:33 ` Otavio Salvador

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.