From: Chris Smith <smitty1elkml@gmail.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev rule does not assign eth0 to ipw3945 device
Date: Mon, 23 Apr 2007 03:39:57 +0000 [thread overview]
Message-ID: <loom.20070423T053253-714@post.gmane.org> (raw)
In-Reply-To: <9b53a56d0704221004l77858a10t409ea96566f38094@mail.gmail.com>
Bryan Kadzban <bryan <at> kadzban.is-a-geek.net> writes:
> I assume you have the required firmware files, right?
>
> > #udevinfo <...>
>
> What about /sys/class/net/*? (And note that it may not be eth*, it may
> be wifi*/wlan*, or even something different. Look in /sys/class/net.)
>
Only thing in there is lo
> > #cat /etc/udev/rules.d/70-persistent-net.rules
> > # This file was automatically generated by the /lib/udev/write_net_rules
> > # program, probably run by the persistent-net-generator.rules rules file.
> > #
> > # You can modify it, as long as you keep each rule on a single line.
> > KERNEL="0000:0c:00.0",ATTR{class}="0x028000",
> > ATTR{device}="0x4222", ATTR{vendor}="0x8086",WAIT_FOR_SYSFS,
> > PROGRAM="/sbin/ipw3945d-start ipw3945d",NAME="eth0"
>
> Try getting rid of WAIT_FOR_SYSFS. As far as I know, that option
> requires an argument (the name of the sysfs attribute to wait for); it
> does not cause udev to just "wait for sysfs to be available" or
> something like that.
>
A further read of man udev confirmed that you are right.
> Another issue might be the KERNEL match; I don't know if that constrains
> the ATTR{...} attributes or not, but it might. Try ID_PATH if you need
> to match the PCI slot number (of course that will require you to run
> path_id on all network-class devices).
>
> Also try adding some spaces after the commas -- I don't know if they're
> required or not, but they might be.
>
> Finally, I am going to guess that the rule was on one line (like the
> comment says it must be), but just in case, it'd be good to double-check
> that.
>
Further poking based on your suggestions and a read of forums.gentoo.org
suggests that my real heartburn might be that the firmware, which I have sitting
in /lib/firmware, may not in fact be loading.
I don't know if the regulatory daemon just loads the firmware via
sleight-of-hand, or if it is loading and just reporting nothing, or what.
/lib/udev/firmware.sh seems to employ some sysfs entries that I don't see
otherwise, like "loading" and "data".
Curious, and less than thoroughly documented, this whole firmware process...
Thanks for your reply, Bryan.
Best,
Chris
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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
next prev parent reply other threads:[~2007-04-23 3:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-22 17:04 udev rule does not assign eth0 to ipw3945 device Chris Smith
2007-04-23 2:25 ` Bryan Kadzban
2007-04-23 3:39 ` Chris Smith [this message]
2007-04-23 22:42 ` Bryan Kadzban
2007-04-23 23:02 ` Dan Nicholson
2007-04-23 23:56 ` Chris Smith
2007-04-24 0:37 ` Dan Nicholson
2007-04-24 3:02 ` Chris Smith
2007-04-25 21:59 ` Dan Nicholson
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=loom.20070423T053253-714@post.gmane.org \
--to=smitty1elkml@gmail.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 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).