Guys, I have created a very simple kernel module that controls an interrupt pin on the GPIO. I am using pin number 9 on the CON4 header as an interrupt. That's all I want to do is manually set this pin high so the interrupt is triggered, and then physically set it low so the interrupt is not triggered anymore. When the interrupt is trigged it prints messages out to the console saying so. I got the code from the chinese manual and modified it to my needs. I also followed the instructions in the chinese manual (Chapter 7) to compile the driver against the current Kernel and also to compile my driver userspace program. When I telnet into the ARM board, I do the following commands after I transfer the ".ko" file and my binary file to the board... modprobe interrupt_driver mknod mydriver c 253 0 (if you look at what the kernel prints out it says the major number is 253) (I then "CD" to the directory of binary executable and then...) chmod +x myDriver ./myDriver After that last command, nothing happens at all.... Attached is my code. Can you get it to work on your mini2440? Any help would be appreciated. Thank you! Attached is my C code for the Kernel interrupt driver... I'll try to attach my userspace test code on my next post. -Ben
My Kernel Module
Here is the userspace interrupt test C code. This program basically reads the interrupt and prints messages to the console. Again, any help would be greatly apprecaited. Thank yoU! -Ben