* howto keep fixed name for the usbnet interface?
@ 2006-07-20 19:12 lamikr
2006-07-21 2:35 ` Andrey Borzenkov
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: lamikr @ 2006-07-20 19:12 UTC (permalink / raw)
To: linux-hotplug
I am using Mandriva's development version (cooker) and I am used to
connect my ipaq to desktop computer by using usb-cable and then
boot the iPAQ to Linux in a way that usbnet connection is created.
With the udev 0.94 Mandriva is using, the usb interface name does not
stay anymore as a usb0, instead it is changing everytime I boot the iPAQ
to Linux.
(usb1 in second boot, usb2 in third boot). This probably happens because
in the kernel's usbnet.c, the MAC address for usbnet is randomly generated
by not initializing an array. In mandriva, there is following bug entry
describing the details.
http://qa.mandriva.com/show_bug.cgi?id!717
Is this something that could be fixed to upstream udev rules and could
already know howto handle this there?
Mika
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: howto keep fixed name for the usbnet interface?
2006-07-20 19:12 howto keep fixed name for the usbnet interface? lamikr
@ 2006-07-21 2:35 ` Andrey Borzenkov
2006-07-21 7:26 ` Marco d'Itri
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Andrey Borzenkov @ 2006-07-21 2:35 UTC (permalink / raw)
To: linux-hotplug
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 20 July 2006 23:12, lamikr wrote:
> I am using Mandriva's development version (cooker) and I am used to
> connect my ipaq to desktop computer by using usb-cable and then
> boot the iPAQ to Linux in a way that usbnet connection is created.
>
> With the udev 0.94 Mandriva is using, the usb interface name does not
> stay anymore as a usb0, instead it is changing everytime I boot the iPAQ
> to Linux.
> (usb1 in second boot, usb2 in third boot). This probably happens because
> in the kernel's usbnet.c, the MAC address for usbnet is randomly generated
> by not initializing an array. In mandriva, there is following bug entry
> describing the details.
> http://qa.mandriva.com/show_bug.cgi?id!717
>
> Is this something that could be fixed to upstream udev rules and could
> already know howto handle this there?
>
The same problem exists for irda
(http://qa.mandriva.com/show_bug.cgi?id#663) and we also have report about
Atheros driver creating two interfaces (ath0 and wifi0) with identical MACs;
the effect in current udev is, one interface is left as ath0_renamed while in
previous versions it simply failed to rename but was left usable :)
It looks like MAC alone is not sufficient to uniquely identify and name
interface.
- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEwD1cR6LMutpd94wRAkIqAJ4ks/efk6O2tOoPbK0RjgpCPA/0kACfShv3
LW250IU/kOM7HBvCpa9MbZ8ÎxE
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: howto keep fixed name for the usbnet interface?
2006-07-20 19:12 howto keep fixed name for the usbnet interface? lamikr
2006-07-21 2:35 ` Andrey Borzenkov
@ 2006-07-21 7:26 ` Marco d'Itri
2006-07-21 11:57 ` Olivier Blin
2006-07-24 11:36 ` lamikr
3 siblings, 0 replies; 5+ messages in thread
From: Marco d'Itri @ 2006-07-21 7:26 UTC (permalink / raw)
To: linux-hotplug
On Jul 21, Andrey Borzenkov <arvidjaar@mail.ru> wrote:
> It looks like MAC alone is not sufficient to uniquely identify and name
> interface.
You need to ignore some devices. Look at the Debian package for details.
After my latest changes no more issues have been reported.
--
ciao,
Marco
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: howto keep fixed name for the usbnet interface?
2006-07-20 19:12 howto keep fixed name for the usbnet interface? lamikr
2006-07-21 2:35 ` Andrey Borzenkov
2006-07-21 7:26 ` Marco d'Itri
@ 2006-07-21 11:57 ` Olivier Blin
2006-07-24 11:36 ` lamikr
3 siblings, 0 replies; 5+ messages in thread
From: Olivier Blin @ 2006-07-21 11:57 UTC (permalink / raw)
To: linux-hotplug
md@Linux.IT (Marco d'Itri) writes:
> On Jul 21, Andrey Borzenkov <arvidjaar@mail.ru> wrote:
>
>> It looks like MAC alone is not sufficient to uniquely identify and name
>> interface.
> You need to ignore some devices. Look at the Debian package for details.
> After my latest changes no more issues have been reported.
It looks nice, it's very similar to the script we wrote in Mandriva,
excepted it uses an interface pattern whitelist.
The SYSFS{type}="1" trick is quite interesting.
Too bad the "all_interfaces" option obliges to duplicate the interface
pattern (eth*|ath*|wlan*|ra*|sta*)
BTW, shouldn't tr* interfaces be handled by this script as well?
--
Olivier Blin - Mandriva
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: howto keep fixed name for the usbnet interface?
2006-07-20 19:12 howto keep fixed name for the usbnet interface? lamikr
` (2 preceding siblings ...)
2006-07-21 11:57 ` Olivier Blin
@ 2006-07-24 11:36 ` lamikr
3 siblings, 0 replies; 5+ messages in thread
From: lamikr @ 2006-07-24 11:36 UTC (permalink / raw)
To: linux-hotplug
Marco d'Itri wrote:
> On Jul 21, Andrey Borzenkov <arvidjaar@mail.ru> wrote:
>
>
>> It looks like MAC alone is not sufficient to uniquely identify and name
>> interface.
>>
> You need to ignore some devices. Look at the Debian package for details.
> After my latest changes no more issues have been reported.
>
Sorry, but I am quite newbie with udev magic & rules.
Do you mean the /etc/udev/persistent-net-generator.rules that is at
least in the udev_0.093-1_i386.deb ?
Is that file called/included from some other file, or is everything
needed for getting the fixed usbnet device name in this single file?
Mika
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-07-24 11:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-20 19:12 howto keep fixed name for the usbnet interface? lamikr
2006-07-21 2:35 ` Andrey Borzenkov
2006-07-21 7:26 ` Marco d'Itri
2006-07-21 11:57 ` Olivier Blin
2006-07-24 11:36 ` lamikr
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).