Skip to content

Commit 6272ef8

Browse files
committed
Enumerate CRU and CRORC cards on modprobe
1 parent 4469d8b commit 6272ef8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patches/linux_uio/99-pda.rules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# on module load; set perms on /sys/...../new_id
2-
SUBSYSTEM=="drivers", ACTION=="add", KERNEL=="uio_pci_dma", RUN+="/bin/chgrp pda /sys/%p/new_id", RUN+="/bin/chmod 0220 /sys/%p/new_id"
1+
# on module load; set perms on /sys/...../new_id; enumerate CRUs & CRORCs
2+
SUBSYSTEM=="drivers", ACTION=="add", KERNEL=="uio_pci_dma", RUN+="/bin/chgrp pda /sys/%p/new_id", RUN+="/bin/chmod 0220 /sys/%p/new_id", RUN+="/bin/sh -c 'echo 1172 e001 > /sys/bus/pci/drivers/uio_pci_dma/new_id'", RUN+="/bin/sh -c 'echo 10dc 0033 > /sys/bus/pci/drivers/uio_pci_dma/new_id'"
33

44
# new device added; set perms on /dev/uioX and PCI config and resources
55
SUBSYSTEM=="uio", ACTION=="add", RUN+="/bin/chgrp pda %N /sys/%p/device/config /sys/%p/device/resource0 /sys/%p/device/resource1", RUN+="/bin/chmod 0664 %N /sys/%p/device/config" RUN+="/bin/chmod 0660 %N /sys/%p/device/resource0 /sys/%p/device/resource1"

0 commit comments

Comments
 (0)