Hi Derek,

Thanks very much for the clarification. Maybe a "Click here for Configuring
non-root" link, or a "DON'T PANIC" in large, friendly letters.

Regards


On Thu, Jul 5, 2018 at 1:20 PM Derek Kozel <derek.ko...@ettus.com> wrote:

> Hello Alejandra,
>
> Both of the instructions are correct. The confusion is that the manual
> copies the file from the installed version of UHD and the application note
> copies it from the source code directory. By default the install location
> will be "/usr/local/" so the full path in [1] would be
> /usr/local/lib/uhd/utils.
>
> The app note does include the instructions for configuring non-root USB
> access.
>
> https://kb.ettus.com/Building_and_Installing_the_USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_Linux#Configuring_USB
>
> It also includes the notes about threading priority at the end.
>
> https://kb.ettus.com/Building_and_Installing_the_USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_Linux#Thread_priority_scheduling
>
> I'll have a think about how to make it clear that those sections are
> necessary reads after finishing the base installation process. A note at
> the end of the UHD installation section makes sense.
>
> Best regards,
> Derek
>
> On Thu, Jul 5, 2018 at 5:03 PM, Alejandra Mercado via USRP-users <
> usrp-users@lists.ettus.com> wrote:
>
>> I believe these instructions are all the more necessary, since they (the
>> instructions) seem to be unstable.
>>
>> For example, [1] says to change folder to <install-path>/lib/uhd/utils
>>
>> But there is no such path (at least in UHD version 3.9.7). The closest
>> is     workarea-uhd/uhd/host/lib/utils
>>
>> Which, though easy enough to find, begs the question if other paths have
>> changed then will some of these batches help or hurt?
>>
>> Thanks and regards
>>
>>
>>
>> On Thu, Jul 5, 2018 at 11:56 AM Alejandra Mercado <merc...@ece.umd.edu>
>> wrote:
>>
>>> Dear USRP folks,
>>>
>>> If the steps in [1] and [2] are needed to prevent the sudo requirement
>>> (I have the same problem, Hojoon), then could Ettus please add those
>>> commands to the installation instructions in
>>>
>>>
>>> https://kb.ettus.com/Building_and_Installing_the_USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_Linux
>>>
>>> If it had not been for Hojoon's post, I would be at sea as to how to
>>> solve it.
>>>
>>> Regards
>>>
>>> On Tue, May 8, 2018 at 1:37 AM Nicolas Cuervo via USRP-users <
>>> usrp-users@lists.ettus.com> wrote:
>>>
>>>> All that you are seeing is part of the normal behavior. The warnings
>>>> are fairly descriptive on telling you what is happening. As you did, you
>>>> set the Udev rules as depicted in our manual [1]. Later, you see the thread
>>>> priority and you are encouraged to go to the manual again, where you will
>>>> find the description of that warning and what to do to set the thread
>>>> priority [2].
>>>>
>>>> -Nicolas
>>>>
>>>> [1]
>>>> https://files.ettus.com/manual/page_transport.html#transport_usb_udev
>>>> [2]
>>>> https://files.ettus.com/manual/page_general.html#general_threading_prio
>>>>
>>>> On Tue, May 8, 2018 at 6:15 AM, Hojoon Yang via USRP-users <
>>>> usrp-users@lists.ettus.com> wrote:
>>>>
>>>>> Hi, I resolved the "[ERROR] [USB] USB open failed: insufficient
>>>>> permissions." problem
>>>>>
>>>>>
>>>>> by the following commands,
>>>>>
>>>>>
>>>>> sudo cp uhd-usrp.rules /etc/udev/rules.d/
>>>>>
>>>>> sudo udevadm control --reload-rules
>>>>>
>>>>> sudo udevadm trigger
>>>>>
>>>>>
>>>>> However, I still get the warning if I executed the uhd example
>>>>> programs without "sudo"
>>>>>
>>>>>
>>>>> [WARNING] [UHD] Unable to set the thread priority. Performance may be
>>>>> negatively affected.
>>>>>
>>>>> Please see the general application notes in the manual for
>>>>> instructions.
>>>>>
>>>>> EnvironmentError: OSError: error in pthread_setschedparam
>>>>>
>>>>>
>>>>>
>>>>> For example,
>>>>>
>>>>>
>>>>>
>>>>> sudo ./tx_waveforms .. -> No such warning
>>>>>
>>>>> ./tx_waveforms .. -> [WARNING] [UHD ].....
>>>>>
>>>>>
>>>>>
>>>>> Is this a bug? or normal behavior?
>>>>>
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>> Hojoon
>>>>>
>>>>>
>>>>>
>>>>> -----------------------Original Message-----------------------
>>>>> From: Hojoon Yangvia USRP-users <usrp-users@lists.ettus.com>
>>>>> To: "Marcus D. Leech via USRP-users" <usrp-users@lists.ettus.com>
>>>>> Sent date: 2018-05-08 11:33:40 GMT +0900 (Asia/Seoul)
>>>>> Subject: Re: [USRP-users]UHD installation
>>>>>
>>>>> Thanks Marcus.
>>>>>
>>>>>
>>>>>
>>>>> I did it. But, nothing changed. I will re-install the uhd and come
>>>>> back if still have problems.
>>>>>
>>>>>
>>>>>
>>>>> But, is there any relationship between kernel version and uhd version?
>>>>> I use UHD 3.11.
>>>>>
>>>>>
>>>>>
>>>>> currently, I use Ubuntu 14.04.5 LTS and the kernel version is
>>>>> 4.2.0-42-generic
>>>>>
>>>>>
>>>>> Because, the latest kernel version NI RIO supports is 4.2.x. I need it
>>>>> for USRP X310.
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>>
>>>>> Hojoon
>>>>>
>>>>>
>>>>>
>>>>> -----------------------Original Message-----------------------
>>>>> From: "Marcus D. Leech via USRP-users" <usrp-users@lists.ettus.com>
>>>>> To: usrp-users@lists.ettus.com
>>>>> Sent date: 2018-05-08 10:47:47 GMT +0900 (Asia/Seoul)
>>>>> Subject: Re: [USRP-users] UHD installation
>>>>> On 05/07/2018 09:42 PM, Hojoon Yang via USRP-users wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>>
>>>>>
>>>>> When I executed the "uhd_find_devices"
>>>>>
>>>>>
>>>>>
>>>>> I got "[ERROR] [USB] USB open failed: insufficient permissions."
>>>>>
>>>>>
>>>>> However, when I put sudo in it(i.e. sudo uhd_find_devices", there is
>>>>> no such error.
>>>>>
>>>>>
>>>>>
>>>>> Also, when I typed "./tx_waveforms ..."
>>>>>
>>>>>
>>>>>
>>>>> I got an following WARNING
>>>>>
>>>>> "[WARNING] [UHD] Unable to set the thread priority. Performance may
>>>>> be negatively affected.
>>>>>
>>>>> Please see the general application notes in the manual for
>>>>> instructions.
>>>>>
>>>>> EnvironmentError: OSError: error in pthread_setschedparam"
>>>>>
>>>>>
>>>>>
>>>>> similarly, the warning disappeared when I put the sudo in it.
>>>>>
>>>>>
>>>>>
>>>>> Marcus said it is incomplete installation, if the sudo needed.
>>>>>
>>>>>
>>>>>
>>>>> As Marcus recommended, I created(because there was no such file)
>>>>> /etc/udev/rules.d/10-usrp.rules and put the following contents.
>>>>>
>>>>>
>>>>>
>>>>> #
>>>>> # Copyright 2011,2015 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 <http://www.gnu.org/licenses/>
>>>>> <http://www.gnu.org/licenses/>.
>>>>> #
>>>>>
>>>>> #USRP1
>>>>> SUBSYSTEMS=="usb", ATTRS{idVendor}=="fffe", ATTRS{idProduct}=="0002",
>>>>> MODE:="0666"
>>>>>
>>>>> #B100
>>>>> SUBSYSTEMS=="usb", ATTRS{idVendor}=="2500", ATTRS{idProduct}=="0002",
>>>>> MODE:="0666"
>>>>>
>>>>> #B200
>>>>> SUBSYSTEMS=="usb", ATTRS{idVendor}=="2500", ATTRS{idProduct}=="0020",
>>>>> MODE:="0666"
>>>>> SUBSYSTEMS=="usb", ATTRS{idVendor}=="2500", ATTRS{idProduct}=="0022",
>>>>> MODE:="0666"
>>>>> SUBSYSTEMS=="usb", ATTRS{idVendor}=="3923", ATTRS{idProduct}=="7813",
>>>>> MODE:="0666"
>>>>> SUBSYSTEMS=="usb", ATTRS{idVendor}=="3923", ATTRS{idProduct}=="7814",
>>>>> MODE:="0666"
>>>>>
>>>>>
>>>>>
>>>>> However, nothing changed.
>>>>>
>>>>>
>>>>> Do I need to re-install the uhd?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>> Hojoon
>>>>>
>>>>> You also need to:
>>>>>
>>>>> sudo udevadm control --reload-rules
>>>>>
>>>>> And then  replug your USRP
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> USRP-users mailing list
>>>>> USRP-users@lists.ettus.com
>>>>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>>>>>
>>>>>
>>>> _______________________________________________
>>>> USRP-users mailing list
>>>> USRP-users@lists.ettus.com
>>>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>>>>
>>>
>> _______________________________________________
>> USRP-users mailing list
>> USRP-users@lists.ettus.com
>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>>
>>
>
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to