No udev events when exporting / unexporting pwm devices on BeagleBone Blue

Đang mở
#124 15 bình luận 0 reaction 1 người được giao Xem trên GitHub

@pdp7 đang làm issue này rồi.

Từ ngày 10/6/2020.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

requires testing

On kernel 4.4.49-ti-r89 of the default beaglebone blue image, when exporting and un-exporting there is no udev event fired.

root@beaglebone:/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip2# echo 0 > unexport
root@beaglebone:/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip2# echo 0 > export

No udev events from udevadm monitor

With the gpio lines you get a udev event for export/uneport:

root@beaglebone:/sys/class/gpio# echo 10 > unexport
root@beaglebone:/sys/class/gpio# echo 10 > export  

generates:

debian@beaglebone:~$ udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[449.118706] remove   /devices/platform/ocp/44e07000.gpio/gpio/gpio10 (gpio)
UDEV  [449.193955] remove   /devices/platform/ocp/44e07000.gpio/gpio/gpio10 (gpio)
KERNEL[454.849166] add      /devices/platform/ocp/44e07000.gpio/gpio/gpio10 (gpio)
UDEV  [456.275388] add      /devices/platform/ocp/44e07000.gpio/gpio/gpio10 (gpio)

With no udev rules to firing it makes it impossible to have a rule to set the permissions. This is compounded by the having to unexport the export one channel to set the frequency of the pwm chip.

Ngôn ngữ chính
C
Star
814
Fork
583
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của beagleboard/linux

Tất cả issue của beagleboard/linux

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.