![]() |
|
|||||||
| Desktop Linux Discussion of Linux on the desktop. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Quote:
woot |
|
#2
|
|||
|
|||
|
I am not sure why it struck me so funny, but that entire posting almost made me tear.
Going to DL the new kernel now... |
|
#3
|
|||
|
|||
|
I followed the guide to get the usb xbox 360 controller working in Linux from here: http://gentoo-wiki.com/HOWTO_Xbox_36...oller_on_Linux it worked flawlessly with the 2.6.18 kernel I used last, but after editing xpad.c and running 'make all && make modules_install' I get some nasty errors :/
Code:
bash-3.1# make all && make modules_install CHK include/linux/version.h CHK include/linux/utsrelease.h CHK include/linux/compile.h CC drivers/usb/input/xpad.o drivers/usb/input/xpad.c: In function `xpad_probe': drivers/usb/input/xpad.c:368: error: `SLAB_ATOMIC' undeclared (first use in this function) drivers/usb/input/xpad.c:368: error: (Each undeclared identifier is reported only once drivers/usb/input/xpad.c:368: error: for each function it appears in.) drivers/usb/input/xpad.c:451: warning: passing arg 6 of `usb_fill_int_urb' from incompatible pointer type make[3]: *** [drivers/usb/input/xpad.o] Error 1 make[2]: *** [drivers/usb/input] Error 2 make[1]: *** [drivers/usb] Error 2 make: *** [drivers] Error 2 bash-3.1# |
|
#4
|
|||
|
|||
|
I've never even touched an Xbox 360 controller, but I could compare xpad.c from 2.6.18 against 2.6.20 and take a look at SLAB_ATOMIC.
|
|
#5
|
|||
|
|||
|
Oh I'm sorry I didn't state it, but for the 360's controller to work you need to download a different xpad.c and xpad.h
http://xbox-linux.cvs.sourceforge.ne...b/input/xpad.c http://xbox-linux.cvs.sourceforge.ne...b/input/xpad.h for the 2.6.19 kernel it states that you're supposed to edit "#include <linux/usb_input.h>" and change it to "#include <linux/usb/input.h>" and comment lines 54 "#include <linux/config.h>" to "/* #include <linux/config.h> */" and line 161 "input_regs(dev, regs);" to "/* input_regs(dev, regs); */" I did all of that prior to running "make all && make modules_install" ...was going to include my xpad.c file in side a code block, but it would make this post 10212 characters too long
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|