Thursday, January 14, 2010

Mouse working in OPENWRT

In order to get the mouse to work in OpenWRT, you need to have all the proper USB modules loaded. I have covered this in the past in showing how to get the Pegasus joystick to work. After everything is loaded, if you have done it right, if you plug in the mouse into the router and check dmesg the mouse should show up, but it will not be registered under /dev/mouse0. In order to get that part to work you have to go under make kernel_menuconfig and go to
Device Drivers
->input device support
[M] Mouse

remake the kernel make all V=99

After that is done the kernel module is found under
Kamikaze/trunk/build_dir/linux-brcm47xx/linux-2.6.30.8/drivers/input/mousedev.ko

just scp that over to root@OpenWrt:/lib/modules/2.6.30.8

yours may vary slightly if you have a newer kernel

Then go to

root@OpenWrt:/etc/modules.d

then
vi 72-mouse

and insert by pressing i, type
mousedev

then exit and save by typing :wq! (basic vi)

then reboot the router and try plugging in a mouse

then test it by using

cat /dev/mouse0

I left the mouse stuck in and it didn't work so I unplugged it and replugged it and it worked just fine. I can look into this issue in the future.

No comments: