Verplrke Posted May 20, 2007 Report Share Posted May 20, 2007 To enable the media buttons on my logitech Mediaplay Mouse, I would like to use lmpcm. It worked fine under Mandriva 2006 but now in the new Mandriva 2007 Spring (with kernel 2.6.17-13) I get this error when I run make: [root@localhost lmpcm_usb-0.5.5]# make make -C /lib/modules/2.6.17-13mdv/build SUBDIRS=/home/maarten/Desktop/lmpcm_usb-0.5.5 modules make: *** /lib/modules/2.6.17-13mdv/build: Unknown file or folder. Aborted. make: *** [default] Error 2 *Note: the archive does not contain a configure-file, only make and make-install need to be executed. Quote Link to comment Share on other sites More sharing options...
Greg2 Posted May 20, 2007 Report Share Posted May 20, 2007 Have you installed the kernel source for your kernel? Quote Link to comment Share on other sites More sharing options...
Verplrke Posted May 21, 2007 Author Report Share Posted May 21, 2007 Installing the kernel source solved the compile problem partially, after that I encoutered an module symvers error, which I was able to solve myself. But now when inserting the module i get this error: [root@localhost lmpcm_usb-0.5.5]# insmod /lib/modules/2.6.17-13mdv/misc/lmpcm_usb.ko insmod: error inserting '/lib/modules/2.6.17-13mdv/misc/lmpcm_usb.ko': -1 Invalid module format Renaming lmpcm_usb.ko tot lmpcm_usb.ko.gz didn't solve the problem ... Quote Link to comment Share on other sites More sharing options...
Greg2 Posted May 21, 2007 Report Share Posted May 21, 2007 Try modprobe lmpcm_usb Quote Link to comment Share on other sites More sharing options...
ffi Posted May 21, 2007 Report Share Posted May 21, 2007 To enable the media buttons on my logitech Mediaplay Mouse, I would like to use lmpcm. It worked fine under Mandriva 2006 but now in the new Mandriva 2007 Spring (with kernel 2.6.17-13) I get this error when I run make: [root@localhost lmpcm_usb-0.5.5]# make make -C /lib/modules/2.6.17-13mdv/build SUBDIRS=/home/maarten/Desktop/lmpcm_usb-0.5.5 modules make: *** /lib/modules/2.6.17-13mdv/build: Unknown file or folder. Aborted. make: *** [default] Error 2 *Note: the archive does not contain a configure-file, only make and make-install need to be executed. most buttons on my logitech mx610 mouse work out of the box (volume up and down and mute), and i guess you could manually assign functions to them.... Quote Link to comment Share on other sites More sharing options...
Verplrke Posted May 21, 2007 Author Report Share Posted May 21, 2007 (edited) [root@localhost maarten]# modprobe lmpcm_usb FATAL: Module lmpcm_usb not found. Normally the make command should add a entry in the modules.dep file using depmod. Apperently it didn't, so I added this myself: /lib/modules/2.6.17-13mdv/misc/lmpcm_usb.ko: /lib/modules/2.6.17-13mdv/kernel/drivers/usb/core/usbcore.ko.gz The eventual result stays the same: [root@localhost maarten]# modprobe lmpcm_usb FATAL: Error inserting lmpcm_usb (/lib/modules/2.6.17-13mdv/misc/lmpcm_usb.ko): Invalid module format I must say, adding this in Mandriva 2006 was a lot easier! Edited May 21, 2007 by Verplrke Quote Link to comment Share on other sites More sharing options...
ffi Posted May 21, 2007 Report Share Posted May 21, 2007 did you already use xev to see if those keys generate any output (type xev in a console, put mouse cursor in xev window and press the keys....) Quote Link to comment Share on other sites More sharing options...
Greg2 Posted May 21, 2007 Report Share Posted May 21, 2007 Are you sure you have installed the same kernel source as the kernel you're using? I only ask because this is the most frequent cause of the 'Invalid module format' error Quote Link to comment Share on other sites More sharing options...
Verplrke Posted May 22, 2007 Author Report Share Posted May 22, 2007 Got it: uninstalled the kernel source, rebooted, installed the kernel source again and I was able to run make and make install without a single problem. Thanks for the help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.