From 1df3e9b1619af5c4e652ec143930916a87d4789a Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 5 Sep 2011 12:27:16 -0700 Subject: uhd: updated docs usb post-install, added uhd-usrp.rules --- host/utils/CMakeLists.txt | 8 ++++++++ host/utils/uhd-usrp.rules | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 host/utils/uhd-usrp.rules (limited to 'host/utils') diff --git a/host/utils/CMakeLists.txt b/host/utils/CMakeLists.txt index b2dd697fc..1b70be7a4 100644 --- a/host/utils/CMakeLists.txt +++ b/host/utils/CMakeLists.txt @@ -45,6 +45,14 @@ IF(ENABLE_USRP1) ) ENDIF(ENABLE_USRP1) +IF(LINUX AND ENABLE_USB) + INSTALL(FILES + uhd-usrp.rules + DESTINATION ${PKG_DATA_DIR}/utils + COMPONENT utilities + ) +ENDIF(LINUX AND ENABLE_USB) + #for each source: build an executable and install FOREACH(util_source ${util_share_sources}) GET_FILENAME_COMPONENT(util_name ${util_source} NAME_WE) diff --git a/host/utils/uhd-usrp.rules b/host/utils/uhd-usrp.rules new file mode 100644 index 000000000..65b9121a4 --- /dev/null +++ b/host/utils/uhd-usrp.rules @@ -0,0 +1,19 @@ +# +# Copyright 2011 Ettus Research LLC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +ACTION=="add", BUS=="usb", SYSFS{idVendor}=="fffe", SYSFS{idProduct}=="0002", MODE:="0666" +ACTION=="add", BUS=="usb", SYSFS{idVendor}=="2500", SYSFS{idProduct}=="0001", MODE:="0666" -- cgit v1.2.3