AnsweredAssumed Answered

GPIO interrupt on i.MX6

Question asked by Luca Noga on Mar 30, 2015
Latest reply on Apr 19, 2018 by Phani Teja

Hi,

I'm trying to configure an interrupt on a GPIO of my board i.MX6, in order to toggle another GPIO once the first has changed its value (this is the first stage of a more complicated project). I want to build a module and insert it on the running kernel. Attached is the source code and the Makefile I'm using to compile it. I'm actually able to compile the source code in a linux x86 system, but once I try to insert it on the i.MX6 environment (using insmod), I get these errors:

 

luca_gpio: Unknown symbol gpio_free (err 0)

luca_gpio: Unknown symbol __gpio_to_irq (err 0)

luca_gpio: Unknown symbol gpio_direction_output (err 0)

luca_gpio: Unknown symbol __gpio_set_value (err 0)

luca_gpio: Unknown symbol gpio_request (err 0)

 

Could anyone give me any suggestion to solve this issue, please?

 

Thanks a lot,

Luca

Original Attachment has been moved to: sources.zip

Outcomes