gumstix

How do I use ioctl() to manipulate my kernel module?

廉价感情. 提交于 2019-12-17 17:44:07
问题 So I'm trying to write a kernel module that uses the linux/timer.h file. I got it to work inside just the module, and now I am trying to get it to work from a user program. Here is my kernel module: //Necessary Includes For Device Drivers. #include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/fs.h> #include <linux/errno.h> #include <linux/proc_fs.h> #include <asm/uaccess.h> #include <linux/timer.h> #include <linux/ioctl.h> #define DEVICE_NAME "mytimer"

JamVm not running an application (that uses jpcap) on Gumstix

偶尔善良 提交于 2019-12-13 06:43:35
问题 A newbie here so apologies in advance for asking anything silly/obvious. I am trying to run a java application on a Gumstix overo board (linux kernel 2.6.34). So far, I have installed JamVm (jvm), jikes compiler and classpath libraries (as per instructions in this tutorial). I have run a HelloWorld program and it seemed fine. Now when I try to run another application (say 'MyApp') that uses 'jpcap' libraries, the jvm gives me an error that looks like this: Exception during event dispatch:

Mouse and Keyboard not working in qemu emulator

放肆的年华 提交于 2019-12-03 13:25:24
问题 I am trying to run Yocto Image in qemu on my Ubuntu laptop with the following command. qemu-system-arm -M overo -m 256 -sd ./test.img -clock unix -serial stdio -device usb-mouse -device usb-kbd Qemu works fine and the image is booted pretty clean, but I am unable to use my keyboard and Mouse. On any key press I get this warning. usb-kbd: warning: key event queue full Any workaround for this unresponsive keyboard? 回答1: The problem was, I need to specify USB bus number with device number for

Mouse and Keyboard not working in qemu emulator

自古美人都是妖i 提交于 2019-12-03 03:30:06
I am trying to run Yocto Image in qemu on my Ubuntu laptop with the following command. qemu-system-arm -M overo -m 256 -sd ./test.img -clock unix -serial stdio -device usb-mouse -device usb-kbd Qemu works fine and the image is booted pretty clean, but I am unable to use my keyboard and Mouse. On any key press I get this warning. usb-kbd: warning: key event queue full Any workaround for this unresponsive keyboard? Zafrullah Syed The problem was, I need to specify USB bus number with device number for USB Pass-Through. Get the list of USB's by this command lsusb and it will list them as

How do I use ioctl() to manipulate my kernel module?

♀尐吖头ヾ 提交于 2019-11-28 05:06:31
So I'm trying to write a kernel module that uses the linux/timer.h file. I got it to work inside just the module, and now I am trying to get it to work from a user program. Here is my kernel module: //Necessary Includes For Device Drivers. #include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/fs.h> #include <linux/errno.h> #include <linux/proc_fs.h> #include <asm/uaccess.h> #include <linux/timer.h> #include <linux/ioctl.h> #define DEVICE_NAME "mytimer" #define DEVICE_FILE_NAME "mytimer" #define MAJOR_NUM 61 #define MINOR_NUM 0 MODULE_LICENSE("Dual BSD/GPL"