Timer Interrupts on the Omega2
-
Hi All,
I was looking to see if anyone has experimented with timer interrupts and/or GPIO interrupts on the Omega2? I've seen some posts getting GPIO interrupts working on the Omega1 by @Kit-Bishop, but I was having trouble verifying that the kernel module for GPIO interrupts was available for the Omega2. It doesn't seem that via opkg the module is available. Additionally, I was wondering if access to the timers on the MT7688 was possible or if anyone has even tried it.
-
@Christian-Freitas The GPIO interrupts should be capable of being made workable for the Omega2 in the same way as I did for the Omega1
This will however require that I make some minor changes to the source code and rebuild for the Omega2 since they use different CPUs.
Unfortunately, I have not had time to do this yet for a few reasons:- Just started a new job and its taking up a lot of my time
- Haven't had my Omega2's for very long and haven't had much time to play with them
- Am currently a little concerned about some issues relating to the current Omega2 images - kind of to be expected and went through similar experience over 1 year ago with the Omega1 - would like this to settle down a bit before proceeding
- Have actually been spending more time with my Raspberry Pi 3 and Raspberry Pi Zero
However, as and when I have chance/time to I will be updating my GPIO code for the Omega2 and will post it here
-
@Kit-Bishop
Have you made your code open source ? Maybe someone else is able to make the changes necessary to make it work on the omega2. I am willing to try even if my knowledge in this field is quite limited.
Was it necessary to rebuild the full system to get interrupts on the Omega 1 ?
-
@Pierre-Rossinès I just tried and succeeded to get gpio-irq and gpio-test working on the Omega2
gpio-test works as-is, while the kernel module kmod-gpio-irq needs a few changes to remove (unneeded) AR9331 platform dependencies.
I will prepare a pull request for kmod-gpio-irq on github, so hopefully @onion will include it in next FW build and those who build their own LEDE images can just use it.
-
@luz Nice !
Let's hope they read this thread soon.
-
Here's the pull request: https://github.com/OnionIoT/gpio-irq/pull/1 - @administrators I assume you get notified automatically when a PR is created on github…
BTW: could you please also enable the "devmem" busybox command (
CONFIG_BUSYBOX_CONFIG_DEVMEM=yes
) for the next FW? That would help us low-level HW hackers a lot!
-
@Pierre-Rossinès said in Timer Interrupts on the Omega2:
@Kit-Bishop
Have you made your code open source ? Maybe someone else is able to make the changes necessary to make it work on the omega2. I am willing to try even if my knowledge in this field is quite limited.
Was it necessary to rebuild the full system to get interrupts on the Omega 1 ?The code is freely available and reasonably well documented at https://github.com/KitBishop/Omega-GPIO-I2C-Arduino For what its worth, I have licensed it under GPL v3 - feel free to use it
-
@luz I'm a bit confused, I'm trying to make operative the code of @Kit-Bishop for Omega 2 based on the code for "fast-gpio", however, I still do not understand how to apply this patch. Could you help me, please?
-
@Keitaro UPDATE: That's the problem: http://community.onion.io/topic/2194/gpio-interrupts-omega2