Advertisement
mesmariusz

Untitled

Sep 19th, 2015
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.67 KB | None | 0 0
  1. root@raspberrypi:~# udevadm info --name=/dev/video1 --attribute-walk
  2.  
  3. Udevadm info starts with the device specified by the devpath and then
  4. walks up the chain of parent devices. It prints for every device
  5. found, all possible attributes in the udev rules key format.
  6. A rule to match, can be composed by the attributes of the device
  7. and the attributes from one single parent device.
  8.  
  9. looking at device '/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.1/1-1.2.1.1:1.0/video4linux/video1':
  10. KERNEL=="video1"
  11. SUBSYSTEM=="video4linux"
  12. DRIVER==""
  13. ATTR{name}=="gspca main driver"
  14. ATTR{debug}=="0"
  15. ATTR{index}=="0"
  16.  
  17. looking at parent device '/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.1/1-1.2.1.1:1.0':
  18. KERNELS=="1-1.2.1.1:1.0"
  19. SUBSYSTEMS=="usb"
  20. DRIVERS=="ov519"
  21. ATTRS{bInterfaceClass}=="ff"
  22. ATTRS{bInterfaceSubClass}=="00"
  23. ATTRS{bInterfaceProtocol}=="00"
  24. ATTRS{bNumEndpoints}=="01"
  25. ATTRS{supports_autosuspend}=="0"
  26. ATTRS{bAlternateSetting}==" 3"
  27. ATTRS{bInterfaceNumber}=="00"
  28.  
  29. looking at parent device '/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.1':
  30. KERNELS=="1-1.2.1.1"
  31. SUBSYSTEMS=="usb"
  32. DRIVERS=="usb"
  33. ATTRS{bDeviceSubClass}=="00"
  34. ATTRS{bDeviceProtocol}=="00"
  35. ATTRS{devpath}=="1.2.1.1"
  36. ATTRS{idVendor}=="041e"
  37. ATTRS{speed}=="12"
  38. ATTRS{bNumInterfaces}==" 1"
  39. ATTRS{bConfigurationValue}=="1"
  40. ATTRS{bMaxPacketSize0}=="8"
  41. ATTRS{busnum}=="1"
  42. ATTRS{devnum}=="77"
  43. ATTRS{configuration}==""
  44. ATTRS{bMaxPower}=="100mA"
  45. ATTRS{authorized}=="1"
  46. ATTRS{bmAttributes}=="80"
  47. ATTRS{bNumConfigurations}=="1"
  48. ATTRS{maxchild}=="0"
  49. ATTRS{bcdDevice}=="0100"
  50. ATTRS{avoid_reset_quirk}=="0"
  51. ATTRS{quirks}=="0x0"
  52. ATTRS{version}==" 1.10"
  53. ATTRS{urbnum}=="2005"
  54. ATTRS{ltm_capable}=="no"
  55. ATTRS{manufacturer}==" "
  56. ATTRS{removable}=="unknown"
  57. ATTRS{idProduct}=="4052"
  58. ATTRS{bDeviceClass}=="00"
  59. ATTRS{product}=="Creative Live! Cam Vista IM"
  60.  
  61. looking at parent device '/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.1':
  62. KERNELS=="1-1.2.1"
  63. SUBSYSTEMS=="usb"
  64. DRIVERS=="usb"
  65. ATTRS{bDeviceSubClass}=="00"
  66. ATTRS{bDeviceProtocol}=="01"
  67. ATTRS{devpath}=="1.2.1"
  68. ATTRS{idVendor}=="1a40"
  69. ATTRS{speed}=="480"
  70. ATTRS{bNumInterfaces}==" 1"
  71. ATTRS{bConfigurationValue}=="1"
  72. ATTRS{bMaxPacketSize0}=="64"
  73. ATTRS{busnum}=="1"
  74. ATTRS{devnum}=="38"
  75. ATTRS{configuration}==""
  76. ATTRS{bMaxPower}=="100mA"
  77. ATTRS{authorized}=="1"
  78. ATTRS{bmAttributes}=="e0"
  79. ATTRS{bNumConfigurations}=="1"
  80. ATTRS{maxchild}=="4"
  81. ATTRS{bcdDevice}=="0111"
  82. ATTRS{avoid_reset_quirk}=="0"
  83. ATTRS{quirks}=="0x0"
  84. ATTRS{version}==" 2.00"
  85. ATTRS{urbnum}=="590"
  86. ATTRS{ltm_capable}=="no"
  87. ATTRS{removable}=="unknown"
  88. ATTRS{idProduct}=="0101"
  89. ATTRS{bDeviceClass}=="09"
  90. ATTRS{product}=="USB 2.0 Hub"
  91.  
  92. looking at parent device '/devices/platform/bcm2708_usb/usb1/1-1/1-1.2':
  93. KERNELS=="1-1.2"
  94. SUBSYSTEMS=="usb"
  95. DRIVERS=="usb"
  96. ATTRS{bDeviceSubClass}=="00"
  97. ATTRS{bDeviceProtocol}=="01"
  98. ATTRS{devpath}=="1.2"
  99. ATTRS{idVendor}=="1a40"
  100. ATTRS{speed}=="480"
  101. ATTRS{bNumInterfaces}==" 1"
  102. ATTRS{bConfigurationValue}=="1"
  103. ATTRS{bMaxPacketSize0}=="64"
  104. ATTRS{busnum}=="1"
  105. ATTRS{devnum}=="37"
  106. ATTRS{configuration}==""
  107. ATTRS{bMaxPower}=="100mA"
  108. ATTRS{authorized}=="1"
  109. ATTRS{bmAttributes}=="e0"
  110. ATTRS{bNumConfigurations}=="1"
  111. ATTRS{maxchild}=="4"
  112. ATTRS{bcdDevice}=="0111"
  113. ATTRS{avoid_reset_quirk}=="0"
  114. ATTRS{quirks}=="0x0"
  115. ATTRS{version}==" 2.00"
  116. ATTRS{urbnum}=="38"
  117. ATTRS{ltm_capable}=="no"
  118. ATTRS{removable}=="removable"
  119. ATTRS{idProduct}=="0101"
  120. ATTRS{bDeviceClass}=="09"
  121. ATTRS{product}=="USB 2.0 Hub"
  122.  
  123. looking at parent device '/devices/platform/bcm2708_usb/usb1/1-1':
  124. KERNELS=="1-1"
  125. SUBSYSTEMS=="usb"
  126. DRIVERS=="usb"
  127. ATTRS{bDeviceSubClass}=="00"
  128. ATTRS{bDeviceProtocol}=="02"
  129. ATTRS{devpath}=="1"
  130. ATTRS{idVendor}=="0424"
  131. ATTRS{speed}=="480"
  132. ATTRS{bNumInterfaces}==" 1"
  133. ATTRS{bConfigurationValue}=="1"
  134. ATTRS{bMaxPacketSize0}=="64"
  135. ATTRS{busnum}=="1"
  136. ATTRS{devnum}=="2"
  137. ATTRS{configuration}==""
  138. ATTRS{bMaxPower}=="2mA"
  139. ATTRS{authorized}=="1"
  140. ATTRS{bmAttributes}=="e0"
  141. ATTRS{bNumConfigurations}=="1"
  142. ATTRS{maxchild}=="3"
  143. ATTRS{bcdDevice}=="0200"
  144. ATTRS{avoid_reset_quirk}=="0"
  145. ATTRS{quirks}=="0x0"
  146. ATTRS{version}==" 2.00"
  147. ATTRS{urbnum}=="49"
  148. ATTRS{ltm_capable}=="no"
  149. ATTRS{removable}=="unknown"
  150. ATTRS{idProduct}=="9512"
  151. ATTRS{bDeviceClass}=="09"
  152.  
  153. looking at parent device '/devices/platform/bcm2708_usb/usb1':
  154. KERNELS=="usb1"
  155. SUBSYSTEMS=="usb"
  156. DRIVERS=="usb"
  157. ATTRS{bDeviceSubClass}=="00"
  158. ATTRS{bDeviceProtocol}=="01"
  159. ATTRS{devpath}=="0"
  160. ATTRS{idVendor}=="1d6b"
  161. ATTRS{speed}=="480"
  162. ATTRS{bNumInterfaces}==" 1"
  163. ATTRS{bConfigurationValue}=="1"
  164. ATTRS{bMaxPacketSize0}=="64"
  165. ATTRS{authorized_default}=="1"
  166. ATTRS{busnum}=="1"
  167. ATTRS{devnum}=="1"
  168. ATTRS{configuration}==""
  169. ATTRS{bMaxPower}=="0mA"
  170. ATTRS{authorized}=="1"
  171. ATTRS{bmAttributes}=="e0"
  172. ATTRS{bNumConfigurations}=="1"
  173. ATTRS{maxchild}=="1"
  174. ATTRS{bcdDevice}=="0318"
  175. ATTRS{avoid_reset_quirk}=="0"
  176. ATTRS{quirks}=="0x0"
  177. ATTRS{serial}=="bcm2708_usb"
  178. ATTRS{version}==" 2.00"
  179. ATTRS{urbnum}=="26"
  180. ATTRS{ltm_capable}=="no"
  181. ATTRS{manufacturer}=="Linux 3.18.11+ dwc_otg_hcd"
  182. ATTRS{removable}=="unknown"
  183. ATTRS{idProduct}=="0002"
  184. ATTRS{bDeviceClass}=="09"
  185. ATTRS{product}=="DWC OTG Controller"
  186.  
  187. looking at parent device '/devices/platform/bcm2708_usb':
  188. KERNELS=="bcm2708_usb"
  189. SUBSYSTEMS=="platform"
  190. DRIVERS=="dwc_otg"
  191. ATTRS{hnp}=="HstNegScs = 0x0"
  192. ATTRS{srp}=="SesReqScs = 0x1"
  193. ATTRS{regvalue}=="invalid offset"
  194. ATTRS{hsic_connect}=="HSIC Connect = 0x1"
  195. ATTRS{guid}=="GUID = 0x2708a000"
  196. ATTRS{mode}=="Mode = 0x1"
  197. ATTRS{srpcapable}=="SRPCapable = 0x1"
  198. ATTRS{regdump}=="Register Dump"
  199. ATTRS{gpvndctl}=="GPVNDCTL = 0x00000000"
  200. ATTRS{ggpio}=="GGPIO = 0x00000000"
  201. ATTRS{hprt0}=="HPRT0 = 0x00001005"
  202. ATTRS{wr_reg_test}=="Time to write GNPTXFSIZ reg 10000000 times: 2410 msecs (241 jiffies)"
  203. ATTRS{driver_override}=="(null)"
  204. ATTRS{hcd_frrem}=="HCD Dump Frame Remaining"
  205. ATTRS{mode_ch_tim_en}=="Mode Change Ready Timer Enable = 0x0"
  206. ATTRS{gnptxfsiz}=="GNPTXFSIZ = 0x01000306"
  207. ATTRS{remote_wakeup}=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote Wakeup = 0"
  208. ATTRS{busconnected}=="Bus Connected = 0x1"
  209. ATTRS{hcddump}=="HCD Dump"
  210. ATTRS{gotgctl}=="GOTGCTL = 0x001c0001"
  211. ATTRS{spramdump}=="SPRAM Dump"
  212. ATTRS{grxfsiz}=="GRXFSIZ = 0x00000306"
  213. ATTRS{gsnpsid}=="GSNPSID = 0x4f54280a"
  214. ATTRS{gusbcfg}=="GUSBCFG = 0x00001700"
  215. ATTRS{hptxfsiz}=="HPTXFSIZ = 0x02000406"
  216. ATTRS{devspeed}=="Device Speed = 0x0"
  217. ATTRS{fr_interval}=="Frame Interval = 0x1d4c"
  218. ATTRS{rem_wakeup_pwrdn}==""
  219. ATTRS{bussuspend}=="Bus Suspend = 0x0"
  220. ATTRS{buspower}=="Bus Power = 0x1"
  221. ATTRS{hnpcapable}=="HNPCapable = 0x1"
  222. ATTRS{rd_reg_test}=="Time to read GNPTXFSIZ reg 10000000 times: 4640 msecs (464 jiffies)"
  223. ATTRS{enumspeed}=="Device Enumeration Speed = 0x1"
  224. ATTRS{inv_sel_hsic}=="Invert Select HSIC = 0x0"
  225. ATTRS{regoffset}=="0xffffffff"
  226.  
  227. looking at parent device '/devices/platform':
  228. KERNELS=="platform"
  229. SUBSYSTEMS==""
  230. DRIVERS==""
  231.  
  232. root@raspberrypi:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement