Open 466 opened 8 years ago
Hi
I was looking for the same answers. Apparently if you read the code you'll find that this module is kinda different thing. It is controlled by /sys/kernel/debug/gpio-irq file and sends a signal to a PID with gpio number and value in siginfo. A piece of dirty hack.
Best regards, Denis Shulyaka
Hi there!
I am trying to get your gpio-irq-handler module working on my AR9331 board, sadly i dont get any further atm ... .
I am running openwrt 15.05, on a 3.18.23 kernel, which got patched with: https://github.com/GBert/openwrt-misc/blob/master/gpio-test/src/patches-3.18/739-MIPS-ath79-add-gpio-irq-support.patch [like: https://github.com/GBert/openwrt-misc/blob/master/gpio-test/src/patches-3.14/728-MIPS-ath79-add-gpio-irq.patch]
afterwards i did compile install and load gpio-irq-handler up into my patched kernel. root@openwrt:/# lsmod |grep gpio gpio_button_hotplug 4464 0 gpio_irq_handler 4048 0 i2c_mux_gpio 2384 0
I thought after loading the module, i would be able to use interrupts in openwrt from userspace, but i am stuck here: e.g. (trying with gpio numbers, 0-29) root@openwrt:/# echo "22" > /sys/class/gpio/export root@openwrt:/# echo "in" > /sys/class/gpio/gpio22/direction root@openwrt:/# echo "rising" > /sys/class/gpio//gpio22/edge -ash: can't create /sys/class/gpio/gpio22/edge: Permission denied
As i said the module got loaded, but it remains "Permission denied", do you have any ideas? :)
Thanks in advance! BR 466