All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gabriel C <nix.or.die@googlemail.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Problems with udev > 106 and multiple network cards
Date: Thu, 12 Apr 2007 17:43:00 +0000	[thread overview]
Message-ID: <461E6FA4.1000408@googlemail.com> (raw)
In-Reply-To: <461BFFDD.2040401@googlemail.com>

Matthias Schwarzott wrote:
> On Mittwoch, 11. April 2007, Gabriel C wrote:
>   
>> I have also an FireWire device too which is there as :
>>
>> /sys/class/net/eth0 -> ../../devices/virtual/net/eth0/
>>
>> INTERFACE="eth0" DEVPATH="/sys/class/net/eth0" \
>>
>>  > sudo /lib/udev/write_net_rules
>>
>> No MAC address for eth0.
>>
>> This virtual device is causing the whole problem. Udev does not write
>> any rules for it ( knows about it ? ) and without to blacklist the
>> firewire driver
>>     
>
> Perhaps you miss some rule like:
> ACTION="add", SUBSYSTEM="net", WAIT_FOR_SYSFS="address"
>
> Does udevtrigger creates an appropriate rule?
>   

Yes I was actually missing it. Thx.

>   
>> eth0 is always the firewire devices as :
>>
>> eth0 Link encap:UNSPEC HWaddr
>> 00-40-D0-01-00-15-F6-9E-00-00-00-00-00-00-00-00
>> ....
>>
>> Booting with Firewire device the sis and pcmcia card I get this rules ,
>> generated by udev :
>>
>>
>>     
>
>
>   
>> With the patch from git and blacklisted eth1394 driver things are
>> working again but is again ugly workarounded.
>>
>> I guess to fix this problem udev need to ignore such /virtual/ devices ?
>>
>>     
> Ignoring will not help, as then udev still hangs on its (60sec) timeout if the 
> name it wants to give to some eth card is used by your eth1394 device.
> Perhaps post the content of 70-persistent-net.rules, and 
> udevinfo -a -p /sys/class/net/eth? for the eth1394 device.
>   

I solved it by adding the missing rules and prefixing firewire with 
fw-eth%n as you suggested.


Thank you very much for your help.


> Btw. why does this driver uses eth? as the device name and not something 
> prefixed with firewire?
>   

Good question :) I never cared about because everything worked fine.

I'm not really sure what the best method is to match all firewire 
devices with a udev rules.

So far I see all this ethX_firewire devices have :

ATTR{type}="24"

So I've created a rule like this one :

ACTION="add", SUBSYSTEM="net", ATTR{type}="24", NAME="fw-eth%n"

which works fine but may be not the best solution. Do you know the right 
way to do this ?

Maybe udev should have some rules to prefix this devices by default ?

> Regards
> Matthias
>
>   

Regards,

Gabriel


-------------------------------------------------------------------------
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

      parent reply	other threads:[~2007-04-12 17:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10 21:21 Problems with udev > 106 and multiple network cards Gabriel C
2007-04-11  2:59 ` Andrey Borzenkov
2007-04-11  6:41 ` Matthias Schwarzott
2007-04-11 11:14 ` Gabriel C
2007-04-11 13:27 ` Gabriel C
2007-04-11 17:51 ` Gabriel C
2007-04-12  9:12 ` Matthias Schwarzott
2007-04-12 17:43 ` Gabriel C [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=461E6FA4.1000408@googlemail.com \
    --to=nix.or.die@googlemail.com \
    --cc=linux-hotplug@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 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.