I am starting to get frustrated. Not sure if I messed up. I followed your instructions verbatim. Wireless controller continues to blink and I get an error with jscalibrator. I attached error message.
I used your MakeFile that came with the compressed file. It appears you already made the change to the MakeFile.
Code:
mike@mi:~/Desktop/xpad360$ cat Makefile
obj-m := xpad.o
KDIR := /lib/modules/$(shell uname -r)/build
EXTRA_CFLAGS=-I$(shell pwd)
all:
$(MAKE) modules -C $(KDIR) SUBDIRS=$(shell pwd)
install:
cp -f xpad.ko /lib/modules/$(shell uname -r)/kernel/drivers/usb/input
cp -f xpad.ko /lib/modules/$(shell uname -r)/kernel/drivers/input/joystick
Code:
mike@mi:~/Desktop/xpad360$ sudo apt-get install linux-headers-`uname -r` build-essential automake1.9 jscalibrator libgii1 libjsw2
[sudo] password for mike:
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-2.6.22-14-generic is already the newest version.
build-essential is already the newest version.
jscalibrator is already the newest version.
libgii1 is already the newest version.
libgii1 set to manual installed.
libjsw2 is already the newest version.
libjsw2 set to manual installed.
The following packages were automatically installed and are no longer required:
unixodbc odbcinst1debian1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
autoconf autotools-dev
Suggested packages:
autoconf2.13 autobook autoconf-archive gnu-standards autoconf-doc
automake1.9-doc
Recommended packages:
automaken
The following NEW packages will be installed:
autoconf automake1.9 autotools-dev
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 898kB of archives.
After unpacking 3355kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com gutsy/main autoconf 2.61-4 [448kB]
Get:2 http://us.archive.ubuntu.com gutsy/main autotools-dev 20070306.1 [61.6kB]
Get:3 http://us.archive.ubuntu.com gutsy/main automake1.9 1.9.6+nogfdl-3ubuntu1 [388kB]
Fetched 898kB in 4s (185kB/s)
Selecting previously deselected package autoconf.
(Reading database ... 216783 files and directories currently installed.)
Unpacking autoconf (from .../autoconf_2.61-4_all.deb) ...
Selecting previously deselected package autotools-dev.
Unpacking autotools-dev (from .../autotools-dev_20070306.1_all.deb) ...
Selecting previously deselected package automake1.9.
Unpacking automake1.9 (from .../automake1.9_1.9.6+nogfdl-3ubuntu1_all.deb) ...
Setting up autoconf (2.61-4) ...
Setting up autotools-dev (20070306.1) ...
Setting up automake1.9 (1.9.6+nogfdl-3ubuntu1) ...
mike@mi:~/Desktop/xpad360$ make
make modules -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/home/mike/Desktop/xpad360
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
CC [M] /home/mike/Desktop/xpad360/xpad.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/mike/Desktop/xpad360/xpad.mod.o
LD [M] /home/mike/Desktop/xpad360/xpad.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
mike@mi:~/Desktop/xpad360$ sudo make install
cp -f xpad.ko /lib/modules/2.6.22-14-generic/kernel/drivers/usb/input
cp -f xpad.ko /lib/modules/2.6.22-14-generic/kernel/drivers/input/joystick
mike@mi:~/Desktop/xpad360$ sudo depmod -a
mike@mi:~/Desktop/xpad360$ sudo modprobe xpad
mike@mi:~/Desktop/xpad360$ jscalibrator
Bookmarks