From: "Jasem Mutlaq" <mutlaqja@ikarustech.com>
To: linux-hotplug@vger.kernel.org
Subject: RE: Loading firmware
Date: Tue, 14 Oct 2008 13:16:01 +0000 [thread overview]
Message-ID: <007601c92dff$03612ba0$0a2382e0$@com> (raw)
In-Reply-To: <003c01c92d81$89978710$9cc69530$@com>
> Does something like this help:
>
> <some test to determine your device>, ACTION="add", RUN+="/sbin/fxload
> -D /dev/$name"
>
> Where $name points to the device name and will be set earlier by the
> default rules.
It didn't work. The $name that I get is in the form of usbdev1.8_ep00 still. However, I tried the following
BUS="usb", ACTION="add", <...etc...> , ENV{devpath}="$attr{busnum}/$attr{devnum}"
RUN+="/sbin/fxload -I /lib/firmware/foo.hex -D /dev/bus/usb/$env{devpath}"
Only that $devpath evaluates to 1/8 or 10/7, but the number must always be 3 digits with zeros filling the leading digits, e.g.
/dev/bus/usb/001/008 or /dev/bus/usb/010/007
I have no idea how to do this in the rules files without calling an external script.
Regards,
Jasem
next prev parent reply other threads:[~2008-10-14 13:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-13 22:17 Loading firmware Jasem Mutlaq
2008-10-14 0:18 ` Dan Nicholson
2008-10-14 13:16 ` Jasem Mutlaq [this message]
2008-10-14 14:33 ` Kay Sievers
2008-10-14 17:24 ` Jasem Mutlaq
2008-10-14 17:46 ` Kay Sievers
2008-10-14 18:08 ` Dan Nicholson
2008-10-15 12:05 ` Jasem Mutlaq
2008-10-15 12:32 ` Kay Sievers
2008-10-15 12:44 ` Jasem Mutlaq
2008-10-15 13:22 ` Kay Sievers
2008-10-15 13:59 ` Jasem Mutlaq
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='007601c92dff$03612ba0$0a2382e0$@com' \
--to=mutlaqja@ikarustech.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.