USRP - hotplug / udev / auto-loading of firmware

Hello again,

Am I correct in saying that the standard USRP setup is
to have some entry in hotplug configuration that
points the device manager to a firmware loading app,
allowing the USRP to be configured as soon as it is
detected?

I ask because I run Ubuntu 6.06 (Dapper), which uses
udev, and will need to edit my device manager’s rules
to identify my custom board, and am not sure if this
is necessary. Oh, and the OS detects my FX2 micro when
I run lsusb (albeit unconfigured).

Finally, if I do have to edit the rules (SYSFS,
VendorId etc), what exactly will I need to let my
system know? (I have read udev docs briefly, but was a
little confused)

Once again, any help would be greatly appreciated.

Cheers
Kalen


All new Yahoo! Mail “The new Interface is stunning in its simplicity and
ease of use.” - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html

On Thu, Jun 29, 2006 at 07:44:50AM +0100, Kalen Watermeyer wrote:

Hello again,

Am I correct in saying that the standard USRP setup is
to have some entry in hotplug configuration that
points the device manager to a firmware loading app,
allowing the USRP to be configured as soon as it is
detected?

No, this isn’t a requirement. However, sometimes it’s useful to have
a hotplug configuration that sets up the permissions on
/proc/bus/usb/ so that non-root users can access the
device. This all depends on the distribution.

FYI, when the USRP library code attempts to gain access to the device,
it checks to ensure that it contains the firmware and FPGA image that
the user asked for (either implicitly or explicitly). Thus, there’s
no hard requirement to load either as soon as the device is plugged in.

Eric

On Thu, 2006-06-29 at 07:44 +0100, Kalen Watermeyer wrote:

I ask because I run Ubuntu 6.06 (Dapper), which uses
udev, and will need to edit my device manager’s rules
to identify my custom board, and am not sure if this
is necessary. Oh, and the OS detects my FX2 micro when
I run lsusb (albeit unconfigured).

Finally, if I do have to edit the rules (SYSFS,
VendorId etc), what exactly will I need to let my
system know? (I have read udev docs briefly, but was a
little confused)

You don’t necessarily have to do this, but it is useful to run as a
non-root user. See the following link for specific details:
http://lists.gnu.org/archive/html/discuss-gnuradio/2006-06/msg00213.html

I also added to the rules file

SYSFS{idVendor}==“077d”, SYSFS{idProduct}==“0410”, MODE=“0666”

so I could access the Powermate without becoming root.