Posts

Showing posts with the label kernel module

How to use an Xbox 360 wired controller with a Raspberry PI (and/or how to compile a kernel module)

Background So I asked the question, "How can I get my Raspberry PI to recognize an Xbox 360 wired controller?" The answer is: sudo rpi-update The xpad Linux kernel module is part of 3.12 and above from what I can tell (I haven't really done any research on this). What really annoyed me was the LED on the controller kept blinking. Apparently there is a compiler flag that xpad.c recognizes that isn't part of the Raspbian xpad (or normal xpad driver). How to compile the xpad kernel module for a Rapsberry PI Make sure you are up to date with the kernel: sudo rpi-update Download Source Code This guide was developed off of 3.12.x. Once this is complete and you have rebooted, login, and we can just start from the home directory by downloading the kernel source: mkdir xpad wget https://github.com/raspberrypi/linux/tarball/rpi-3.12.y tar xvf rpi-3.12.y cd raspberrypi-linux* zcat /proc/config.gz >.config make oldconfig make modules_pre...