LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-24-2020, 02:24 AM   #1
kdleoSl
LQ Newbie
 
Registered: Sep 2013
Posts: 5

Rep: Reputation: Disabled
getting attributes from usb devices passed thru to linux VM


OS: kali 2020.2 VM

wanting to get the device info from the rtl_sdr dongles plugged into a usb2.0 hub. the hub is plugged into the vmware server and passed thru to the kali os. the dongles are working fine.

when a usb device is plugged into my notebook, i just execute something like this:
Code:
    sudo udevadm info --name=/dev/usb/hiddev0 --attribute-walk
to get the dongle/device attributes.

but on this kali VM there is no /dev/usb/hiddev0 or some id for "rtl-sdr-dongle" under /dev/usb/?.

from searching through dmesg i find these locations for the three rtl-sdr usb dongles:
Code:
   /sys/devices/pci0000:00/0000:00:11.0/0000:02:01.0/usb1/1-1/
   /sys/devices/pci0000:00/0000:00:11.0/0000:02:01.0/usb1/1-2/
   /sys/devices/pci0000:00/0000:00:11.0/0000:02:01.0/usb1/1-3/
is there a command line app like udevadm that will attribute walk these locations and return their attributes?
 
Old 08-24-2020, 09:04 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: KDE Neon
Posts: 1,272

Rep: Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525
What VM software are you using? Getting USB pass-thru working varies.
 
Old 08-25-2020, 08:42 PM   #3
kdleoSl
LQ Newbie
 
Registered: Sep 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by uteck View Post
What VM software are you using? Getting USB pass-thru working varies.
VMWare 6.7.0

the passthru is working just fine. i want to put some dev rules in place for the rtl-sdr dongles. usually i use udevadm to return values needed for usb devices plugged in. but udevadm doesn't work when usb devices are passed thru on vm...i think so, but could be wrong.
 
Old 08-28-2020, 10:55 AM   #4
kdleoSl
LQ Newbie
 
Registered: Sep 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
i found some bits of info help me out.

executing these commands helped to some degree...
Code:
  lsusb -t
  lsusb -v
whith the dmesg output seeing the three rtl dongles info at the respective locations mentioned above, i run this:
Code:
  udevadm info -a -p /sys/devices/pci0000:00/0000:00:11.0/0000:02:01.0/usb1/1-1/
  udevadm info -a -p /sys/devices/pci0000:00/0000:00:11.0/0000:02:01.0/usb1/1-2/
  udevadm info -a -p /sys/devices/pci0000:00/0000:00:11.0/0000:02:01.0/usb1/1-3/
this grabbed all the info, and more, that i needed to write the udev rules.

may be better options but this worked
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Amount of data passed through a USB device (from USB stick) grayFalcon Linux - Software 4 08-18-2010 01:26 AM
Using C API; first query passed passed by program to MySQL is successful, second quer weibullguy Programming 2 06-12-2007 10:45 PM
machine not allowing login thru virtual console, only thru ssh dsids Linux - Newbie 2 01-15-2007 11:46 AM
sed not working if value is passed thru a variable containg value suchi_s Programming 7 10-29-2004 07:41 AM
Getting Samba to store DOS read only attributes nwykes Linux - Newbie 0 11-18-2003 06:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration