Advertisement
Guest User

Untitled

a guest
Jun 12th, 2021
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.54 KB | None | 0 0
  1. udevadm info -a -p $(udevadm info -q path -n /dev/sda1)
  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/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1':
  10. KERNEL=="sda1"
  11. SUBSYSTEM=="block"
  12. DRIVER==""
  13. ATTR{start}=="2048"
  14. ATTR{inflight}==" 0 0"
  15. ATTR{ro}=="0"
  16. ATTR{size}=="3930112"
  17. ATTR{partition}=="1"
  18. ATTR{stat}==" 263 7623 17138 1065 2 0 2 15 0 790 1081 0 0 0 0 0 0"
  19. ATTR{alignment_offset}=="0"
  20. ATTR{discard_alignment}=="0"
  21.  
  22. looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/host0/target0:0:0/0:0:0:0/block/sda':
  23. KERNELS=="sda"
  24. SUBSYSTEMS=="block"
  25. DRIVERS==""
  26. ATTRS{removable}=="1"
  27. ATTRS{ext_range}=="256"
  28. ATTRS{inflight}==" 0 0"
  29. ATTRS{events}=="media_change"
  30. ATTRS{ro}=="0"
  31. ATTRS{range}=="16"
  32. ATTRS{events_async}==""
  33. ATTRS{size}=="3932160"
  34. ATTRS{capability}=="51"
  35. ATTRS{stat}==" 287 7623 18194 1135 2 0 2 15 0 850 1150 0 0 0 0 0 0"
  36. ATTRS{events_poll_msecs}=="-1"
  37. ATTRS{alignment_offset}=="0"
  38. ATTRS{hidden}=="0"
  39. ATTRS{discard_alignment}=="0"
  40.  
  41. looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/host0/target0:0:0/0:0:0:0':
  42. KERNELS=="0:0:0:0"
  43. SUBSYSTEMS=="scsi"
  44. DRIVERS=="sd"
  45. ATTRS{eh_timeout}=="10"
  46. ATTRS{rev}=="8.07"
  47. ATTRS{iorequest_cnt}=="0x1e8"
  48. ATTRS{evt_capacity_change_reported}=="0"
  49. ATTRS{ioerr_cnt}=="0x2"
  50. ATTRS{evt_mode_parameter_change_reported}=="0"
  51. ATTRS{scsi_level}=="5"
  52. ATTRS{queue_depth}=="1"
  53. ATTRS{blacklist}==""
  54. ATTRS{state}=="running"
  55. ATTRS{device_busy}=="0"
  56. ATTRS{queue_type}=="none"
  57. ATTRS{evt_media_change}=="0"
  58. ATTRS{device_blocked}=="0"
  59. ATTRS{evt_inquiry_change_reported}=="0"
  60. ATTRS{inquiry}==""
  61. ATTRS{model}=="Flash Disk "
  62. ATTRS{vendor}=="Generic "
  63. ATTRS{max_sectors}=="240"
  64. ATTRS{iocounterbits}=="32"
  65. ATTRS{evt_soft_threshold_reached}=="0"
  66. ATTRS{timeout}=="30"
  67. ATTRS{iodone_cnt}=="0x1e8"
  68. ATTRS{type}=="0"
  69. ATTRS{evt_lun_change_reported}=="0"
  70.  
  71. looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/host0/target0:0:0':
  72. KERNELS=="target0:0:0"
  73. SUBSYSTEMS=="scsi"
  74. DRIVERS==""
  75.  
  76. looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/host0':
  77. KERNELS=="host0"
  78. SUBSYSTEMS=="scsi"
  79. DRIVERS==""
  80.  
  81. looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0':
  82. KERNELS=="1-1.4:1.0"
  83. SUBSYSTEMS=="usb"
  84. DRIVERS=="usb-storage"
  85. ATTRS{bAlternateSetting}==" 0"
  86. ATTRS{bInterfaceSubClass}=="06"
  87. ATTRS{bInterfaceProtocol}=="50"
  88. ATTRS{bInterfaceNumber}=="00"
  89. ATTRS{bNumEndpoints}=="02"
  90. ATTRS{authorized}=="1"
  91. ATTRS{supports_autosuspend}=="1"
  92. ATTRS{bInterfaceClass}=="08"
  93.  
  94. looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4':
  95. KERNELS=="1-1.4"
  96. SUBSYSTEMS=="usb"
  97. DRIVERS=="usb"
  98. ATTRS{bMaxPacketSize0}=="64"
  99. ATTRS{speed}=="480"
  100. ATTRS{bcdDevice}=="0106"
  101. ATTRS{configuration}==""
  102. ATTRS{bNumInterfaces}==" 1"
  103. ATTRS{maxchild}=="0"
  104. ATTRS{serial}=="A44C0D8F"
  105. ATTRS{avoid_reset_quirk}=="0"
  106. ATTRS{ltm_capable}=="no"
  107. ATTRS{authorized}=="1"
  108. ATTRS{bConfigurationValue}=="1"
  109. ATTRS{removable}=="removable"
  110. ATTRS{bMaxPower}=="200mA"
  111. ATTRS{busnum}=="1"
  112. ATTRS{bDeviceClass}=="00"
  113. ATTRS{bNumConfigurations}=="1"
  114. ATTRS{product}=="Mass Storage"
  115. ATTRS{tx_lanes}=="1"
  116. ATTRS{bmAttributes}=="80"
  117. ATTRS{quirks}=="0x0"
  118. ATTRS{idProduct}=="6387"
  119. ATTRS{devpath}=="1.4"
  120. ATTRS{devnum}=="14"
  121. ATTRS{version}==" 2.00"
  122. ATTRS{bDeviceSubClass}=="00"
  123. ATTRS{manufacturer}=="Generic"
  124. ATTRS{devspec}=="(null)"
  125. ATTRS{bDeviceProtocol}=="00"
  126. ATTRS{idVendor}=="058f"
  127. ATTRS{urbnum}=="2558"
  128. ATTRS{rx_lanes}=="1"
  129.  
  130. looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1':
  131. KERNELS=="1-1"
  132. SUBSYSTEMS=="usb"
  133. DRIVERS=="usb"
  134. ATTRS{quirks}=="0x0"
  135. ATTRS{busnum}=="1"
  136. ATTRS{urbnum}=="724"
  137. ATTRS{tx_lanes}=="1"
  138. ATTRS{bNumConfigurations}=="1"
  139. ATTRS{bNumInterfaces}==" 1"
  140. ATTRS{avoid_reset_quirk}=="0"
  141. ATTRS{authorized}=="1"
  142. ATTRS{removable}=="unknown"
  143. ATTRS{configuration}==""
  144. ATTRS{bmAttributes}=="e0"
  145. ATTRS{devnum}=="2"
  146. ATTRS{bDeviceProtocol}=="02"
  147. ATTRS{bDeviceClass}=="09"
  148. ATTRS{maxchild}=="5"
  149. ATTRS{idProduct}=="9514"
  150. ATTRS{devpath}=="1"
  151. ATTRS{version}==" 2.00"
  152. ATTRS{bMaxPacketSize0}=="64"
  153. ATTRS{bMaxPower}=="2mA"
  154. ATTRS{rx_lanes}=="1"
  155. ATTRS{ltm_capable}=="no"
  156. ATTRS{bDeviceSubClass}=="00"
  157. ATTRS{idVendor}=="0424"
  158. ATTRS{bcdDevice}=="0200"
  159. ATTRS{bConfigurationValue}=="1"
  160. ATTRS{speed}=="480"
  161.  
  162. looking at parent device '//devices/platform/soc/3f980000.usb/usb1':
  163. KERNELS=="usb1"
  164. SUBSYSTEMS=="usb"
  165. DRIVERS=="usb"
  166. ATTRS{ltm_capable}=="no"
  167. ATTRS{busnum}=="1"
  168. ATTRS{interface_authorized_default}=="1"
  169. ATTRS{configuration}==""
  170. ATTRS{avoid_reset_quirk}=="0"
  171. ATTRS{manufacturer}=="Linux 5.10.17-v7+ dwc_otg_hcd"
  172. ATTRS{bConfigurationValue}=="1"
  173. ATTRS{quirks}=="0x0"
  174. ATTRS{speed}=="480"
  175. ATTRS{devpath}=="0"
  176. ATTRS{bDeviceProtocol}=="01"
  177. ATTRS{bmAttributes}=="e0"
  178. ATTRS{idProduct}=="0002"
  179. ATTRS{version}==" 2.00"
  180. ATTRS{removable}=="unknown"
  181. ATTRS{bNumConfigurations}=="1"
  182. ATTRS{urbnum}=="25"
  183. ATTRS{bNumInterfaces}==" 1"
  184. ATTRS{tx_lanes}=="1"
  185. ATTRS{bDeviceClass}=="09"
  186. ATTRS{bcdDevice}=="0510"
  187. ATTRS{product}=="DWC OTG Controller"
  188. ATTRS{rx_lanes}=="1"
  189. ATTRS{bMaxPacketSize0}=="64"
  190. ATTRS{bDeviceSubClass}=="00"
  191. ATTRS{devnum}=="1"
  192. ATTRS{maxchild}=="1"
  193. ATTRS{bMaxPower}=="0mA"
  194. ATTRS{idVendor}=="1d6b"
  195. ATTRS{authorized_default}=="1"
  196. ATTRS{authorized}=="1"
  197. ATTRS{serial}=="3f980000.usb"
  198.  
  199. looking at parent device '//devices/platform/soc/3f980000.usb':
  200. KERNELS=="3f980000.usb"
  201. SUBSYSTEMS=="platform"
  202. DRIVERS=="dwc_otg"
  203. ATTRS{buspower}=="Bus Power = 0x1"
  204. ATTRS{mode_ch_tim_en}=="Mode Change Ready Timer Enable = 0x0"
  205. ATTRS{mode}=="Mode = 0x1"
  206. ATTRS{gnptxfsiz}=="GNPTXFSIZ = 0x01000306"
  207. ATTRS{hprt0}=="HPRT0 = 0x00001005"
  208. ATTRS{spramdump}=="SPRAM Dump"
  209. ATTRS{srpcapable}=="SRPCapable = 0x1"
  210. ATTRS{gsnpsid}=="GSNPSID = 0x4f54280a"
  211. ATTRS{gpvndctl}=="GPVNDCTL = 0x00000000"
  212. ATTRS{remote_wakeup}=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote Wakeup = 0"
  213. ATTRS{enumspeed}=="Device Enumeration Speed = 0x1"
  214. ATTRS{bussuspend}=="Bus Suspend = 0x0"
  215. ATTRS{hcd_frrem}=="HCD Dump Frame Remaining"
  216. ATTRS{driver_override}=="(null)"
  217. ATTRS{regvalue}=="invalid offset"
  218. ATTRS{hsic_connect}=="HSIC Connect = 0x1"
  219. ATTRS{srp}=="SesReqScs = 0x1"
  220. ATTRS{regdump}=="Register Dump"
  221. ATTRS{gusbcfg}=="GUSBCFG = 0x20001700"
  222. ATTRS{rd_reg_test}=="Time to read GNPTXFSIZ reg 10000000 times: 930 msecs (93 jiffies)"
  223. ATTRS{rem_wakeup_pwrdn}==""
  224. ATTRS{wr_reg_test}=="Time to write GNPTXFSIZ reg 10000000 times: 340 msecs (34 jiffies)"
  225. ATTRS{fr_interval}=="Frame Interval = 0x1d4b"
  226. ATTRS{busconnected}=="Bus Connected = 0x1"
  227. ATTRS{gotgctl}=="GOTGCTL = 0x001c0001"
  228. ATTRS{guid}=="GUID = 0x2708a000"
  229. ATTRS{grxfsiz}=="GRXFSIZ = 0x00000306"
  230. ATTRS{hptxfsiz}=="HPTXFSIZ = 0x02000406"
  231. ATTRS{hnp}=="HstNegScs = 0x0"
  232. ATTRS{ggpio}=="GGPIO = 0x00000000"
  233. ATTRS{hcddump}=="HCD Dump"
  234. ATTRS{hnpcapable}=="HNPCapable = 0x1"
  235. ATTRS{devspeed}=="Device Speed = 0x0"
  236. ATTRS{inv_sel_hsic}=="Invert Select HSIC = 0x0"
  237. ATTRS{regoffset}=="0xffffffff"
  238.  
  239. looking at parent device '//devices/platform/soc':
  240. KERNELS=="soc"
  241. SUBSYSTEMS=="platform"
  242. DRIVERS==""
  243. ATTRS{driver_override}=="(null)"
  244.  
  245. looking at parent device '//devices/platform':
  246. KERNELS=="platform"
  247. SUBSYSTEMS==""
  248. DRIVERS==""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement