Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ lsusb
- Bus 001 Device 009: ID 12d1:4321 Huawei Technologies Co., Ltd.
- Bus 001 Device 010: ID 12d1:4321 Huawei Technologies Co., Ltd.
- ...
- $ udevadm info --a --name /dev/video0
- Udevadm info starts with the device specified by the devpath and then
- walks up the chain of parent devices. It prints for every device
- found, all possible attributes in the udev rules key format.
- A rule to match, can be composed by the attributes of the device
- and the attributes from one single parent device.
- looking at device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/video4linux/video0':
- KERNEL=="video0"
- SUBSYSTEM=="video4linux"
- DRIVER==""
- ATTR{index}=="0"
- ATTR{name}=="UVC Camera: UVC Camera"
- ATTR{dev_debug}=="0"
- looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0':
- KERNELS=="1-1.5:1.0"
- SUBSYSTEMS=="usb"
- DRIVERS=="uvcvideo"
- ATTRS{bInterfaceNumber}=="00"
- ATTRS{iad_bFirstInterface}=="00"
- ATTRS{supports_autosuspend}=="1"
- ATTRS{iad_bFunctionProtocol}=="00"
- ATTRS{iad_bFunctionSubClass}=="03"
- ATTRS{authorized}=="1"
- ATTRS{interface}=="UVC Camera"
- ATTRS{bInterfaceClass}=="0e"
- ATTRS{bAlternateSetting}==" 0"
- ATTRS{iad_bInterfaceCount}=="02"
- ATTRS{iad_bFunctionClass}=="0e"
- ATTRS{bInterfaceProtocol}=="00"
- ATTRS{bInterfaceSubClass}=="01"
- ATTRS{bNumEndpoints}=="01"
- looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5':
- KERNELS=="1-1.5"
- SUBSYSTEMS=="usb"
- DRIVERS=="usb"
- ATTRS{idVendor}=="12d1"
- ATTRS{authorized}=="1"
- ATTRS{busnum}=="1"
- ATTRS{quirks}=="0x0"
- ATTRS{bmAttributes}=="c0"
- ATTRS{bConfigurationValue}=="1"
- ATTRS{bNumInterfaces}==" 4"
- ATTRS{devpath}=="1.5"
- ATTRS{ltm_capable}=="no"
- ATTRS{bMaxPower}=="2mA"
- ATTRS{speed}=="480"
- ATTRS{serial}=="20200416"
- ATTRS{bNumConfigurations}=="1"
- ATTRS{bDeviceClass}=="ef"
- ATTRS{removable}=="removable"
- ATTRS{tx_lanes}=="1"
- ATTRS{avoid_reset_quirk}=="0"
- ATTRS{urbnum}=="4783"
- ATTRS{idProduct}=="4321"
- ATTRS{bMaxPacketSize0}=="64"
- ATTRS{devspec}=="(null)"
- ATTRS{product}=="UVC Camera"
- ATTRS{version}==" 2.10"
- ATTRS{devnum}=="9"
- ATTRS{bcdDevice}=="0409"
- ATTRS{bDeviceProtocol}=="01"
- ATTRS{rx_lanes}=="1"
- ATTRS{maxchild}=="0"
- ATTRS{configuration}=="Config 1"
- ATTRS{manufacturer}=="Ruision"
- ATTRS{bDeviceSubClass}=="02"
- looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1':
- KERNELS=="1-1"
- SUBSYSTEMS=="usb"
- DRIVERS=="usb"
- ATTRS{quirks}=="0x0"
- ATTRS{version}==" 2.00"
- ATTRS{idProduct}=="9514"
- ATTRS{speed}=="480"
- ATTRS{busnum}=="1"
- ATTRS{urbnum}=="126"
- ATTRS{removable}=="unknown"
- ATTRS{rx_lanes}=="1"
- ATTRS{bcdDevice}=="0200"
- ATTRS{devpath}=="1"
- ATTRS{bNumConfigurations}=="1"
- ATTRS{tx_lanes}=="1"
- ATTRS{bDeviceClass}=="09"
- ATTRS{configuration}==""
- ATTRS{bmAttributes}=="e0"
- ATTRS{maxchild}=="5"
- ATTRS{bConfigurationValue}=="1"
- ATTRS{devnum}=="2"
- ATTRS{bDeviceSubClass}=="00"
- ATTRS{bMaxPacketSize0}=="64"
- ATTRS{idVendor}=="0424"
- ATTRS{avoid_reset_quirk}=="0"
- ATTRS{authorized}=="1"
- ATTRS{bNumInterfaces}==" 1"
- ATTRS{bDeviceProtocol}=="02"
- ATTRS{ltm_capable}=="no"
- ATTRS{bMaxPower}=="2mA"
- looking at parent device '/devices/platform/soc/3f980000.usb/usb1':
- KERNELS=="usb1"
- SUBSYSTEMS=="usb"
- DRIVERS=="usb"
- ATTRS{version}==" 2.00"
- ATTRS{avoid_reset_quirk}=="0"
- ATTRS{bMaxPower}=="0mA"
- ATTRS{bNumConfigurations}=="1"
- ATTRS{tx_lanes}=="1"
- ATTRS{authorized}=="1"
- ATTRS{bDeviceClass}=="09"
- ATTRS{idVendor}=="1d6b"
- ATTRS{configuration}==""
- ATTRS{busnum}=="1"
- ATTRS{authorized_default}=="1"
- ATTRS{bmAttributes}=="e0"
- ATTRS{speed}=="480"
- ATTRS{rx_lanes}=="1"
- ATTRS{removable}=="unknown"
- ATTRS{bcdDevice}=="0504"
- ATTRS{serial}=="3f980000.usb"
- ATTRS{bNumInterfaces}==" 1"
- ATTRS{bDeviceSubClass}=="00"
- ATTRS{urbnum}=="25"
- ATTRS{bMaxPacketSize0}=="64"
- ATTRS{bConfigurationValue}=="1"
- ATTRS{product}=="DWC OTG Controller"
- ATTRS{quirks}=="0x0"
- ATTRS{devnum}=="1"
- ATTRS{manufacturer}=="Linux 5.4.51-v7+ dwc_otg_hcd"
- ATTRS{ltm_capable}=="no"
- ATTRS{bDeviceProtocol}=="01"
- ATTRS{devpath}=="0"
- ATTRS{idProduct}=="0002"
- ATTRS{interface_authorized_default}=="1"
- ATTRS{maxchild}=="1"
- looking at parent device '/devices/platform/soc/3f980000.usb':
- KERNELS=="3f980000.usb"
- SUBSYSTEMS=="platform"
- DRIVERS=="dwc_otg"
- ATTRS{fr_interval}=="Frame Interval = 0x1d4b"
- ATTRS{busconnected}=="Bus Connected = 0x1"
- ATTRS{enumspeed}=="Device Enumeration Speed = 0x1"
- ATTRS{regoffset}=="0xffffffff"
- ATTRS{hnp}=="HstNegScs = 0x0"
- ATTRS{hcddump}=="HCD Dump"
- ATTRS{guid}=="GUID = 0x2708a000"
- ATTRS{gnptxfsiz}=="GNPTXFSIZ = 0x01000306"
- ATTRS{gsnpsid}=="GSNPSID = 0x4f54280a"
- ATTRS{spramdump}=="SPRAM Dump"
- ATTRS{devspeed}=="Device Speed = 0x0"
- ATTRS{regvalue}=="invalid offset"
- ATTRS{gusbcfg}=="GUSBCFG = 0x20001700"
- ATTRS{hsic_connect}=="HSIC Connect = 0x1"
- ATTRS{driver_override}=="(null)"
- ATTRS{bussuspend}=="Bus Suspend = 0x0"
- ATTRS{hptxfsiz}=="HPTXFSIZ = 0x02000406"
- ATTRS{hcd_frrem}=="HCD Dump Frame Remaining"
- ATTRS{rem_wakeup_pwrdn}==""
- ATTRS{srpcapable}=="SRPCapable = 0x1"
- ATTRS{gpvndctl}=="GPVNDCTL = 0x00000000"
- ATTRS{hprt0}=="HPRT0 = 0x00001005"
- ATTRS{inv_sel_hsic}=="Invert Select HSIC = 0x0"
- ATTRS{remote_wakeup}=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote Wakeup = 0"
- ATTRS{mode}=="Mode = 0x1"
- ATTRS{gotgctl}=="GOTGCTL = 0x001c0001"
- ATTRS{regdump}=="Register Dump"
- ATTRS{wr_reg_test}=="Time to write GNPTXFSIZ reg 10000000 times: 700 msecs (70 jiffies)"
- ATTRS{hnpcapable}=="HNPCapable = 0x1"
- ATTRS{rd_reg_test}=="Time to read GNPTXFSIZ reg 10000000 times: 1650 msecs (165 jiffies)"
- ATTRS{ggpio}=="GGPIO = 0x00000000"
- ATTRS{grxfsiz}=="GRXFSIZ = 0x00000306"
- ATTRS{buspower}=="Bus Power = 0x1"
- ATTRS{srp}=="SesReqScs = 0x1"
- ATTRS{mode_ch_tim_en}=="Mode Change Ready Timer Enable = 0x0"
- looking at parent device '/devices/platform/soc':
- KERNELS=="soc"
- SUBSYSTEMS=="platform"
- DRIVERS==""
- ATTRS{driver_override}=="(null)"
- looking at parent device '/devices/platform':
- KERNELS=="platform"
- SUBSYSTEMS==""
- DRIVERS==""
- ######################
- $ udevadm info --a --name /dev/video2
- Udevadm info starts with the device specified by the devpath and then
- walks up the chain of parent devices. It prints for every device
- found, all possible attributes in the udev rules key format.
- A rule to match, can be composed by the attributes of the device
- and the attributes from one single parent device.
- looking at device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/video4linux/video2':
- KERNEL=="video2"
- SUBSYSTEM=="video4linux"
- DRIVER==""
- ATTR{name}=="UVC Camera: UVC Camera"
- ATTR{index}=="0"
- ATTR{dev_debug}=="0"
- looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0':
- KERNELS=="1-1.4:1.0"
- SUBSYSTEMS=="usb"
- DRIVERS=="uvcvideo"
- ATTRS{iad_bFunctionClass}=="0e"
- ATTRS{iad_bInterfaceCount}=="02"
- ATTRS{bInterfaceProtocol}=="00"
- ATTRS{authorized}=="1"
- ATTRS{iad_bFunctionSubClass}=="03"
- ATTRS{supports_autosuspend}=="1"
- ATTRS{bAlternateSetting}==" 0"
- ATTRS{interface}=="UVC Camera"
- ATTRS{iad_bFunctionProtocol}=="00"
- ATTRS{bNumEndpoints}=="01"
- ATTRS{bInterfaceNumber}=="00"
- ATTRS{iad_bFirstInterface}=="00"
- ATTRS{bInterfaceClass}=="0e"
- ATTRS{bInterfaceSubClass}=="01"
- looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4':
- KERNELS=="1-1.4"
- SUBSYSTEMS=="usb"
- DRIVERS=="usb"
- ATTRS{devspec}=="(null)"
- ATTRS{bmAttributes}=="c0"
- ATTRS{product}=="UVC Camera"
- ATTRS{devpath}=="1.4"
- ATTRS{idProduct}=="4321"
- ATTRS{version}==" 2.10"
- ATTRS{bDeviceProtocol}=="01"
- ATTRS{bMaxPacketSize0}=="64"
- ATTRS{bDeviceSubClass}=="02"
- ATTRS{removable}=="removable"
- ATTRS{bNumInterfaces}==" 4"
- ATTRS{maxchild}=="0"
- ATTRS{avoid_reset_quirk}=="0"
- ATTRS{ltm_capable}=="no"
- ATTRS{serial}=="20200416"
- ATTRS{speed}=="480"
- ATTRS{tx_lanes}=="1"
- ATTRS{urbnum}=="13281"
- ATTRS{bDeviceClass}=="ef"
- ATTRS{quirks}=="0x0"
- ATTRS{bConfigurationValue}=="1"
- ATTRS{idVendor}=="12d1"
- ATTRS{manufacturer}=="Ruision"
- ATTRS{devnum}=="10"
- ATTRS{busnum}=="1"
- ATTRS{bNumConfigurations}=="1"
- ATTRS{configuration}=="Config 1"
- ATTRS{bMaxPower}=="2mA"
- ATTRS{rx_lanes}=="1"
- ATTRS{authorized}=="1"
- ATTRS{bcdDevice}=="0409"
- looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1':
- KERNELS=="1-1"
- SUBSYSTEMS=="usb"
- DRIVERS=="usb"
- ATTRS{configuration}==""
- ATTRS{bDeviceProtocol}=="02"
- ATTRS{busnum}=="1"
- ATTRS{rx_lanes}=="1"
- ATTRS{maxchild}=="5"
- ATTRS{bMaxPower}=="2mA"
- ATTRS{authorized}=="1"
- ATTRS{idProduct}=="9514"
- ATTRS{tx_lanes}=="1"
- ATTRS{bDeviceSubClass}=="00"
- ATTRS{devpath}=="1"
- ATTRS{ltm_capable}=="no"
- ATTRS{bDeviceClass}=="09"
- ATTRS{version}==" 2.00"
- ATTRS{bConfigurationValue}=="1"
- ATTRS{urbnum}=="126"
- ATTRS{bmAttributes}=="e0"
- ATTRS{quirks}=="0x0"
- ATTRS{bcdDevice}=="0200"
- ATTRS{bNumConfigurations}=="1"
- ATTRS{bNumInterfaces}==" 1"
- ATTRS{devnum}=="2"
- ATTRS{removable}=="unknown"
- ATTRS{idVendor}=="0424"
- ATTRS{bMaxPacketSize0}=="64"
- ATTRS{speed}=="480"
- ATTRS{avoid_reset_quirk}=="0"
- looking at parent device '/devices/platform/soc/3f980000.usb/usb1':
- KERNELS=="usb1"
- SUBSYSTEMS=="usb"
- DRIVERS=="usb"
- ATTRS{quirks}=="0x0"
- ATTRS{maxchild}=="1"
- ATTRS{authorized}=="1"
- ATTRS{busnum}=="1"
- ATTRS{manufacturer}=="Linux 5.4.51-v7+ dwc_otg_hcd"
- ATTRS{devnum}=="1"
- ATTRS{devpath}=="0"
- ATTRS{rx_lanes}=="1"
- ATTRS{bDeviceSubClass}=="00"
- ATTRS{avoid_reset_quirk}=="0"
- ATTRS{bMaxPower}=="0mA"
- ATTRS{bmAttributes}=="e0"
- ATTRS{product}=="DWC OTG Controller"
- ATTRS{tx_lanes}=="1"
- ATTRS{authorized_default}=="1"
- ATTRS{bDeviceClass}=="09"
- ATTRS{configuration}==""
- ATTRS{bConfigurationValue}=="1"
- ATTRS{bNumInterfaces}==" 1"
- ATTRS{removable}=="unknown"
- ATTRS{bcdDevice}=="0504"
- ATTRS{interface_authorized_default}=="1"
- ATTRS{ltm_capable}=="no"
- ATTRS{idVendor}=="1d6b"
- ATTRS{urbnum}=="25"
- ATTRS{speed}=="480"
- ATTRS{bNumConfigurations}=="1"
- ATTRS{bDeviceProtocol}=="01"
- ATTRS{idProduct}=="0002"
- ATTRS{bMaxPacketSize0}=="64"
- ATTRS{version}==" 2.00"
- ATTRS{serial}=="3f980000.usb"
- looking at parent device '/devices/platform/soc/3f980000.usb':
- KERNELS=="3f980000.usb"
- SUBSYSTEMS=="platform"
- DRIVERS=="dwc_otg"
- ATTRS{mode_ch_tim_en}=="Mode Change Ready Timer Enable = 0x0"
- ATTRS{bussuspend}=="Bus Suspend = 0x0"
- ATTRS{busconnected}=="Bus Connected = 0x1"
- ATTRS{guid}=="GUID = 0x2708a000"
- ATTRS{spramdump}=="SPRAM Dump"
- ATTRS{buspower}=="Bus Power = 0x1"
- ATTRS{hptxfsiz}=="HPTXFSIZ = 0x02000406"
- ATTRS{srpcapable}=="SRPCapable = 0x1"
- ATTRS{hsic_connect}=="HSIC Connect = 0x1"
- ATTRS{wr_reg_test}=="Time to write GNPTXFSIZ reg 10000000 times: 690 msecs (69 jiffies)"
- ATTRS{hprt0}=="HPRT0 = 0x00001005"
- ATTRS{hcddump}=="HCD Dump"
- ATTRS{driver_override}=="(null)"
- ATTRS{rd_reg_test}=="Time to read GNPTXFSIZ reg 10000000 times: 1670 msecs (167 jiffies)"
- ATTRS{gnptxfsiz}=="GNPTXFSIZ = 0x01000306"
- ATTRS{regvalue}=="invalid offset"
- ATTRS{hnpcapable}=="HNPCapable = 0x1"
- ATTRS{fr_interval}=="Frame Interval = 0x1d4b"
- ATTRS{gotgctl}=="GOTGCTL = 0x001c0001"
- ATTRS{regdump}=="Register Dump"
- ATTRS{hnp}=="HstNegScs = 0x0"
- ATTRS{gpvndctl}=="GPVNDCTL = 0x00000000"
- ATTRS{enumspeed}=="Device Enumeration Speed = 0x1"
- ATTRS{hcd_frrem}=="HCD Dump Frame Remaining"
- ATTRS{inv_sel_hsic}=="Invert Select HSIC = 0x0"
- ATTRS{ggpio}=="GGPIO = 0x00000000"
- ATTRS{regoffset}=="0xffffffff"
- ATTRS{grxfsiz}=="GRXFSIZ = 0x00000306"
- ATTRS{gsnpsid}=="GSNPSID = 0x4f54280a"
- ATTRS{devspeed}=="Device Speed = 0x0"
- ATTRS{remote_wakeup}=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote Wakeup = 0"
- ATTRS{rem_wakeup_pwrdn}==""
- ATTRS{srp}=="SesReqScs = 0x1"
- ATTRS{gusbcfg}=="GUSBCFG = 0x20001700"
- ATTRS{mode}=="Mode = 0x1"
- looking at parent device '/devices/platform/soc':
- KERNELS=="soc"
- SUBSYSTEMS=="platform"
- DRIVERS==""
- ATTRS{driver_override}=="(null)"
- looking at parent device '/devices/platform':
- KERNELS=="platform"
- SUBSYSTEMS==""
- DRIVERS==""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement