Advertisement
Guest User

Untitled

a guest
Nov 29th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.96 KB | None | 0 0
  1. $ lsusb
  2. Bus 001 Device 009: ID 12d1:4321 Huawei Technologies Co., Ltd.
  3. Bus 001 Device 010: ID 12d1:4321 Huawei Technologies Co., Ltd.
  4. ...
  5.  
  6.  
  7. $ udevadm info --a --name /dev/video0
  8.  
  9. Udevadm info starts with the device specified by the devpath and then
  10. walks up the chain of parent devices. It prints for every device
  11. found, all possible attributes in the udev rules key format.
  12. A rule to match, can be composed by the attributes of the device
  13. and the attributes from one single parent device.
  14.  
  15. looking at device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/video4linux/video0':
  16. KERNEL=="video0"
  17. SUBSYSTEM=="video4linux"
  18. DRIVER==""
  19. ATTR{index}=="0"
  20. ATTR{name}=="UVC Camera: UVC Camera"
  21. ATTR{dev_debug}=="0"
  22.  
  23. looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0':
  24. KERNELS=="1-1.5:1.0"
  25. SUBSYSTEMS=="usb"
  26. DRIVERS=="uvcvideo"
  27. ATTRS{bInterfaceNumber}=="00"
  28. ATTRS{iad_bFirstInterface}=="00"
  29. ATTRS{supports_autosuspend}=="1"
  30. ATTRS{iad_bFunctionProtocol}=="00"
  31. ATTRS{iad_bFunctionSubClass}=="03"
  32. ATTRS{authorized}=="1"
  33. ATTRS{interface}=="UVC Camera"
  34. ATTRS{bInterfaceClass}=="0e"
  35. ATTRS{bAlternateSetting}==" 0"
  36. ATTRS{iad_bInterfaceCount}=="02"
  37. ATTRS{iad_bFunctionClass}=="0e"
  38. ATTRS{bInterfaceProtocol}=="00"
  39. ATTRS{bInterfaceSubClass}=="01"
  40. ATTRS{bNumEndpoints}=="01"
  41.  
  42. looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5':
  43. KERNELS=="1-1.5"
  44. SUBSYSTEMS=="usb"
  45. DRIVERS=="usb"
  46. ATTRS{idVendor}=="12d1"
  47. ATTRS{authorized}=="1"
  48. ATTRS{busnum}=="1"
  49. ATTRS{quirks}=="0x0"
  50. ATTRS{bmAttributes}=="c0"
  51. ATTRS{bConfigurationValue}=="1"
  52. ATTRS{bNumInterfaces}==" 4"
  53. ATTRS{devpath}=="1.5"
  54. ATTRS{ltm_capable}=="no"
  55. ATTRS{bMaxPower}=="2mA"
  56. ATTRS{speed}=="480"
  57. ATTRS{serial}=="20200416"
  58. ATTRS{bNumConfigurations}=="1"
  59. ATTRS{bDeviceClass}=="ef"
  60. ATTRS{removable}=="removable"
  61. ATTRS{tx_lanes}=="1"
  62. ATTRS{avoid_reset_quirk}=="0"
  63. ATTRS{urbnum}=="4783"
  64. ATTRS{idProduct}=="4321"
  65. ATTRS{bMaxPacketSize0}=="64"
  66. ATTRS{devspec}=="(null)"
  67. ATTRS{product}=="UVC Camera"
  68. ATTRS{version}==" 2.10"
  69. ATTRS{devnum}=="9"
  70. ATTRS{bcdDevice}=="0409"
  71. ATTRS{bDeviceProtocol}=="01"
  72. ATTRS{rx_lanes}=="1"
  73. ATTRS{maxchild}=="0"
  74. ATTRS{configuration}=="Config 1"
  75. ATTRS{manufacturer}=="Ruision"
  76. ATTRS{bDeviceSubClass}=="02"
  77.  
  78. looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1':
  79. KERNELS=="1-1"
  80. SUBSYSTEMS=="usb"
  81. DRIVERS=="usb"
  82. ATTRS{quirks}=="0x0"
  83. ATTRS{version}==" 2.00"
  84. ATTRS{idProduct}=="9514"
  85. ATTRS{speed}=="480"
  86. ATTRS{busnum}=="1"
  87. ATTRS{urbnum}=="126"
  88. ATTRS{removable}=="unknown"
  89. ATTRS{rx_lanes}=="1"
  90. ATTRS{bcdDevice}=="0200"
  91. ATTRS{devpath}=="1"
  92. ATTRS{bNumConfigurations}=="1"
  93. ATTRS{tx_lanes}=="1"
  94. ATTRS{bDeviceClass}=="09"
  95. ATTRS{configuration}==""
  96. ATTRS{bmAttributes}=="e0"
  97. ATTRS{maxchild}=="5"
  98. ATTRS{bConfigurationValue}=="1"
  99. ATTRS{devnum}=="2"
  100. ATTRS{bDeviceSubClass}=="00"
  101. ATTRS{bMaxPacketSize0}=="64"
  102. ATTRS{idVendor}=="0424"
  103. ATTRS{avoid_reset_quirk}=="0"
  104. ATTRS{authorized}=="1"
  105. ATTRS{bNumInterfaces}==" 1"
  106. ATTRS{bDeviceProtocol}=="02"
  107. ATTRS{ltm_capable}=="no"
  108. ATTRS{bMaxPower}=="2mA"
  109.  
  110. looking at parent device '/devices/platform/soc/3f980000.usb/usb1':
  111. KERNELS=="usb1"
  112. SUBSYSTEMS=="usb"
  113. DRIVERS=="usb"
  114. ATTRS{version}==" 2.00"
  115. ATTRS{avoid_reset_quirk}=="0"
  116. ATTRS{bMaxPower}=="0mA"
  117. ATTRS{bNumConfigurations}=="1"
  118. ATTRS{tx_lanes}=="1"
  119. ATTRS{authorized}=="1"
  120. ATTRS{bDeviceClass}=="09"
  121. ATTRS{idVendor}=="1d6b"
  122. ATTRS{configuration}==""
  123. ATTRS{busnum}=="1"
  124. ATTRS{authorized_default}=="1"
  125. ATTRS{bmAttributes}=="e0"
  126. ATTRS{speed}=="480"
  127. ATTRS{rx_lanes}=="1"
  128. ATTRS{removable}=="unknown"
  129. ATTRS{bcdDevice}=="0504"
  130. ATTRS{serial}=="3f980000.usb"
  131. ATTRS{bNumInterfaces}==" 1"
  132. ATTRS{bDeviceSubClass}=="00"
  133. ATTRS{urbnum}=="25"
  134. ATTRS{bMaxPacketSize0}=="64"
  135. ATTRS{bConfigurationValue}=="1"
  136. ATTRS{product}=="DWC OTG Controller"
  137. ATTRS{quirks}=="0x0"
  138. ATTRS{devnum}=="1"
  139. ATTRS{manufacturer}=="Linux 5.4.51-v7+ dwc_otg_hcd"
  140. ATTRS{ltm_capable}=="no"
  141. ATTRS{bDeviceProtocol}=="01"
  142. ATTRS{devpath}=="0"
  143. ATTRS{idProduct}=="0002"
  144. ATTRS{interface_authorized_default}=="1"
  145. ATTRS{maxchild}=="1"
  146.  
  147. looking at parent device '/devices/platform/soc/3f980000.usb':
  148. KERNELS=="3f980000.usb"
  149. SUBSYSTEMS=="platform"
  150. DRIVERS=="dwc_otg"
  151. ATTRS{fr_interval}=="Frame Interval = 0x1d4b"
  152. ATTRS{busconnected}=="Bus Connected = 0x1"
  153. ATTRS{enumspeed}=="Device Enumeration Speed = 0x1"
  154. ATTRS{regoffset}=="0xffffffff"
  155. ATTRS{hnp}=="HstNegScs = 0x0"
  156. ATTRS{hcddump}=="HCD Dump"
  157. ATTRS{guid}=="GUID = 0x2708a000"
  158. ATTRS{gnptxfsiz}=="GNPTXFSIZ = 0x01000306"
  159. ATTRS{gsnpsid}=="GSNPSID = 0x4f54280a"
  160. ATTRS{spramdump}=="SPRAM Dump"
  161. ATTRS{devspeed}=="Device Speed = 0x0"
  162. ATTRS{regvalue}=="invalid offset"
  163. ATTRS{gusbcfg}=="GUSBCFG = 0x20001700"
  164. ATTRS{hsic_connect}=="HSIC Connect = 0x1"
  165. ATTRS{driver_override}=="(null)"
  166. ATTRS{bussuspend}=="Bus Suspend = 0x0"
  167. ATTRS{hptxfsiz}=="HPTXFSIZ = 0x02000406"
  168. ATTRS{hcd_frrem}=="HCD Dump Frame Remaining"
  169. ATTRS{rem_wakeup_pwrdn}==""
  170. ATTRS{srpcapable}=="SRPCapable = 0x1"
  171. ATTRS{gpvndctl}=="GPVNDCTL = 0x00000000"
  172. ATTRS{hprt0}=="HPRT0 = 0x00001005"
  173. ATTRS{inv_sel_hsic}=="Invert Select HSIC = 0x0"
  174. ATTRS{remote_wakeup}=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote Wakeup = 0"
  175. ATTRS{mode}=="Mode = 0x1"
  176. ATTRS{gotgctl}=="GOTGCTL = 0x001c0001"
  177. ATTRS{regdump}=="Register Dump"
  178. ATTRS{wr_reg_test}=="Time to write GNPTXFSIZ reg 10000000 times: 700 msecs (70 jiffies)"
  179. ATTRS{hnpcapable}=="HNPCapable = 0x1"
  180. ATTRS{rd_reg_test}=="Time to read GNPTXFSIZ reg 10000000 times: 1650 msecs (165 jiffies)"
  181. ATTRS{ggpio}=="GGPIO = 0x00000000"
  182. ATTRS{grxfsiz}=="GRXFSIZ = 0x00000306"
  183. ATTRS{buspower}=="Bus Power = 0x1"
  184. ATTRS{srp}=="SesReqScs = 0x1"
  185. ATTRS{mode_ch_tim_en}=="Mode Change Ready Timer Enable = 0x0"
  186.  
  187. looking at parent device '/devices/platform/soc':
  188. KERNELS=="soc"
  189. SUBSYSTEMS=="platform"
  190. DRIVERS==""
  191. ATTRS{driver_override}=="(null)"
  192.  
  193. looking at parent device '/devices/platform':
  194. KERNELS=="platform"
  195. SUBSYSTEMS==""
  196. DRIVERS==""
  197.  
  198.  
  199. ######################
  200.  
  201. $ udevadm info --a --name /dev/video2
  202.  
  203. Udevadm info starts with the device specified by the devpath and then
  204. walks up the chain of parent devices. It prints for every device
  205. found, all possible attributes in the udev rules key format.
  206. A rule to match, can be composed by the attributes of the device
  207. and the attributes from one single parent device.
  208.  
  209. looking at device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/video4linux/video2':
  210. KERNEL=="video2"
  211. SUBSYSTEM=="video4linux"
  212. DRIVER==""
  213. ATTR{name}=="UVC Camera: UVC Camera"
  214. ATTR{index}=="0"
  215. ATTR{dev_debug}=="0"
  216.  
  217. looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0':
  218. KERNELS=="1-1.4:1.0"
  219. SUBSYSTEMS=="usb"
  220. DRIVERS=="uvcvideo"
  221. ATTRS{iad_bFunctionClass}=="0e"
  222. ATTRS{iad_bInterfaceCount}=="02"
  223. ATTRS{bInterfaceProtocol}=="00"
  224. ATTRS{authorized}=="1"
  225. ATTRS{iad_bFunctionSubClass}=="03"
  226. ATTRS{supports_autosuspend}=="1"
  227. ATTRS{bAlternateSetting}==" 0"
  228. ATTRS{interface}=="UVC Camera"
  229. ATTRS{iad_bFunctionProtocol}=="00"
  230. ATTRS{bNumEndpoints}=="01"
  231. ATTRS{bInterfaceNumber}=="00"
  232. ATTRS{iad_bFirstInterface}=="00"
  233. ATTRS{bInterfaceClass}=="0e"
  234. ATTRS{bInterfaceSubClass}=="01"
  235.  
  236. looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4':
  237. KERNELS=="1-1.4"
  238. SUBSYSTEMS=="usb"
  239. DRIVERS=="usb"
  240. ATTRS{devspec}=="(null)"
  241. ATTRS{bmAttributes}=="c0"
  242. ATTRS{product}=="UVC Camera"
  243. ATTRS{devpath}=="1.4"
  244. ATTRS{idProduct}=="4321"
  245. ATTRS{version}==" 2.10"
  246. ATTRS{bDeviceProtocol}=="01"
  247. ATTRS{bMaxPacketSize0}=="64"
  248. ATTRS{bDeviceSubClass}=="02"
  249. ATTRS{removable}=="removable"
  250. ATTRS{bNumInterfaces}==" 4"
  251. ATTRS{maxchild}=="0"
  252. ATTRS{avoid_reset_quirk}=="0"
  253. ATTRS{ltm_capable}=="no"
  254. ATTRS{serial}=="20200416"
  255. ATTRS{speed}=="480"
  256. ATTRS{tx_lanes}=="1"
  257. ATTRS{urbnum}=="13281"
  258. ATTRS{bDeviceClass}=="ef"
  259. ATTRS{quirks}=="0x0"
  260. ATTRS{bConfigurationValue}=="1"
  261. ATTRS{idVendor}=="12d1"
  262. ATTRS{manufacturer}=="Ruision"
  263. ATTRS{devnum}=="10"
  264. ATTRS{busnum}=="1"
  265. ATTRS{bNumConfigurations}=="1"
  266. ATTRS{configuration}=="Config 1"
  267. ATTRS{bMaxPower}=="2mA"
  268. ATTRS{rx_lanes}=="1"
  269. ATTRS{authorized}=="1"
  270. ATTRS{bcdDevice}=="0409"
  271.  
  272. looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1':
  273. KERNELS=="1-1"
  274. SUBSYSTEMS=="usb"
  275. DRIVERS=="usb"
  276. ATTRS{configuration}==""
  277. ATTRS{bDeviceProtocol}=="02"
  278. ATTRS{busnum}=="1"
  279. ATTRS{rx_lanes}=="1"
  280. ATTRS{maxchild}=="5"
  281. ATTRS{bMaxPower}=="2mA"
  282. ATTRS{authorized}=="1"
  283. ATTRS{idProduct}=="9514"
  284. ATTRS{tx_lanes}=="1"
  285. ATTRS{bDeviceSubClass}=="00"
  286. ATTRS{devpath}=="1"
  287. ATTRS{ltm_capable}=="no"
  288. ATTRS{bDeviceClass}=="09"
  289. ATTRS{version}==" 2.00"
  290. ATTRS{bConfigurationValue}=="1"
  291. ATTRS{urbnum}=="126"
  292. ATTRS{bmAttributes}=="e0"
  293. ATTRS{quirks}=="0x0"
  294. ATTRS{bcdDevice}=="0200"
  295. ATTRS{bNumConfigurations}=="1"
  296. ATTRS{bNumInterfaces}==" 1"
  297. ATTRS{devnum}=="2"
  298. ATTRS{removable}=="unknown"
  299. ATTRS{idVendor}=="0424"
  300. ATTRS{bMaxPacketSize0}=="64"
  301. ATTRS{speed}=="480"
  302. ATTRS{avoid_reset_quirk}=="0"
  303.  
  304. looking at parent device '/devices/platform/soc/3f980000.usb/usb1':
  305. KERNELS=="usb1"
  306. SUBSYSTEMS=="usb"
  307. DRIVERS=="usb"
  308. ATTRS{quirks}=="0x0"
  309. ATTRS{maxchild}=="1"
  310. ATTRS{authorized}=="1"
  311. ATTRS{busnum}=="1"
  312. ATTRS{manufacturer}=="Linux 5.4.51-v7+ dwc_otg_hcd"
  313. ATTRS{devnum}=="1"
  314. ATTRS{devpath}=="0"
  315. ATTRS{rx_lanes}=="1"
  316. ATTRS{bDeviceSubClass}=="00"
  317. ATTRS{avoid_reset_quirk}=="0"
  318. ATTRS{bMaxPower}=="0mA"
  319. ATTRS{bmAttributes}=="e0"
  320. ATTRS{product}=="DWC OTG Controller"
  321. ATTRS{tx_lanes}=="1"
  322. ATTRS{authorized_default}=="1"
  323. ATTRS{bDeviceClass}=="09"
  324. ATTRS{configuration}==""
  325. ATTRS{bConfigurationValue}=="1"
  326. ATTRS{bNumInterfaces}==" 1"
  327. ATTRS{removable}=="unknown"
  328. ATTRS{bcdDevice}=="0504"
  329. ATTRS{interface_authorized_default}=="1"
  330. ATTRS{ltm_capable}=="no"
  331. ATTRS{idVendor}=="1d6b"
  332. ATTRS{urbnum}=="25"
  333. ATTRS{speed}=="480"
  334. ATTRS{bNumConfigurations}=="1"
  335. ATTRS{bDeviceProtocol}=="01"
  336. ATTRS{idProduct}=="0002"
  337. ATTRS{bMaxPacketSize0}=="64"
  338. ATTRS{version}==" 2.00"
  339. ATTRS{serial}=="3f980000.usb"
  340.  
  341. looking at parent device '/devices/platform/soc/3f980000.usb':
  342. KERNELS=="3f980000.usb"
  343. SUBSYSTEMS=="platform"
  344. DRIVERS=="dwc_otg"
  345. ATTRS{mode_ch_tim_en}=="Mode Change Ready Timer Enable = 0x0"
  346. ATTRS{bussuspend}=="Bus Suspend = 0x0"
  347. ATTRS{busconnected}=="Bus Connected = 0x1"
  348. ATTRS{guid}=="GUID = 0x2708a000"
  349. ATTRS{spramdump}=="SPRAM Dump"
  350. ATTRS{buspower}=="Bus Power = 0x1"
  351. ATTRS{hptxfsiz}=="HPTXFSIZ = 0x02000406"
  352. ATTRS{srpcapable}=="SRPCapable = 0x1"
  353. ATTRS{hsic_connect}=="HSIC Connect = 0x1"
  354. ATTRS{wr_reg_test}=="Time to write GNPTXFSIZ reg 10000000 times: 690 msecs (69 jiffies)"
  355. ATTRS{hprt0}=="HPRT0 = 0x00001005"
  356. ATTRS{hcddump}=="HCD Dump"
  357. ATTRS{driver_override}=="(null)"
  358. ATTRS{rd_reg_test}=="Time to read GNPTXFSIZ reg 10000000 times: 1670 msecs (167 jiffies)"
  359. ATTRS{gnptxfsiz}=="GNPTXFSIZ = 0x01000306"
  360. ATTRS{regvalue}=="invalid offset"
  361. ATTRS{hnpcapable}=="HNPCapable = 0x1"
  362. ATTRS{fr_interval}=="Frame Interval = 0x1d4b"
  363. ATTRS{gotgctl}=="GOTGCTL = 0x001c0001"
  364. ATTRS{regdump}=="Register Dump"
  365. ATTRS{hnp}=="HstNegScs = 0x0"
  366. ATTRS{gpvndctl}=="GPVNDCTL = 0x00000000"
  367. ATTRS{enumspeed}=="Device Enumeration Speed = 0x1"
  368. ATTRS{hcd_frrem}=="HCD Dump Frame Remaining"
  369. ATTRS{inv_sel_hsic}=="Invert Select HSIC = 0x0"
  370. ATTRS{ggpio}=="GGPIO = 0x00000000"
  371. ATTRS{regoffset}=="0xffffffff"
  372. ATTRS{grxfsiz}=="GRXFSIZ = 0x00000306"
  373. ATTRS{gsnpsid}=="GSNPSID = 0x4f54280a"
  374. ATTRS{devspeed}=="Device Speed = 0x0"
  375. ATTRS{remote_wakeup}=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote Wakeup = 0"
  376. ATTRS{rem_wakeup_pwrdn}==""
  377. ATTRS{srp}=="SesReqScs = 0x1"
  378. ATTRS{gusbcfg}=="GUSBCFG = 0x20001700"
  379. ATTRS{mode}=="Mode = 0x1"
  380.  
  381. looking at parent device '/devices/platform/soc':
  382. KERNELS=="soc"
  383. SUBSYSTEMS=="platform"
  384. DRIVERS==""
  385. ATTRS{driver_override}=="(null)"
  386.  
  387. looking at parent device '/devices/platform':
  388. KERNELS=="platform"
  389. SUBSYSTEMS==""
  390. DRIVERS==""
  391.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement